aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode-map.c
diff options
context:
space:
mode:
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);