diff options
author | Filipe Manana <fdmanana@suse.com> | 2025-03-13 20:07:47 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:56 +0300 |
commit | 26558ce574b86e7c81f28f3f10767fcab0f3abb3 (patch) | |
tree | 06d4f754071f6a68367ef0f7414f086b8d8c4aea /tools/perf/scripts/python | |
parent | 37b0c3150bcb72fe51aa7c7660fcb54c06c84427 (diff) | |
download | linux-26558ce574b86e7c81f28f3f10767fcab0f3abb3.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions