diff options
author | Qu Wenruo <wqu@suse.com> | 2020-03-03 13:22:57 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-05-25 11:25:19 +0200 |
commit | 47254d07f37590fddc1516006e3e79453e755424 (patch) | |
tree | 234cfbdb5030c1c7cb58e7a14cd814755b317c20 /fs/btrfs/backref.c | |
parent | b1818dab9bda1da8f3ea5a13230b5d91ae964f00 (diff) | |
download | lwn-47254d07f37590fddc1516006e3e79453e755424.tar.gz lwn-47254d07f37590fddc1516006e3e79453e755424.zip |
btrfs: backref: rename and move alloc_backref_edge()
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.c')
-rw-r--r-- | fs/btrfs/backref.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index dbe170de3516..4837dcf06ba4 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -2503,3 +2503,14 @@ struct btrfs_backref_node *btrfs_backref_alloc_node( return node; } + +struct btrfs_backref_edge *btrfs_backref_alloc_edge( + struct btrfs_backref_cache *cache) +{ + struct btrfs_backref_edge *edge; + + edge = kzalloc(sizeof(*edge), GFP_NOFS); + if (edge) + cache->nr_edges++; + return edge; +} |