aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 1885ec4280c8..0c0dde6d9614 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -1288,7 +1288,9 @@ static int pin_down_bytes(struct btrfs_root *root, u64 bytenr, u32 num_bytes,
1288 root->fs_info->running_transaction->transid; 1288 root->fs_info->running_transaction->transid;
1289 u64 header_transid = 1289 u64 header_transid =
1290 btrfs_header_generation(buf); 1290 btrfs_header_generation(buf);
1291 if (header_transid == transid) { 1291 if (header_transid == transid &&
1292 !btrfs_header_flag(buf,
1293 BTRFS_HEADER_FLAG_WRITTEN)) {
1292 clean_tree_block(NULL, root, buf); 1294 clean_tree_block(NULL, root, buf);
1293 free_extent_buffer(buf); 1295 free_extent_buffer(buf);
1294 return 1; 1296 return 1;