public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] btrfs: stop duplicating VFS code for subvolume/snapshot dentry
@ 2026-01-08 13:35 fdmanana
  2026-01-08 13:35 ` [PATCH 1/4] fs: export may_delete() as may_delete_dentry() fdmanana
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: fdmanana @ 2026-01-08 13:35 UTC (permalink / raw)
  To: linux-btrfs; +Cc: linux-fsdevel, brauner, viro, Filipe Manana

From: Filipe Manana <fdmanana@suse.com>

Currently btrfs has copies of two unexported functions from fs/namei.c
used in the snapshot/subvolume creation and deletion. This patchset
exports those functions and makes btrfs use them, to avoid duplication
and the burden of keeping the copies up to date.

Filipe Manana (4):
  fs: export may_delete() as may_delete_dentry()
  fs: export may_create() as may_create_dentry()
  btrfs: use may_delete_dentry() in btrfs_ioctl_snap_destroy()
  btrfs: use may_create_dentry() in btrfs_mksubvol()

 fs/btrfs/ioctl.c   | 73 ++--------------------------------------------
 fs/namei.c         | 36 ++++++++++++-----------
 include/linux/fs.h |  5 ++++
 3 files changed, 26 insertions(+), 88 deletions(-)

-- 
2.47.2


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

end of thread, other threads:[~2026-01-13  9:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08 13:35 [PATCH 0/4] btrfs: stop duplicating VFS code for subvolume/snapshot dentry fdmanana
2026-01-08 13:35 ` [PATCH 1/4] fs: export may_delete() as may_delete_dentry() fdmanana
2026-01-08 13:35 ` [PATCH 2/4] fs: export may_create() as may_create_dentry() fdmanana
2026-01-08 13:35 ` [PATCH 3/4] btrfs: use may_delete_dentry() in btrfs_ioctl_snap_destroy() fdmanana
2026-01-08 22:05   ` David Sterba
2026-01-09 17:06     ` Filipe Manana
2026-01-08 13:35 ` [PATCH 4/4] btrfs: use may_create_dentry() in btrfs_mksubvol() fdmanana
2026-01-08 21:48   ` David Sterba
2026-01-09 17:08     ` Filipe Manana
2026-01-08 22:09 ` [PATCH 0/4] btrfs: stop duplicating VFS code for subvolume/snapshot dentry David Sterba
2026-01-12 12:48 ` Christian Brauner
2026-01-12 13:49   ` Filipe Manana
2026-01-13  1:16     ` David Sterba
2026-01-13  9:00       ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox