diff options
author | 2025-02-27 12:32:55 +1100 | |
---|---|---|
committer | 2025-02-27 20:00:17 +0100 | |
commit | 3f92c7b57687fb24da46487d91dba7aa58aed75b (patch) | |
tree | 50ee1f9bb1142fe2ce8929bd12aa9ae0b8a1f1e5 /mm/util.c | |
parent | hostfs: store inode in dentry after mkdir if possible. (diff) | |
download | wireguard-linux-3f92c7b57687fb24da46487d91dba7aa58aed75b.tar.xz wireguard-linux-3f92c7b57687fb24da46487d91dba7aa58aed75b.zip |
ceph: return the correct dentry on mkdir
ceph already splices the correct dentry (in splice_dentry()) from the
result of mkdir but does nothing more with it.
Now that ->mkdir can return a dentry, return the correct dentry.
Note that previously ceph_mkdir() could call
ceph_init_inode_acls()
on the inode from the wrong dentry, which would be NULL. This
is safe as ceph_init_inode_acls() checks for NULL, but is not
strictly correct. With this patch, the inode for the returned dentry
is passed to ceph_init_inode_acls().
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Link: https://lore.kernel.org/r/20250227013949.536172-4-neilb@suse.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions