diff options
Diffstat (limited to 'fs/nfs')
| -rw-r--r-- | fs/nfs/file.c | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 509dcb58959e..43164fe86069 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c @@ -180,6 +180,8 @@ force_reval:  static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin)  { +	loff_t loff; +  	dprintk("NFS: llseek file(%s/%s, %lld, %d)\n",  			filp->f_path.dentry->d_parent->d_name.name,  			filp->f_path.dentry->d_name.name, @@ -192,7 +194,10 @@ static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin)  		if (retval < 0)  			return (loff_t)retval;  	} -	return remote_llseek(filp, offset, origin); +	lock_kernel();	/* BKL needed? */ +	loff = generic_file_llseek_unlocked(filp, offset, origin); +	unlock_kernel(); +	return loff;  }  /* |