aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-07-30 10:29:12 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:05 -0400
commit33958dc6d38fb4ca7e62273855fcb2db7e616263 (patch)
tree98c97e1827e537286499f6a755833a2946cc4f47 /fs/btrfs/disk-io.c
parentf321e4910398cf7922265d269fb17fd26f312571 (diff)
Btrfs: Fix verify_parent_transid
It was incorrectly clearing the up to date flag on the buffer even when the buffer properly verified. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 27ffa9b7ddc8..ec1ba8ddb35f 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -235,8 +235,8 @@ static int verify_parent_transid(struct extent_io_tree *io_tree,
235 (unsigned long long)parent_transid, 235 (unsigned long long)parent_transid,
236 (unsigned long long)btrfs_header_generation(eb)); 236 (unsigned long long)btrfs_header_generation(eb));
237 ret = 1; 237 ret = 1;
238out:
239 clear_extent_buffer_uptodate(io_tree, eb); 238 clear_extent_buffer_uptodate(io_tree, eb);
239out:
240 unlock_extent(io_tree, eb->start, eb->start + eb->len - 1, 240 unlock_extent(io_tree, eb->start, eb->start + eb->len - 1,
241 GFP_NOFS); 241 GFP_NOFS);
242 return ret; 242 return ret;