Message ID | c28a8b5717b2ac49382067a6f0170220cb8d022b.1615472583.git.fdmanana@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: bug fixes for the tree mod log and small refactorings | expand |
diff --git a/fs/btrfs/tree-mod-log.c b/fs/btrfs/tree-mod-log.c index b912b82c36c9..c854cebf27f6 100644 --- a/fs/btrfs/tree-mod-log.c +++ b/fs/btrfs/tree-mod-log.c @@ -554,10 +554,7 @@ int btrfs_tree_mod_log_free_eb(struct extent_buffer *eb) int i; int ret = 0; - if (btrfs_header_level(eb) == 0) - return 0; - - if (!tree_mod_need_log(eb->fs_info, NULL)) + if (!tree_mod_need_log(eb->fs_info, eb)) return 0; nritems = btrfs_header_nritems(eb);