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: | |||
| 180 | 180 | ||
| 181 | static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin) | 181 | static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin) |
| 182 | { | 182 | { |
| 183 | loff_t loff; | ||
| 184 | |||
| 183 | dprintk("NFS: llseek file(%s/%s, %lld, %d)\n", | 185 | dprintk("NFS: llseek file(%s/%s, %lld, %d)\n", |
| 184 | filp->f_path.dentry->d_parent->d_name.name, | 186 | filp->f_path.dentry->d_parent->d_name.name, |
| 185 | filp->f_path.dentry->d_name.name, | 187 | 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) | |||
| 192 | if (retval < 0) | 194 | if (retval < 0) |
| 193 | return (loff_t)retval; | 195 | return (loff_t)retval; |
| 194 | } | 196 | } |
| 195 | return remote_llseek(filp, offset, origin); | 197 | lock_kernel(); /* BKL needed? */ |
| 198 | loff = generic_file_llseek_unlocked(filp, offset, origin); | ||
| 199 | unlock_kernel(); | ||
| 200 | return loff; | ||
| 196 | } | 201 | } |
| 197 | 202 | ||
| 198 | /* | 203 | /* |
