]> Git Repo - linux.git/commitdiff
exportfs: Remove EXPORT_OP_ASYNC_LOCK
authorBenjamin Coddington <[email protected]>
Wed, 11 Sep 2024 19:43:00 +0000 (15:43 -0400)
committerChristian Brauner <[email protected]>
Tue, 1 Oct 2024 15:01:08 +0000 (17:01 +0200)
Now that GFS2 and OCFS2 are signalling async ->lock() support with
FOP_ASYNC_LOCK and checks for support are converted, we can remove
EXPORT_OP_ASYNC_LOCK.

Signed-off-by: Benjamin Coddington <[email protected]>
Link: https://lore.kernel.org/r/0a114db814fec3086f937ae3d44a086f13b8de26.1726083391.git.bcodding@redhat.com
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Documentation/filesystems/nfs/exporting.rst
fs/gfs2/export.c
fs/ocfs2/export.c
include/linux/exportfs.h

index f04ce1215a03e700c7d750a37fb5d860ea8ba7cd..de64d2d002a204c5460980c898d4ec41fd43d47a 100644 (file)
@@ -238,10 +238,3 @@ following flags are defined:
     all of an inode's dirty data on last close. Exports that behave this
     way should set EXPORT_OP_FLUSH_ON_CLOSE so that NFSD knows to skip
     waiting for writeback when closing such files.
-
-  EXPORT_OP_ASYNC_LOCK - Indicates a capable filesystem to do async lock
-    requests from lockd. Only set EXPORT_OP_ASYNC_LOCK if the filesystem has
-    it's own ->lock() functionality as core posix_lock_file() implementation
-    has no async lock request handling yet. For more information about how to
-    indicate an async lock request from a ->lock() file_operations struct, see
-    fs/locks.c and comment for the function vfs_lock_file().
index d418d8b5367f5ac41f63b95f3c366556bb616716..3334c394ce9cbe26969809874a94e79bf068b11b 100644 (file)
@@ -190,6 +190,5 @@ const struct export_operations gfs2_export_ops = {
        .fh_to_parent = gfs2_fh_to_parent,
        .get_name = gfs2_get_name,
        .get_parent = gfs2_get_parent,
-       .flags = EXPORT_OP_ASYNC_LOCK,
 };
 
index 96b684763b3906c950a4cc86e8755eb6a48c5d21..b95724b767e150e991ae4b8ea5d0505c1ae95984 100644 (file)
@@ -280,5 +280,4 @@ const struct export_operations ocfs2_export_ops = {
        .fh_to_dentry   = ocfs2_fh_to_dentry,
        .fh_to_parent   = ocfs2_fh_to_parent,
        .get_parent     = ocfs2_get_parent,
-       .flags          = EXPORT_OP_ASYNC_LOCK,
 };
index 893a1d21dc1c4abc7e52325d7a4cf0adb407f039..1ab165c2939f867347d53a3f5ede03c3c6c6123a 100644 (file)
@@ -250,19 +250,6 @@ struct export_operations {
        unsigned long   flags;
 };
 
-/**
- * exportfs_lock_op_is_async() - export op supports async lock operation
- * @export_ops:        the nfs export operations to check
- *
- * Returns true if the nfs export_operations structure has
- * EXPORT_OP_ASYNC_LOCK in their flags set
- */
-static inline bool
-exportfs_lock_op_is_async(const struct export_operations *export_ops)
-{
-       return export_ops->flags & EXPORT_OP_ASYNC_LOCK;
-}
-
 extern int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid,
                                    int *max_len, struct inode *parent,
                                    int flags);
This page took 0.076052 seconds and 4 git commands to generate.