All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Allow rmdir(2) to delete a subvolume
@ 2018-03-30  6:15 Misono Tomohiro
  2018-03-30  6:16 ` [PATCH v3 1/3] btrfs: move may_destroy_subvol() from ioctl.c to inode.c Misono Tomohiro
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Misono Tomohiro @ 2018-03-30  6:15 UTC (permalink / raw)
  To: linux-btrfs

changelog:
  v2 -> v3 ... use if-else block instead of two if blocks and 
               add Tested-by tag in 2nd patch
  v1 -> v2 ... split the patch to hopefully make review easier

Note: I will send a xfstest if this series is merged.

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 | 197 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 fs/btrfs/ioctl.c | 185 +--------------------------------------------------
 3 files changed, 198 insertions(+), 189 deletions(-)

-- 
2.14.3



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

end of thread, other threads:[~2018-04-11  5:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-30  6:15 [PATCH v3 0/3] Allow rmdir(2) to delete a subvolume Misono Tomohiro
2018-03-30  6:16 ` [PATCH v3 1/3] btrfs: move may_destroy_subvol() from ioctl.c to inode.c Misono Tomohiro
2018-03-30  6:16 ` [PATCH v3 2/3] btrfs: Allow rmdir(2) to delete a subvolume Misono Tomohiro
2018-04-06 14:46   ` David Sterba
2018-04-11  5:16     ` Misono Tomohiro
2018-03-30  6:17 ` [PATCH v3 3/3] btrfs: cleanup btrfs_ioctl_snap_destroy() by using btrfs_delete_subvolume() Misono Tomohiro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.