From: "Darrick J. Wong" <djwong@kernel.org>
To: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: linux-xfs@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
Carlos Maiolino <cem@kernel.org>,
Damien Le Moal <dlemoal@kernel.org>
Subject: Re: [PATCH v2 4/4] xfs: mark internal metadir file creation helpers static
Date: Mon, 13 Jul 2026 15:55:25 -0700 [thread overview]
Message-ID: <20260713225525.GL7195@frogsfrogsfrogs> (raw)
In-Reply-To: <20260713124250.3978-5-johannes.thumshirn@wdc.com>
On Mon, Jul 13, 2026 at 02:42:50PM +0200, Johannes Thumshirn wrote:
> Now that there is xfs_metadir_create_file() mark
> xfs_metadir_start_create(), xfs_metadir_create() and xfs_metadir_cancel()
> as static and remove them from xfs_metadir.h.
>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> ---
> fs/xfs/libxfs/xfs_metadir.c | 6 +++---
> fs/xfs/libxfs/xfs_metadir.h | 4 ----
> 2 files changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/fs/xfs/libxfs/xfs_metadir.c b/fs/xfs/libxfs/xfs_metadir.c
> index 0d6a153bc9e9..7c6b086b73db 100644
> --- a/fs/xfs/libxfs/xfs_metadir.c
> +++ b/fs/xfs/libxfs/xfs_metadir.c
> @@ -182,7 +182,7 @@ xfs_metadir_teardown(
> * Begin the process of creating a metadata file by allocating transactions
> * and taking whatever resources we're going to need.
> */
> -int
> +static int
> xfs_metadir_start_create(
> struct xfs_metadir_update *upd)
> {
> @@ -236,7 +236,7 @@ xfs_metadir_start_create(
> * a negative error code. If an inode is passed back, the caller must finish
> * setting up the inode before releasing it.
> */
> -int
> +static int
> xfs_metadir_create(
> struct xfs_metadir_update *upd,
> umode_t mode)
> @@ -425,7 +425,7 @@ xfs_metadir_commit(
> }
>
> /* Cancel a metadir update and unlock/drop all resources. */
> -void
> +static void
> xfs_metadir_cancel(
> struct xfs_metadir_update *upd,
> int error)
> diff --git a/fs/xfs/libxfs/xfs_metadir.h b/fs/xfs/libxfs/xfs_metadir.h
> index a795a2d0e3fe..e434b9d1c932 100644
> --- a/fs/xfs/libxfs/xfs_metadir.h
> +++ b/fs/xfs/libxfs/xfs_metadir.h
> @@ -32,9 +32,6 @@ int xfs_metadir_load(struct xfs_trans *tp, struct xfs_inode *dp,
> const char *path, enum xfs_metafile_type metafile_type,
> struct xfs_inode **ipp);
>
> -int xfs_metadir_start_create(struct xfs_metadir_update *upd);
> -int xfs_metadir_create(struct xfs_metadir_update *upd, umode_t mode);
> -
> typedef int (*xfs_metadir_createfn)(struct xfs_metadir_update *upd, void *priv);
>
> int xfs_metadir_create_file(struct xfs_metadir_update *upd, umode_t mode,
> @@ -45,7 +42,6 @@ int xfs_metadir_start_link(struct xfs_metadir_update *upd);
> int xfs_metadir_link(struct xfs_metadir_update *upd);
>
> int xfs_metadir_commit(struct xfs_metadir_update *upd);
> -void xfs_metadir_cancel(struct xfs_metadir_update *upd, int error);
>
> int xfs_metadir_mkdir(struct xfs_inode *dp, const char *path,
> struct xfs_inode **ipp);
> --
> 2.54.0
>
>
prev parent reply other threads:[~2026-07-13 22:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-13 12:42 [PATCH v2 0/4] xfs: consolidate metadir creation code Johannes Thumshirn
2026-07-13 12:42 ` [PATCH v2 1/4] xfs: add xfs_metadir_create_file helper Johannes Thumshirn
2026-07-13 13:31 ` Christoph Hellwig
2026-07-13 22:51 ` Darrick J. Wong
2026-07-13 12:42 ` [PATCH v2 2/4] xfs: create quota metadir inodes using xfs_metadir_create_file Johannes Thumshirn
2026-07-13 22:52 ` Darrick J. Wong
2026-07-13 12:42 ` [PATCH v2 3/4] xfs: create rtgroup " Johannes Thumshirn
2026-07-13 22:54 ` Darrick J. Wong
2026-07-13 12:42 ` [PATCH v2 4/4] xfs: mark internal metadir file creation helpers static Johannes Thumshirn
2026-07-13 13:32 ` Christoph Hellwig
2026-07-13 22:55 ` Darrick J. Wong [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=20260713225525.GL7195@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=cem@kernel.org \
--cc=dlemoal@kernel.org \
--cc=hch@lst.de \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-xfs@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