* [PATCH 2/2] io_uring: use file_mnt_idmap helper
[not found] <20240129180024.219766-1-aleksandr.mikhalitsyn@canonical.com>
@ 2024-01-29 18:00 ` Alexander Mikhalitsyn
2024-01-30 9:40 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Mikhalitsyn @ 2024-01-29 18:00 UTC (permalink / raw)
To: brauner
Cc: Alexander Mikhalitsyn, Jens Axboe, Pavel Begunkov, io-uring,
linux-fsdevel, linux-kernel
Let's use file_mnt_idmap() as we do that across the tree.
No functional impact.
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Pavel Begunkov <asml.silence@gmail.com>
Cc: <io-uring@vger.kernel.org>
Cc: <linux-fsdevel@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
---
io_uring/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/io_uring/xattr.c b/io_uring/xattr.c
index e1c810e0b85a..44905b82eea8 100644
--- a/io_uring/xattr.c
+++ b/io_uring/xattr.c
@@ -112,7 +112,7 @@ int io_fgetxattr(struct io_kiocb *req, unsigned int issue_flags)
WARN_ON_ONCE(issue_flags & IO_URING_F_NONBLOCK);
- ret = do_getxattr(mnt_idmap(req->file->f_path.mnt),
+ ret = do_getxattr(file_mnt_idmap(req->file),
req->file->f_path.dentry,
&ix->ctx);
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] io_uring: use file_mnt_idmap helper
2024-01-29 18:00 ` [PATCH 2/2] io_uring: use file_mnt_idmap helper Alexander Mikhalitsyn
@ 2024-01-30 9:40 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2024-01-30 9:40 UTC (permalink / raw)
To: Alexander Mikhalitsyn
Cc: Jens Axboe, Pavel Begunkov, io-uring, linux-fsdevel, linux-kernel
On Mon, Jan 29, 2024 at 07:00:24PM +0100, Alexander Mikhalitsyn wrote:
> Let's use file_mnt_idmap() as we do that across the tree.
>
> No functional impact.
>
> Cc: Christian Brauner <brauner@kernel.org>
> Cc: Jens Axboe <axboe@kernel.dk>
> Cc: Pavel Begunkov <asml.silence@gmail.com>
> Cc: <io-uring@vger.kernel.org>
> Cc: <linux-fsdevel@vger.kernel.org>
> Cc: <linux-kernel@vger.kernel.org>
> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
> ---
Looks good to me,
Reviewed-by: Christian Brauner <brauner@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-30 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240129180024.219766-1-aleksandr.mikhalitsyn@canonical.com>
2024-01-29 18:00 ` [PATCH 2/2] io_uring: use file_mnt_idmap helper Alexander Mikhalitsyn
2024-01-30 9:40 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox