aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 28b8c3f3cda3..12623abcf3d4 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -198,11 +198,12 @@ static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin)
198 if (retval < 0) 198 if (retval < 0)
199 return (loff_t)retval; 199 return (loff_t)retval;
200 200
201 /* AK: should drop this lock. Unlikely to be needed. */
201 spin_lock(&inode->i_lock); 202 spin_lock(&inode->i_lock);
202 loff = generic_file_llseek_unlocked(filp, offset, origin); 203 loff = generic_file_llseek(filp, offset, origin);
203 spin_unlock(&inode->i_lock); 204 spin_unlock(&inode->i_lock);
204 } else 205 } else
205 loff = generic_file_llseek_unlocked(filp, offset, origin); 206 loff = generic_file_llseek(filp, offset, origin);
206 return loff; 207 return loff;
207} 208}
208 209