NFSv4: Only pass the delegation to setattr if we're sending a truncate
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 9 Apr 2018 15:15:30 +0000 (11:15 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 31 May 2018 19:02:16 +0000 (15:02 -0400)
commit991eedb1371dc09b0f9848f59c8898fe63d198c0
tree70231a5bed710941ba15d27218bd5765085cbda4
parent2f261020b6ddfa49dc8f1017fdc53e56276ba8b1
NFSv4: Only pass the delegation to setattr if we're sending a truncate

Even then it isn't really necessary. The reason why we may not want to
pass in a stateid in other cases is that we cannot use the delegation
credential.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c