From: "hpp.iscas" <hppiscas@163.com>
To: Trond Myklebust <trondmy@kernel.org>
Cc: "hpp.iscas" <hppiscas@163.com>, Anna Schumaker <anna@kernel.org>,
linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] NFS: enable pNFS verifier clearing for modular NFSv4
Date: Sat, 5 Sep 2026 21:30:25 +0800 [thread overview]
Message-ID: <20260905133025.63239-1-hppiscas@163.com> (raw)
CONFIG_NFS_V4 is tristate. When it is set to m, CONFIG_NFS_V4_MODULE
is defined instead of CONFIG_NFS_V4, so the current #ifdef selects the
empty nfs_clear_pnfs_ds_commit_verifiers() implementation. Direct-write
rescheduling then leaves the data-server commit verifiers unchanged.
Use IS_ENABLED() so the clearing helper is compiled for both built-in and
modular NFSv4 configurations.
Fixes: 7537db24806f ("NFS: Merge CONFIG_NFS_V4_1 with CONFIG_NFS_V4")
Signed-off-by: hpp.iscas <hppiscas@163.com>
---
fs/nfs/internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index abc81f5..11256dd 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -643,7 +643,7 @@ void nfs_pageio_stop_mirroring(struct nfs_pageio_descriptor *pgio);
int nfs_filemap_write_and_wait_range(struct address_space *mapping,
loff_t lstart, loff_t lend);
-#ifdef CONFIG_NFS_V4
+#if IS_ENABLED(CONFIG_NFS_V4)
static inline void
pnfs_bucket_clear_pnfs_ds_commit_verifiers(struct pnfs_commit_bucket *buckets,
unsigned int nbuckets)
reply other threads:[~2026-09-05 13:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260905133025.63239-1-hppiscas@163.com \
--to=hppiscas@163.com \
--cc=anna@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trondmy@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
all inboxes | Powered by JetHome®