Merge patch series "btrfs: stop duplicating VFS code for subvolume/snapshot dentry"

Filipe Manana <fdmanana@suse.com> says:

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.

* patches from https://patch.msgid.link/cover.1768307858.git.fdmanana@suse.com:
  btrfs: use may_create_dentry() in btrfs_mksubvol()
  btrfs: use may_delete_dentry() in btrfs_ioctl_snap_destroy()
  fs: export may_create() as may_create_dentry()
  fs: export may_delete() as may_delete_dentry()

Link: https://patch.msgid.link/cover.1768307858.git.fdmanana@suse.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2026-01-14 17:17:53 +01:00
commit f97f020075
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
3 changed files with 26 additions and 88 deletions