mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
Btrfs: reference counts on data extents
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
dee26a9f7a
commit
6407bf6d7c
5 changed files with 82 additions and 24 deletions
|
@ -25,6 +25,7 @@ int btrfs_find_free_objectid(struct btrfs_trans_handle *trans,
|
|||
if (fs_root->fs_info->last_inode_alloc_dirid == dirid)
|
||||
search_start = fs_root->fs_info->last_inode_alloc;
|
||||
|
||||
search_start = max(search_start, BTRFS_FIRST_FREE_OBJECTID);
|
||||
search_key.objectid = search_start;
|
||||
search_key.flags = 0;
|
||||
btrfs_set_key_type(&search_key, BTRFS_INODE_MAP_ITEM_KEY);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue