NFS: Optimise away unnecessary setattrs for open(O_TRUNC);
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 18 Jan 2012 03:04:26 +0000 (22:04 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 1 Feb 2012 00:28:07 +0000 (19:28 -0500)
commit536e43d12b9517bbbf6114cd1a12be27857a4d7a
treea40424a430fd651fe7b35232717f2201c608059a
parent48c22eb21071a3524f8b6e587371be35b5e86969
NFS: Optimise away unnecessary setattrs for open(O_TRUNC);

Currently, we will correctly optimise away a truncate that doesn't
change the file size. However, in the case of open(O_TRUNC), we
also want to optimise away the time changes.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
fs/nfs/inode.c
fs/nfs/nfs4proc.c