Re: [PATCH 03/21] filename_lookup(): constify root argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat 06-09-25 10:11:19, Al Viro wrote:
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

Looks good. Feel free to add:

Reviewed-by: Jan Kara <jack@xxxxxxx>

								Honza

> ---
>  fs/internal.h | 2 +-
>  fs/namei.c    | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/internal.h b/fs/internal.h
> index 38e8aab27bbd..d7c86d9d94b9 100644
> --- a/fs/internal.h
> +++ b/fs/internal.h
> @@ -53,7 +53,7 @@ extern int finish_clean_context(struct fs_context *fc);
>   * namei.c
>   */
>  extern int filename_lookup(int dfd, struct filename *name, unsigned flags,
> -			   struct path *path, struct path *root);
> +			   struct path *path, const struct path *root);
>  int do_rmdir(int dfd, struct filename *name);
>  int do_unlinkat(int dfd, struct filename *name);
>  int may_linkat(struct mnt_idmap *idmap, const struct path *link);
> diff --git a/fs/namei.c b/fs/namei.c
> index cd43ff89fbaa..869976213b0c 100644
> --- a/fs/namei.c
> +++ b/fs/namei.c
> @@ -2673,7 +2673,7 @@ static int path_lookupat(struct nameidata *nd, unsigned flags, struct path *path
>  }
>  
>  int filename_lookup(int dfd, struct filename *name, unsigned flags,
> -		    struct path *path, struct path *root)
> +		    struct path *path, const struct path *root)
>  {
>  	int retval;
>  	struct nameidata nd;
> -- 
> 2.47.2
> 
-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux