diff options
author | Christian Brauner <brauner@kernel.org> | 2022-09-23 10:19:34 +0200 |
---|---|---|
committer | Christian Brauner (Microsoft) <brauner@kernel.org> | 2022-10-19 10:30:52 +0200 |
commit | 4053d2500beb0ca1e0757665af9e31da249a7a52 (patch) | |
tree | a8eea5747d2f28371f77017486780048a302b6be /fs/reiserfs | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
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 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions