diff options
author | Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> | 2018-04-18 11:34:13 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-28 18:07:18 +0200 |
commit | ec42f167348a1949ac309532aa34760cfc96c92f (patch) | |
tree | b744b543efae207f1f304247a891a6e6609c97c0 /fs/btrfs/ctree.h | |
parent | 3b079a919a2386f7e080222b25f1cffe9c91666b (diff) | |
download | linux-stable-ec42f167348a1949ac309532aa34760cfc96c92f.tar.gz linux-stable-ec42f167348a1949ac309532aa34760cfc96c92f.tar.bz2 linux-stable-ec42f167348a1949ac309532aa34760cfc96c92f.zip |
btrfs: Move may_destroy_subvol() from ioctl.c to inode.c
This is a preparation work to refactor btrfs_ioctl_snap_destroy()
and to allow rmdir(2) to delete an empty subvolume.
Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ minor update of the function comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 15e34172cdf0..fe7e5177119d 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3197,6 +3197,7 @@ int btrfs_unlink_subvol(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, u64 objectid, const char *name, int name_len); +noinline int may_destroy_subvol(struct btrfs_root *root); int btrfs_truncate_block(struct inode *inode, loff_t from, loff_t len, int front); int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, |