Btrfs: more efficient inode tree replace operation
authorFilipe David Borba Manana <fdmanana@gmail.com>
Mon, 2 Sep 2013 11:19:13 +0000 (12:19 +0100)
committerChris Mason <chris.mason@fusionio.com>
Sat, 21 Sep 2013 14:58:55 +0000 (10:58 -0400)
commitcef2193729595686f787c5858aad69b4369de757
treed6df5311a9d0bff68309cfc05cc742e86cc720c7
parent55e50e458e760f4d0c183978dcc20b07a7f6e20e
Btrfs: more efficient inode tree replace operation

Instead of removing the current inode from the red black tree
and then add the new one, just use the red black tree replace
operation, which is more efficient.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Zach Brown <zab@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/inode.c