summaryrefslogtreecommitdiff
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-08-12 14:56:14 (GMT)
committerChris Mason <chris.mason@fusionio.com>2013-09-01 12:05:01 (GMT)
commita05254143cd183b18002cbba7759a1e4629aa762 (patch)
treea39de942d559cd17dcd95cca753a1fa6b9c92e20 /fs/btrfs/ioctl.c
parent416161db9b63e353a8fb79d1369779175102fca1 (diff)
downloadlinux-a05254143cd183b18002cbba7759a1e4629aa762.tar.xz
Btrfs: skip subvol entries when checking if we've created a dir already
We have logic to see if we've already created a parent directory by check to see if an inode inside of that directory has a lower inode number than the one we are currently processing. The logic is that if there is a lower inode number then we would have had to made sure the directory was created at that previous point. The problem is that subvols inode numbers count from the lowest objectid in the root tree, which may be less than our current progress. So just skip if our dir item key is a root item. This fixes the original test and the xfstest version I made that added an extra subvol create. Thanks, Reported-by: Emil Karlson <jekarlson@gmail.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
0 files changed, 0 insertions, 0 deletions