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

V2: Updated changelog of patch 4/4 to mention the btrfs copy misses a
    call to audit_inode_child().

Link to V1: https://lore.kernel.org/linux-btrfs/cover.1767801889.git.fdmanana@suse.com/

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] 7+ messages in thread

end of thread, other threads:[~2026-01-14 16:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-13 12:39 [PATCH v2 0/4] btrfs: stop duplicating VFS code for subvolume/snapshot dentry fdmanana
2026-01-13 12:39 ` [PATCH v2 1/4] fs: export may_delete() as may_delete_dentry() fdmanana
2026-01-13 12:39 ` [PATCH v2 2/4] fs: export may_create() as may_create_dentry() fdmanana
2026-01-13 12:39 ` [PATCH v2 3/4] btrfs: use may_delete_dentry() in btrfs_ioctl_snap_destroy() fdmanana
2026-01-13 12:39 ` [PATCH v2 4/4] btrfs: use may_create_dentry() in btrfs_mksubvol() fdmanana
2026-01-13 21:24 ` [PATCH v2 0/4] btrfs: stop duplicating VFS code for subvolume/snapshot dentry David Sterba
2026-01-14 16:18 ` Christian Brauner

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