Skip to content

Commit 9d047bf

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
NFS: Remove an incorrect revalidation in nfs4_update_changeattr_locked()
In nfs4_update_changeattr_locked(), we don't need to set the NFS_INO_REVAL_PAGECACHE flag, because we already know the value of the change attribute, and we're already flagging the size. In fact, this forces us to revalidate the change attribute a second time for no good reason. This extra flag appears to have been introduced as part of the xattr feature, when update_changeattr_locked() was converted for use by the xattr code. Fixes: 1b523ca ("nfs: modify update_changeattr to deal with regular files") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent 754e0b0 commit 9d047bf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/nfs/nfs4proc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,8 +1229,7 @@ nfs4_update_changeattr_locked(struct inode *inode,
12291229
NFS_INO_INVALID_ACCESS | NFS_INO_INVALID_ACL |
12301230
NFS_INO_INVALID_SIZE | NFS_INO_INVALID_OTHER |
12311231
NFS_INO_INVALID_BLOCKS | NFS_INO_INVALID_NLINK |
1232-
NFS_INO_INVALID_MODE | NFS_INO_INVALID_XATTR |
1233-
NFS_INO_REVAL_PAGECACHE;
1232+
NFS_INO_INVALID_MODE | NFS_INO_INVALID_XATTR;
12341233
nfsi->attrtimeo = NFS_MINATTRTIMEO(inode);
12351234
}
12361235
nfsi->attrtimeo_timestamp = jiffies;

0 commit comments

Comments
 (0)