diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-01 10:20:06 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-04-01 10:20:06 -0400 |
commit | ad67cd73b7c1ab043f0c27570750f6d2becd7f03 (patch) | |
tree | 6c1e0daf85186558d8f24f868a9fe19bda44d863 /disk-io.c | |
parent | e9e3422f85877e813e9217f5dc8eb189f0643d65 (diff) |
Update struct btrfs_header flags, and use it to indicate buffers are written
Diffstat (limited to 'disk-io.c')
-rw-r--r-- | disk-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -140,6 +140,8 @@ int write_tree_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, BUG(); if (!btrfs_buffer_uptodate(eb)) BUG(); + + btrfs_set_header_flag(eb, BTRFS_HEADER_FLAG_WRITTEN); btrfs_map_bh_to_logical(root, eb, eb->start); csum_tree_block(root, eb, 0); return write_extent_to_disk(eb); |