diff options
author | Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com> | 2016-10-18 15:56:13 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-10-24 18:20:29 +0200 |
commit | dd4b857aabbce57518f2d32d9805365d3ff34fc6 (patch) | |
tree | 933ffaef1762ff79ee0419bdf76350dc23a50bba /tools | |
parent | 69ae5e4459e43e56f03d0987e865fbac2b05af2a (diff) |
btrfs: pass correct args to btrfs_async_run_delayed_refs()
In btrfs_truncate_inode_items()->btrfs_async_run_delayed_refs(), we
swap the arg2 and arg3 wrongly, fix this.
This bug just impacts asynchronous delayed refs handle when we truncate inodes.
In delayed_ref_async_start(), there is such codes:
trans = btrfs_join_transaction(async->root);
if (trans->transid > async->transid)
goto end;
ret = btrfs_run_delayed_refs(trans, async->root, async->count);
From this codes, we can see that this just influence whether can we handle
delayed refs or the number of delayed refs to handle, this may impact
performance, but will not result in missing delayed refs, all delayed refs will
be handled in btrfs_commit_transaction().
Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
Reviewed-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions