linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Allow rmdir(2) to delete a subvolume
@ 2018-03-26  8:28 Misono Tomohiro
  2018-03-26  8:28 ` [PATCH v2 1/3] btrfs: Move may_destroy_subvol() from ioctl.c to inode.c Misono Tomohiro
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Misono Tomohiro @ 2018-03-26  8:28 UTC (permalink / raw)
  To: linux-btrfs

changelog:
  v1 -> v2 ... split the patch to hopefully make review easier

1st patch is a preparation work just moving the declaration of
may_destroy_subvol().

2nd patch is the main part. New function btrfs_delete_subvolume() is
introduced and used in btrfs_rmdir() when a direcoty is an empty
subvolume. The function is almost the copy of second half of
btrfs_ioctl_snap_destroy().
The code path for "sub delete" is not changed yet.

3rd patch is a cleanup of btrfs_ioctl_snap_destroy() and uses 
brrfs_delete_subvolume() for "sub delete" too.

Tomohiro Misono (3):
  btrfs: move may_destroy_subvol() from ioctl.c to inode.c
  btrfs: Allow rmdir(2) to delete a subvolume
  btrfs: cleanup btrfs_ioctl_snap_destroy() by using btrfs_delete_subvolume()

 fs/btrfs/ctree.h |   5 +-
 fs/btrfs/inode.c | 199 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 fs/btrfs/ioctl.c | 185 +--------------------------------------------------
 3 files changed, 200 insertions(+), 189 deletions(-)

-- 
2.14.3


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-03-28  2:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-26  8:28 [PATCH v2 0/3] Allow rmdir(2) to delete a subvolume Misono Tomohiro
2018-03-26  8:28 ` [PATCH v2 1/3] btrfs: Move may_destroy_subvol() from ioctl.c to inode.c Misono Tomohiro
2018-03-26  8:51   ` Nikolay Borisov
2018-03-28  1:59     ` Misono Tomohiro
2018-03-26  8:30 ` [PATCH v2 2/3] btrfs: Allow rmdir(2) to delete a subvolume Misono Tomohiro
2018-03-27 12:39   ` Nikolay Borisov
2018-03-28  2:00     ` Misono Tomohiro
2018-03-26  8:31 ` [PATCH v2 3/3] btrfs: Cleanup btrfs_ioctl_snap_destroy() by using btrfs_delete_subvolume() Misono Tomohiro
2018-03-26 19:45 ` [PATCH v2 0/3] Allow rmdir(2) to delete a subvolume Goffredo Baroncelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).