summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-07-18 11:56:15 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:05 -0400
commit211f90e68b679d27fe23c5505f86d6ce62c98bae (patch)
tree18e3b7a86328ca0571c88eb029af5ba7570d82c7 /fs/btrfs/extent_io.c
parent3edf7d33f4edb1e4a9bb0a4c0a84d95fb4d22a09 (diff)
downloadlwn-211f90e68b679d27fe23c5505f86d6ce62c98bae.tar.gz
lwn-211f90e68b679d27fe23c5505f86d6ce62c98bae.zip
Btrfs: Don't allow releasepage to succeed if EXTENT_ORDERED is set
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index feff16cb9b40..3153b4fdd0b3 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2542,7 +2542,8 @@ int try_release_extent_state(struct extent_map_tree *map,
u64 end = start + PAGE_CACHE_SIZE - 1;
int ret = 1;
- if (test_range_bit(tree, start, end, EXTENT_IOBITS, 0))
+ if (test_range_bit(tree, start, end,
+ EXTENT_IOBITS | EXTENT_ORDERED, 0))
ret = 0;
else {
if ((mask & GFP_NOFS) == GFP_NOFS)