fuse: don't bump attr_version in cached write
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 22 Oct 2021 15:03:02 +0000 (17:03 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 28 Oct 2021 07:45:32 +0000 (09:45 +0200)
commit8c56e03d2e08d83776c89e4b6563ca8cfdf7da54
treedb341870dd4f5f76c5b9858a77694b4b685f8c66
parentfa5eee57e33e79b71b40e6950c29cc46f5cc5cb7
fuse: don't bump attr_version in cached write

The attribute version in fuse_inode should be updated whenever the
attributes might have changed on the server.  In case of cached writes this
is not the case, so updating the attr_version is unnecessary and could
possibly affect performance.

Open code the remaining part of fuse_write_update_size().

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c