btrfs: use struct qstr instead of name and namelen pairs
[sfrench/cifs-2.6.git] / fs / btrfs / super.c
index 75b1c096e4f129d5b3fb4a96ee39d46e92e49d76..13d33e5707ded803da9b84ab1cd03bfeead65bb2 100644 (file)
@@ -1423,6 +1423,7 @@ static int get_default_subvol_objectid(struct btrfs_fs_info *fs_info, u64 *objec
        struct btrfs_dir_item *di;
        struct btrfs_path *path;
        struct btrfs_key location;
+       struct qstr name = QSTR_INIT("default", 7);
        u64 dir_id;
 
        path = btrfs_alloc_path();
@@ -1435,7 +1436,7 @@ static int get_default_subvol_objectid(struct btrfs_fs_info *fs_info, u64 *objec
         * to mount.
         */
        dir_id = btrfs_super_root_dir(fs_info->super_copy);
-       di = btrfs_lookup_dir_item(NULL, root, path, dir_id, "default", 7, 0);
+       di = btrfs_lookup_dir_item(NULL, root, path, dir_id, &name, 0);
        if (IS_ERR(di)) {
                btrfs_free_path(path);
                return PTR_ERR(di);