fuse: simplify local variables holding writeback cache state
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)
commitc15016b7ae1caf77f80ae87a71745368ef651ba6
treeff685aea1feecd1846e292d59cb66e9559a5bedf
parent20235b435a5c8897e46d094454408b6ab7157dbd
fuse: simplify local variables holding writeback cache state

There are two instances of "bool is_wb = fc->writeback_cache" where the
actual use mostly involves checking "is_wb && S_ISREG(inode->i_mode)".

Clean up these cases by storing the second condition in the local variable.

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