diff options
Diffstat (limited to 'fs/nfs/file.c')
-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 9f1bed944b2e..78460657f5cb 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c | |||
@@ -178,6 +178,8 @@ force_reval: | |||
178 | 178 | ||
179 | static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin) | 179 | static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin) |
180 | { | 180 | { |
181 | loff_t loff; | ||
182 | |||
181 | dprintk("NFS: llseek file(%s/%s, %lld, %d)\n", | 183 | dprintk("NFS: llseek file(%s/%s, %lld, %d)\n", |
182 | filp->f_path.dentry->d_parent->d_name.name, | 184 | filp->f_path.dentry->d_parent->d_name.name, |
183 | filp->f_path.dentry->d_name.name, | 185 | filp->f_path.dentry->d_name.name, |
@@ -190,7 +192,10 @@ static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin) | |||
190 | if (retval < 0) | 192 | if (retval < 0) |
191 | return (loff_t)retval; | 193 | return (loff_t)retval; |
192 | } | 194 | } |
193 | return remote_llseek(filp, offset, origin); | 195 | lock_kernel(); /* BKL needed? */ |
196 | loff = generic_file_llseek_unlocked(filp, offset, origin); | ||
197 | unlock_kernel(); | ||
198 | return loff; | ||
194 | } | 199 | } |
195 | 200 | ||
196 | /* | 201 | /* |