]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: cleanup code conditional on fc->writeback_cache
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)
commit20235b435a5c8897e46d094454408b6ab7157dbd
treef199e64a7740146099728d29f9d82942a7b92bf8
parent484ce65715b06aead8c4901f01ca32c5a240bc71
fuse: cleanup code conditional on fc->writeback_cache

It's safe to call file_update_time() if writeback cache is not enabled,
since S_NOCMTIME is set in this case.  This part is purely a cleanup.

__fuse_copy_file_range() also calls fuse_write_update_attr() only in the
writeback cache case.  This is inconsistent with other callers, where it's
called unconditionally.

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