2020-11-24 19:48:41

by Alex Shi

[permalink] [raw]
Subject: [PATCH] fs/btrfs: remove parent_level in btrfs_sb_log_location_bdev

The variable parent_level isn't used, so don't bother to get it.

Signed-off-by: Alex Shi <[email protected]>
Cc: Chris Mason <[email protected]>
Cc: Josef Bacik <[email protected]>
Cc: David Sterba <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
fs/btrfs/ctree.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 32a57a70b98d..e5a0941c4bde 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -1578,13 +1578,10 @@ int btrfs_realloc_node(struct btrfs_trans_handle *trans,
int end_slot;
int i;
int err = 0;
- int parent_level;
u32 blocksize;
int progress_passed = 0;
struct btrfs_disk_key disk_key;

- parent_level = btrfs_header_level(parent);
-
WARN_ON(trans->transaction != fs_info->running_transaction);
WARN_ON(trans->transid != fs_info->generation);

--
2.29.GIT