]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: introduce convert_extent_bit
authorJosef Bacik <josef@redhat.com>
Mon, 26 Sep 2011 17:56:12 +0000 (13:56 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 19 Oct 2011 19:12:47 +0000 (15:12 -0400)
commita217a9658e5d0bbc0f889965d6f08f1122f8a630
tree82e72468a746b55d09246db8272823c2907633e1
parent4fc7758decbfa8fda7d1c1b95beb0fa8db984fd5
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>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h