diff options
-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, |