]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: export may_create() as may_create_dentry()
authorFilipe Manana <fdmanana@suse.com>
Tue, 13 Jan 2026 12:39:51 +0000 (12:39 +0000)
committerChristian Brauner <brauner@kernel.org>
Wed, 14 Jan 2026 16:17:47 +0000 (17:17 +0100)
commit26aab3a485d500cb89ef7340797982bd066f63a5
treef1807db966479dbf5699d5095a88670e8fe889b5
parent173e937552432db9406f04eb7905541b774ac7cd
fs: export may_create() as may_create_dentry()

For many years btrfs as been using a copy of may_create() in
fs/btrfs/ioctl.c:btrfs_may_create(). Everytime may_create() is updated we
need to update the btrfs copy, and this is a maintenance burden. Currently
there are minor differences between both because the btrfs side lacks
updates done in may_create().

Export may_create() so that btrfs can use it and with the less generic
name may_create_dentry().

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Link: https://patch.msgid.link/ce5174bca079f4cdcbb8dd145f0924feb1f227cd.1768307858.git.fdmanana@suse.com
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namei.c
include/linux/fs.h