Btrfs: properly set new buffers for new blocks up to date

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason
2007-03-23 11:00:45 -04:00
committed by David Woodhouse
parent d571976292
commit df2ce34c88
3 changed files with 11 additions and 3 deletions

View File

@@ -467,7 +467,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
return NULL;
}
buf = find_tree_block(root, ins.objectid);
dirty_tree_block(trans, root, buf);
set_buffer_uptodate(buf);
return buf;
}