]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: introduce convert_extent_bit
authorJosef Bacik <josef@redhat.com>
Mon, 26 Sep 2011 17:56:12 +0000 (13:56 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:24 +0000 (21:20 -0500)
commit5a6eb961686c0099690e1fb5ab9146c28e6202b4
tree8bee35ec90113d3d87440d9cff217b317bbceb4a
parent644a8f87af698c00b13307d3ee87b96b82f669b8
Btrfs: introduce convert_extent_bit

If I have a range where I know a certain bit is and I want to set it to another
bit the only option I have is to call set and then clear bit, which will result
in 2 tree searches.  This is inefficient, so introduce convert_extent_bit which
will go through and set the bit I want and clear the old bit I don't want.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit 462d6fac8960a3ba797927adfcbd29d503eb16fd)
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h