backref.c (af431dcb249ffff20b16e08adaa4b624405a046b) backref.c (afc6961ffd96ee7e2a86e70e9691a008eadf2926)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2011 STRATO. All rights reserved.
4 */
5
6#include <linux/mm.h>
7#include <linux/rbtree.h>
8#include <trace/events/btrfs.h>

--- 2211 unchanged lines hidden (view full) ---

2220struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
2221 struct btrfs_path *path)
2222{
2223 struct inode_fs_paths *ifp;
2224 struct btrfs_data_container *fspath;
2225
2226 fspath = init_data_container(total_bytes);
2227 if (IS_ERR(fspath))
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2011 STRATO. All rights reserved.
4 */
5
6#include <linux/mm.h>
7#include <linux/rbtree.h>
8#include <trace/events/btrfs.h>

--- 2211 unchanged lines hidden (view full) ---

2220struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
2221 struct btrfs_path *path)
2222{
2223 struct inode_fs_paths *ifp;
2224 struct btrfs_data_container *fspath;
2225
2226 fspath = init_data_container(total_bytes);
2227 if (IS_ERR(fspath))
2228 return (void *)fspath;
2228 return ERR_CAST(fspath);
2229
2230 ifp = kmalloc(sizeof(*ifp), GFP_KERNEL);
2231 if (!ifp) {
2232 kvfree(fspath);
2233 return ERR_PTR(-ENOMEM);
2234 }
2235
2236 ifp->btrfs_path = path;

--- 13 unchanged lines hidden ---
2229
2230 ifp = kmalloc(sizeof(*ifp), GFP_KERNEL);
2231 if (!ifp) {
2232 kvfree(fspath);
2233 return ERR_PTR(-ENOMEM);
2234 }
2235
2236 ifp->btrfs_path = path;

--- 13 unchanged lines hidden ---