From: Al Viro Date: Mon, 7 Jul 2025 01:40:23 +0000 (-0400) Subject: ksmbd_vfs_set_init_posix_acl(): constify path argument X-Git-Tag: v6.18-rc1~108^2~1^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d866c3b938c4f47cc8c5e27659d455f7e399c2e;p=thirdparty%2Fkernel%2Fstable.git ksmbd_vfs_set_init_posix_acl(): constify path argument Acked-by: Namjae Jeon Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/smb/server/vfs.c b/fs/smb/server/vfs.c index 299a5d9fcb785..a33b088afa27d 100644 --- a/fs/smb/server/vfs.c +++ b/fs/smb/server/vfs.c @@ -1856,7 +1856,7 @@ void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock) } int ksmbd_vfs_set_init_posix_acl(struct mnt_idmap *idmap, - struct path *path) + const struct path *path) { struct posix_acl_state acl_state; struct posix_acl *acls; diff --git a/fs/smb/server/vfs.h b/fs/smb/server/vfs.h index 458e2e3917b12..df6421b4590ba 100644 --- a/fs/smb/server/vfs.h +++ b/fs/smb/server/vfs.h @@ -164,7 +164,7 @@ int ksmbd_vfs_get_dos_attrib_xattr(struct mnt_idmap *idmap, struct dentry *dentry, struct xattr_dos_attrib *da); int ksmbd_vfs_set_init_posix_acl(struct mnt_idmap *idmap, - struct path *path); + const struct path *path); int ksmbd_vfs_inherit_posix_acl(struct mnt_idmap *idmap, const struct path *path, struct inode *parent_inode);