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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c
index cd6171c2da42..80038c5ef7cf 100644
--- a/fs/btrfs/inode-map.c
+++ b/fs/btrfs/inode-map.c
@@ -117,10 +117,14 @@ int btrfs_find_free_objectid(struct btrfs_trans_handle *trans,
117 *objectid = last_ino; 117 *objectid = last_ino;
118 goto found; 118 goto found;
119 } 119 }
120 } else if (key.objectid > search_start) {
121 *objectid = search_start;
122 goto found;
120 } 123 }
121 } 124 }
122 if (key.objectid >= BTRFS_LAST_FREE_OBJECTID) 125 if (key.objectid >= BTRFS_LAST_FREE_OBJECTID)
123 break; 126 break;
127
124 start_found = 1; 128 start_found = 1;
125 last_ino = key.objectid + 1; 129 last_ino = key.objectid + 1;
126 path->slots[0]++; 130 path->slots[0]++;