]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: simplify condition for logging new dentries at btrfs_log_inode_parent()
authorFilipe Manana <fdmanana@suse.com>
Thu, 13 Mar 2025 17:07:47 +0000 (17:07 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:56 +0000 (20:35 +0100)
commit26558ce574b86e7c81f28f3f10767fcab0f3abb3
tree06d4f754071f6a68367ef0f7414f086b8d8c4aea
parent37b0c3150bcb72fe51aa7c7660fcb54c06c84427
btrfs: simplify condition for logging new dentries at btrfs_log_inode_parent()

There's no point in checking if the inode is a directory as
ctx->log_new_dentries is only set in case we are logging a directory down
the call chain of btrfs_log_inode(). So remove that check making the logic
more simple and while at it add a comment about why use a local variable
to track if we later need to log new dentries.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-log.c