Commit b1785427 authored by Yan's avatar Yan Committed by Chris Mason
Browse files

Fix for btrfs_find_free_objectid



btrfs_find_free_objectid may return a used objectid due to arithmetic
underflow. This bug may happen when parameter 'root' is tree root,  so
it may cause serious problems when creating snapshot or sub-volume.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent e18e4809
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment