fuse: fix attr version comparison in fuse_read_update_size()
stable inclusion from stable-v5.10.179 commit 42dfdbd4dcfa021d50af9f6a4c4a09eb086cc29d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8C809 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=42dfdbd4dcfa021d50af9f6a4c4a09eb086cc29d -------------------------------- commit 484ce657 upstream. 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> Signed-off-by:
Yang Bo <yb203166@antfin.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment