backref.c (07e81dc94474eb62705c6f96d9ab1a5a797b8703) backref.c (d68194b238228ce470de1fc2453851fc06294739)
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>

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

2645void free_ipath(struct inode_fs_paths *ipath)
2646{
2647 if (!ipath)
2648 return;
2649 kvfree(ipath->fspath);
2650 kfree(ipath);
2651}
2652
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>

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

2645void free_ipath(struct inode_fs_paths *ipath)
2646{
2647 if (!ipath)
2648 return;
2649 kvfree(ipath->fspath);
2650 kfree(ipath);
2651}
2652
2653struct btrfs_backref_iter *btrfs_backref_iter_alloc(
2654 struct btrfs_fs_info *fs_info, gfp_t gfp_flag)
2653struct btrfs_backref_iter *btrfs_backref_iter_alloc(struct btrfs_fs_info *fs_info)
2655{
2656 struct btrfs_backref_iter *ret;
2657
2654{
2655 struct btrfs_backref_iter *ret;
2656
2658 ret = kzalloc(sizeof(*ret), gfp_flag);
2657 ret = kzalloc(sizeof(*ret), GFP_NOFS);
2659 if (!ret)
2660 return NULL;
2661
2662 ret->path = btrfs_alloc_path();
2663 if (!ret->path) {
2664 kfree(ret);
2665 return NULL;
2666 }

--- 809 unchanged lines hidden ---
2658 if (!ret)
2659 return NULL;
2660
2661 ret->path = btrfs_alloc_path();
2662 if (!ret->path) {
2663 kfree(ret);
2664 return NULL;
2665 }

--- 809 unchanged lines hidden ---