]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ksmbd_vfs_set_init_posix_acl(): constify path argument
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Jul 2025 01:40:23 +0000 (21:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:17:09 +0000 (21:17 -0400)
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/smb/server/vfs.c
fs/smb/server/vfs.h

index 299a5d9fcb785904e7a10248f9ff42706b4c2a4c..a33b088afa27d9914ba7838e14a7cc63061dbd82 100644 (file)
@@ -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;
index 458e2e3917b128bd82ceaa9676d13a8ead60e4fb..df6421b4590baea593a7f20fc64d5ed1e9067ea7 100644 (file)
@@ -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);