From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: David Sterba <dsterba@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs: sink idmap parameter to __btrfs_ioctl_snap_create()
Date: Tue, 30 Jun 2026 09:44:22 +0930 [thread overview]
Message-ID: <bc40bcfe-94b6-4369-a54d-888589f3eb29@gmx.com> (raw)
In-Reply-To: <20260630000917.2521623-1-dsterba@suse.com>
在 2026/6/30 09:39, David Sterba 写道:
> The 'idmap' parameter is derived from 'file' that we also pass to
> __btrfs_ioctl_snap_create(), assign it inside the function.
>
> Signed-off-by: David Sterba <dsterba@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Thanks,
Qu
> ---
> fs/btrfs/ioctl.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
> index 1ed16ff4007b..8aa6538f005c 100644
> --- a/fs/btrfs/ioctl.c
> +++ b/fs/btrfs/ioctl.c
> @@ -1143,13 +1143,13 @@ static noinline int btrfs_ioctl_resize(struct file *file,
> }
>
> static noinline int __btrfs_ioctl_snap_create(struct file *file,
> - struct mnt_idmap *idmap,
> const char *name, unsigned long fd, bool subvol,
> bool readonly,
> struct btrfs_qgroup_inherit *inherit)
> {
> int ret;
> struct qstr qname = QSTR(name);
> + struct mnt_idmap *idmap = file_mnt_idmap(file);
>
> if (!S_ISDIR(file_inode(file)->i_mode))
> return -ENOTDIR;
> @@ -1227,8 +1227,7 @@ static noinline int btrfs_ioctl_snap_create(struct file *file,
> if (ret < 0)
> return ret;
>
> - return __btrfs_ioctl_snap_create(file, file_mnt_idmap(file),
> - vol_args->name, vol_args->fd, subvol,
> + return __btrfs_ioctl_snap_create(file, vol_args->name, vol_args->fd, subvol,
> false, NULL);
> }
>
> @@ -1271,8 +1270,7 @@ static noinline int btrfs_ioctl_snap_create_v2(struct file *file,
> return ret;
> }
>
> - return __btrfs_ioctl_snap_create(file, file_mnt_idmap(file),
> - vol_args->name, vol_args->fd, subvol,
> + return __btrfs_ioctl_snap_create(file, vol_args->name, vol_args->fd, subvol,
> readonly, inherit);
> }
>
prev parent reply other threads:[~2026-06-30 0:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 0:09 [PATCH] btrfs: sink idmap parameter to __btrfs_ioctl_snap_create() David Sterba
2026-06-30 0:14 ` Qu Wenruo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bc40bcfe-94b6-4369-a54d-888589f3eb29@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox