diff options
author | Jeff Mahoney <jeffm@suse.com> | 2012-03-01 08:57:19 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2012-03-21 20:45:35 -0400 |
commit | 3fbe5c02ae5a59053d779392b9a12aa8f6d6198e (patch) | |
tree | 39b3383401c031d61b6d4cf625730511a5fe7dae /fs/btrfs/inode.c | |
parent | d0082371cf086e0ba2bbd0367b2c9920532df24f (diff) |
btrfs: split extent_state ops
set_extent_bit can do exclusive locking but only when called by lock_extent*,
Drop the exclusive bits argument except when called by lock_extent.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index d16bf3f5da0e..593a2c3a27ab 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -6233,7 +6233,7 @@ static ssize_t btrfs_direct_IO(int rw, struct kiocb *iocb, | |||
6233 | if (writing) { | 6233 | if (writing) { |
6234 | write_bits = EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING; | 6234 | write_bits = EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING; |
6235 | ret = set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, | 6235 | ret = set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, |
6236 | EXTENT_DELALLOC, 0, NULL, &cached_state, | 6236 | EXTENT_DELALLOC, NULL, &cached_state, |
6237 | GFP_NOFS); | 6237 | GFP_NOFS); |
6238 | if (ret) { | 6238 | if (ret) { |
6239 | clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, | 6239 | clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, |