summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2012-03-01 14:57:19 +0100
committerDavid Sterba <dsterba@suse.cz>2012-03-22 01:45:35 +0100
commit3fbe5c02ae5a59053d779392b9a12aa8f6d6198e (patch)
tree39b3383401c031d61b6d4cf625730511a5fe7dae /fs/btrfs/inode.c
parentd0082371cf086e0ba2bbd0367b2c9920532df24f (diff)
downloadlinux-3fbe5c02ae5a59053d779392b9a12aa8f6d6198e.tar.gz
linux-3fbe5c02ae5a59053d779392b9a12aa8f6d6198e.tar.bz2
linux-3fbe5c02ae5a59053d779392b9a12aa8f6d6198e.zip
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.c2
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,
if (writing) {
write_bits = EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING;
ret = set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend,
- EXTENT_DELALLOC, 0, NULL, &cached_state,
+ EXTENT_DELALLOC, NULL, &cached_state,
GFP_NOFS);
if (ret) {
clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart,