fuse: fix attr version comparison in fuse_read_update_size()
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 22 Oct 2021 15:03:03 +0000 (17:03 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 28 Oct 2021 07:45:32 +0000 (09:45 +0200)
commit484ce65715b06aead8c4901f01ca32c5a240bc71
tree3ff2d4ed09ce03f4c151d41a5d19c169e1b9ec4d
parentd347739a0e760e9f370aa021da3feacc37d3e511
fuse: fix attr version comparison in fuse_read_update_size()

A READ request returning a short count is taken as indication of EOF, and
the cached file size is modified accordingly.

Fix the attribute version checking to allow for changes to fc->attr_version
on other inodes.

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