diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-12-04 01:18:20 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-01-07 16:18:25 +0300 |
commit | 8697b8f88e2a750685b73c16c2a1bd438795ae90 (patch) | |
tree | 880a3c66168cabaf9b06a6ffd2f6299f8777d272 /fs/btrfs/tree-log.c | |
parent | e48dac7f6f4c0410aa38dbd59b991f2b24b286ae (diff) | |
download | linux-8697b8f88e2a750685b73c16c2a1bd438795ae90.tar.xz |
btrfs: do not check -EAGAIN when truncating inodes in the log root
We only throttle the btrfs_truncate_inode_items if the root is
SHAREABLE, which isn't set on the log root, which means this loop is
unnecessary.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r-- | fs/btrfs/tree-log.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 2c87626561aa..c1ddbe800897 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -4104,13 +4104,8 @@ static int truncate_inode_items(struct btrfs_trans_handle *trans, .min_type = min_type, .skip_ref_updates = true, }; - int ret; - - do { - ret = btrfs_truncate_inode_items(trans, log_root, &control); - } while (ret == -EAGAIN); - return ret; + return btrfs_truncate_inode_items(trans, log_root, &control); } static void fill_inode_item(struct btrfs_trans_handle *trans, |