Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270033
b: refs/heads/master
c: 79835a7
h: refs/heads/master
i:
  270031: 7e5d349
v: v3
  • Loading branch information
Andi Kleen authored and root committed Oct 28, 2011
1 parent 1d03f19 commit 5da2d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4cce0e28b932c11454f75d1c1fae674600c23fbf
refs/heads/master: 79835a710d6ff811659c8de46f89c7577c3b8cc6
11 changes: 2 additions & 9 deletions trunk/fs/nfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ static int nfs_revalidate_file_size(struct inode *inode, struct file *filp)

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,
Expand All @@ -197,14 +195,9 @@ static loff_t nfs_file_llseek(struct file *filp, loff_t offset, int origin)
int retval = nfs_revalidate_file_size(inode, filp);
if (retval < 0)
return (loff_t)retval;
}

/* AK: should drop this lock. Unlikely to be needed. */
spin_lock(&inode->i_lock);
loff = generic_file_llseek(filp, offset, origin);
spin_unlock(&inode->i_lock);
} else
loff = generic_file_llseek(filp, offset, origin);
return loff;
return generic_file_llseek(filp, offset, origin);
}

/*
Expand Down

0 comments on commit 5da2d26

Please sign in to comment.