Skip to content

Commit e74e751

Browse files
author
Al Viro
committed
ksmbd_vfs_inherit_posix_acl(): constify path argument
Acked-by: Namjae Jeon <linkinjeon@kernel.org> Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent a67e08f commit e74e751

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fs/smb/server/vfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,7 @@ int ksmbd_vfs_set_init_posix_acl(struct mnt_idmap *idmap,
19091909
}
19101910

19111911
int ksmbd_vfs_inherit_posix_acl(struct mnt_idmap *idmap,
1912-
struct path *path, struct inode *parent_inode)
1912+
const struct path *path, struct inode *parent_inode)
19131913
{
19141914
struct posix_acl *acls;
19151915
struct posix_acl_entry *pace;

fs/smb/server/vfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,6 @@ int ksmbd_vfs_get_dos_attrib_xattr(struct mnt_idmap *idmap,
166166
int ksmbd_vfs_set_init_posix_acl(struct mnt_idmap *idmap,
167167
struct path *path);
168168
int ksmbd_vfs_inherit_posix_acl(struct mnt_idmap *idmap,
169-
struct path *path,
169+
const struct path *path,
170170
struct inode *parent_inode);
171171
#endif /* __KSMBD_VFS_H__ */

0 commit comments

Comments
 (0)