Skip to content

Commit

Permalink
NFS: Optimise away nfs_check_inode_attributes() when holding a delega…
Browse files Browse the repository at this point in the history
…tion

We already know that the attribute cache is valid.

Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed May 1, 2012
1 parent b4b1ead commit 01da47b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/nfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,8 @@ static int nfs_check_inode_attributes(struct inode *inode, struct nfs_fattr *fat
unsigned long invalid = 0;


if (nfs_have_delegated_attributes(inode))
return 0;
/* Has the inode gone and changed behind our back? */
if ((fattr->valid & NFS_ATTR_FATTR_FILEID) && nfsi->fileid != fattr->fileid)
return -EIO;
Expand Down

0 comments on commit 01da47b

Please sign in to comment.