mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
btrfs: move orphan prototypes into orphan.h
Move these out of ctree.h into orphan.h to cut down on code in ctree.h. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
7f0add250f
commit
aa5d3003dd
@ -676,12 +676,6 @@ static inline int btrfs_next_item(struct btrfs_root *root, struct btrfs_path *p)
|
||||
}
|
||||
int btrfs_leaf_free_space(struct extent_buffer *leaf);
|
||||
|
||||
/* orphan.c */
|
||||
int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root, u64 offset);
|
||||
int btrfs_del_orphan_item(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root, u64 offset);
|
||||
|
||||
/*
|
||||
* Get the correct offset inside the page of extent buffer.
|
||||
*
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "extent-tree.h"
|
||||
#include "root-tree.h"
|
||||
#include "file-item.h"
|
||||
#include "orphan.h"
|
||||
|
||||
#undef SCRAMBLE_DELAYED_REFS
|
||||
|
||||
|
@ -69,6 +69,7 @@
|
||||
#include "relocation.h"
|
||||
#include "verity.h"
|
||||
#include "super.h"
|
||||
#include "orphan.h"
|
||||
|
||||
struct btrfs_iget_args {
|
||||
u64 ino;
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
#include "orphan.h"
|
||||
|
||||
int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root, u64 offset)
|
||||
|
11
fs/btrfs/orphan.h
Normal file
11
fs/btrfs/orphan.h
Normal file
@ -0,0 +1,11 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#ifndef BTRFS_ORPHAN_H
|
||||
#define BTRFS_ORPHAN_H
|
||||
|
||||
int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root, u64 offset);
|
||||
int btrfs_del_orphan_item(struct btrfs_trans_handle *trans,
|
||||
struct btrfs_root *root, u64 offset);
|
||||
|
||||
#endif
|
@ -15,6 +15,7 @@
|
||||
#include "space-info.h"
|
||||
#include "accessors.h"
|
||||
#include "root-tree.h"
|
||||
#include "orphan.h"
|
||||
|
||||
/*
|
||||
* Read a root item from the tree. In case we detect a root item smaller then
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "dir-item.h"
|
||||
#include "file-item.h"
|
||||
#include "file.h"
|
||||
#include "orphan.h"
|
||||
|
||||
#define MAX_CONFLICT_INODES 10
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "accessors.h"
|
||||
#include "ioctl.h"
|
||||
#include "verity.h"
|
||||
#include "orphan.h"
|
||||
|
||||
/*
|
||||
* Implementation of the interface defined in struct fsverity_operations.
|
||||
|
Loading…
Reference in New Issue
Block a user