diff options
Diffstat (limited to 'fs/btrfs/inode-map.c')
-rw-r--r-- | fs/btrfs/inode-map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/inode-map.c b/fs/btrfs/inode-map.c index e50316c4af15..1f0ec19b23f6 100644 --- a/fs/btrfs/inode-map.c +++ b/fs/btrfs/inode-map.c | |||
@@ -556,6 +556,9 @@ int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid) | |||
556 | mutex_lock(&root->objectid_mutex); | 556 | mutex_lock(&root->objectid_mutex); |
557 | 557 | ||
558 | if (unlikely(root->highest_objectid >= BTRFS_LAST_FREE_OBJECTID)) { | 558 | if (unlikely(root->highest_objectid >= BTRFS_LAST_FREE_OBJECTID)) { |
559 | btrfs_warn(root->fs_info, | ||
560 | "the objectid of root %llu reaches its highest value", | ||
561 | root->root_key.objectid); | ||
559 | ret = -ENOSPC; | 562 | ret = -ENOSPC; |
560 | goto out; | 563 | goto out; |
561 | } | 564 | } |