diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index fd757f576956..1e462de6556e 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -1215,6 +1215,9 @@ static noinline int btrfs_ioctl_ino_lookup(struct file *file, | |||
1215 | } | 1215 | } |
1216 | inode = fdentry(file)->d_inode; | 1216 | inode = fdentry(file)->d_inode; |
1217 | 1217 | ||
1218 | if (args->treeid == 0) | ||
1219 | args->treeid = BTRFS_I(inode)->root->root_key.objectid; | ||
1220 | |||
1218 | ret = btrfs_search_path_in_tree(BTRFS_I(inode)->root->fs_info, | 1221 | ret = btrfs_search_path_in_tree(BTRFS_I(inode)->root->fs_info, |
1219 | args->treeid, args->objectid, | 1222 | args->treeid, args->objectid, |
1220 | args->name); | 1223 | args->name); |