|
|
Subscribe / Log in / New account

io_uring: add mkdirat support

From:  Dmitry Kadashev <dkadashev-AT-gmail.com>
To:  Jens Axboe <axboe-AT-kernel.dk>, Alexander Viro <viro-AT-zeniv.linux.org.uk>
Subject:  [PATCH v2 0/2] io_uring: add mkdirat support
Date:  Tue, 02 Feb 2021 15:23:51 +0700
Message-ID:  <20210202082353.2152271-1-dkadashev@gmail.com>
Cc:  Pavel Begunkov <asml.silence-AT-gmail.com>, linux-fsdevel-AT-vger.kernel.org, io-uring-AT-vger.kernel.org, Dmitry Kadashev <dkadashev-AT-gmail.com>
Archive-link:  Article

This adds mkdirat support to io_uring and is heavily based on recently
added renameat() / unlinkat() support.

The first patch is preparation with no functional changes, makes
do_mkdirat accept struct filename pointer rather than the user string.

The second one leverages that to implement mkdirat in io_uring.

Based on for-5.11/io_uring.

Changes since v1:
- do not mess with struct filename's refcount in do_mkdirat, instead add
  and use __filename_create() that does not drop the name on success;

Dmitry Kadashev (2):
  fs: make do_mkdirat() take struct filename
  io_uring: add support for IORING_OP_MKDIRAT

 fs/internal.h                 |  1 +
 fs/io_uring.c                 | 58 +++++++++++++++++++++++++++++++++++
 fs/namei.c                    | 25 +++++++++++----
 include/uapi/linux/io_uring.h |  1 +
 4 files changed, 79 insertions(+), 6 deletions(-)

-- 
2.30.0



Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds