NFSv42: Copy offload should update the file size when appropriate
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 14 Apr 2021 14:10:09 +0000 (10:10 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 14 Apr 2021 14:41:57 +0000 (10:41 -0400)
commit94d202d5ca39d0eb757d16ef2624b013fb64f64d
treefff1628a4f15c2c0a1b5f71aad228aa5804e1112
parent09252177d5f924f404551b4b4eded5daa7f04a3a
NFSv42: Copy offload should update the file size when appropriate

If the result of a copy offload or clone operation is to grow the
destination file size, then we should update it. The reason is that when
a client holds a delegation, it is authoritative for the file size.

Fixes: 16abd2a0c124 ("NFSv4.2: fix client's attribute cache management for copy_file_range")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs42proc.c