aboutsummaryrefslogtreecommitdiffstats
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)
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,
2542 u64 end = start + PAGE_CACHE_SIZE - 1; 2542 u64 end = start + PAGE_CACHE_SIZE - 1;
2543 int ret = 1; 2543 int ret = 1;
2544 2544
2545 if (test_range_bit(tree, start, end, EXTENT_IOBITS, 0)) 2545 if (test_range_bit(tree, start, end,
2546 EXTENT_IOBITS | EXTENT_ORDERED, 0))
2546 ret = 0; 2547 ret = 0;
2547 else { 2548 else {
2548 if ((mask & GFP_NOFS) == GFP_NOFS) 2549 if ((mask & GFP_NOFS) == GFP_NOFS)