]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix attribute bitmask in _nfs42_proc_fallocate()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 28 Mar 2021 22:12:03 +0000 (18:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:39 +0000 (10:29 +0200)
commit5896b20ce2a588a2bfe90869b222dc9e8e86027a
treed2526941aebc51e20d9c6afe74b0f9d2ebea6690
parent56fb39f29f49a5457ef334debafffd11ee98f385
NFS: Fix attribute bitmask in _nfs42_proc_fallocate()

[ Upstream commit e99812e1382f0bfb6149393262bc70645c9f537a ]

We can't use nfs4_fattr_bitmap as a bitmask, because it hasn't been
filtered to represent the attributes supported by the server. Instead,
let's revert to using server->cache_consistency_bitmask after adding in
the missing SPACE_USED attribute.

Fixes: 913eca1aea87 ("NFS: Fallocate should use the nfs4_fattr_bitmap")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs42proc.c