Linux NFS development
 help / color / mirror / Atom feed
* [PATCH] NFS: enable pNFS verifier clearing for modular NFSv4
@ 2026-09-05 13:30 hpp.iscas
  0 siblings, 0 replies; only message in thread
From: hpp.iscas @ 2026-09-05 13:30 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: hpp.iscas, Anna Schumaker, linux-nfs, linux-kernel

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)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-05 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-05 13:30 [PATCH] NFS: enable pNFS verifier clearing for modular NFSv4 hpp.iscas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox