nfs: fix open(O_RDONLY|O_TRUNC) in NFS4.0
authorNadav Shemer <nadav@tonian.com>
Sun, 21 Jul 2013 14:21:43 +0000 (17:21 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Jul 2013 22:18:53 +0000 (18:18 -0400)
commitcc7936f9ad085351bc2ccb403c403392e1337050
tree16e40809fd24a00b64f55bd545b9d209c814b95c
parentd7067b2db78aab1a76f9c443b1fcf81c3e35dd50
nfs: fix open(O_RDONLY|O_TRUNC) in NFS4.0

nfs4_proc_setattr removes ATTR_OPEN from sattr->ia_valid, but later
nfs4_do_setattr checks for it

Signed-off-by: Nadav Shemer <nadav@tonian.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c