aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode-map.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-27 06:33:00 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-27 06:33:00 -0400
commit6407bf6d7c449cbfb0a39d985194e265eda3baf4 (patch)
tree29b7226d36b1fbbe2a6bed134ddc3f8d98853bb2 /fs/btrfs/inode-map.c
parentdee26a9f7aab7ffe1193cd1415b23a69426acc9f (diff)
Btrfs: reference counts on data extents
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/inode-map.c')
-rw-r--r--fs/btrfs/inode-map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c
index ad2d375b830d..1b2c5e043508 100644
--- a/fs/btrfs/inode-map.c
+++ b/fs/btrfs/inode-map.c
@@ -25,6 +25,7 @@ int btrfs_find_free_objectid(struct btrfs_trans_handle *trans,
25 if (fs_root->fs_info->last_inode_alloc_dirid == dirid) 25 if (fs_root->fs_info->last_inode_alloc_dirid == dirid)
26 search_start = fs_root->fs_info->last_inode_alloc; 26 search_start = fs_root->fs_info->last_inode_alloc;
27 27
28 search_start = max(search_start, BTRFS_FIRST_FREE_OBJECTID);
28 search_key.objectid = search_start; 29 search_key.objectid = search_start;
29 search_key.flags = 0; 30 search_key.flags = 0;
30 btrfs_set_key_type(&search_key, BTRFS_INODE_MAP_ITEM_KEY); 31 btrfs_set_key_type(&search_key, BTRFS_INODE_MAP_ITEM_KEY);