diff options
author | 2022-09-23 10:19:34 +0200 | |
---|---|---|
committer | 2022-10-19 10:30:52 +0200 | |
commit | 4053d2500beb0ca1e0757665af9e31da249a7a52 (patch) | |
tree | a8eea5747d2f28371f77017486780048a302b6be /mm/shmem.c | |
parent | Linux 6.1-rc1 (diff) | |
download | linux-4053d2500beb0ca1e0757665af9e31da249a7a52.tar.gz linux-4053d2500beb0ca1e0757665af9e31da249a7a52.tar.bz2 linux-4053d2500beb0ca1e0757665af9e31da249a7a52.zip |
orangefs: rework posix acl handling when creating new filesystem objects
When creating new filesytem objects orangefs used to create posix acls
after it had created and inserted a new inode. This made it necessary to
all posix_acl_chmod() on the newly created inode in case the mode of the
inode would be changed by the posix acls.
Instead of doing it this way calculate the correct mode directly before
actually creating the inode. So we first create posix acls, then pass
the mode that posix acls mandate into the orangefs getattr helper and
calculate the correct mode. This is needed so we can simply change
posix_acl_chmod() to take a dentry instead of an inode argument in the
next patch.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions