NFSv42: Don't force attribute revalidation of the copy offload source
When a copy offload is performed, we do not expect the source file to change other than perhaps to see the atime be updated. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
@@ -390,12 +390,7 @@ static ssize_t _nfs42_proc_copy(struct file *src,
|
|||||||
}
|
}
|
||||||
|
|
||||||
nfs42_copy_dest_done(dst_inode, pos_dst, res->write_res.count);
|
nfs42_copy_dest_done(dst_inode, pos_dst, res->write_res.count);
|
||||||
|
nfs_invalidate_atime(src_inode);
|
||||||
spin_lock(&src_inode->i_lock);
|
|
||||||
nfs_set_cache_invalid(src_inode, NFS_INO_REVAL_PAGECACHE |
|
|
||||||
NFS_INO_REVAL_FORCED |
|
|
||||||
NFS_INO_INVALID_ATIME);
|
|
||||||
spin_unlock(&src_inode->i_lock);
|
|
||||||
status = res->write_res.count;
|
status = res->write_res.count;
|
||||||
out:
|
out:
|
||||||
if (args->sync)
|
if (args->sync)
|
||||||
|
|||||||
Reference in New Issue
Block a user