[PATCH 21/29] nfs: add EXPORT_OP_STABLE_HANDLES flag to export operations

Jeff Layton
2026-01-15T17:50:21Z

Add the EXPORT_OP_STABLE_HANDLES flag to nfs export operations to indicate
that this filesystem can be exported via NFS.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
fs/nfs/export.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/nfs/export.c b/fs/nfs/export.c
index a10dd5f9d0786eb111113bf524a1af8b7da0fb6e..7592ef347a2eae5d6305b64effd22537d5ef5e74 100644
--- a/fs/nfs/export.c
+++ b/fs/nfs/export.c
@@ -162,5 +162,6 @@ const struct export_operations nfs_export_ops = {
EXPORT_OP_REMOTE_FS |
EXPORT_OP_NOATOMIC_ATTR |
EXPORT_OP_FLUSH_ON_CLOSE |
- EXPORT_OP_NOLOCKS,
+ EXPORT_OP_NOLOCKS |
+ EXPORT_OP_STABLE_HANDLES,
};

--
2.52.0