diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-27 09:16:29 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-27 09:16:29 -0400 |
commit | 71951f35a6e413f2bfbd41829af8cf10a890aeb6 (patch) | |
tree | eef4dd2ab8dd6af6353c9600b6613b8ca50691c4 /fs/btrfs/file-item.c | |
parent | 9a6f11ed8f421fb1cc7b37390e32316ff4701f5d (diff) | |
download | talos-obmc-linux-71951f35a6e413f2bfbd41829af8cf10a890aeb6.tar.gz talos-obmc-linux-71951f35a6e413f2bfbd41829af8cf10a890aeb6.zip |
Btrfs: add generation field to file extent
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 4a0367d702b7..09de270c5a52 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -32,6 +32,7 @@ int btrfs_alloc_file_extent(struct btrfs_trans_handle *trans, btrfs_set_file_extent_disk_num_blocks(item, ins.offset); btrfs_set_file_extent_offset(item, 0); btrfs_set_file_extent_num_blocks(item, ins.offset); + btrfs_set_file_extent_generation(item, trans->transid); mark_buffer_dirty(path.nodes[0]); *result = ins.objectid; btrfs_release_path(root, &path); |