diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-12-01 01:03:19 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-12-09 17:39:38 +0300 |
commit | 01cbf3853959feec40ec9b9a399e12a021cd4d81 (patch) | |
tree | 08d0a82ebf7f276dccc2c3d45792effffbd1b14f /fs/nfs | |
parent | 2e19d10c1438241de32467637a2a411971547991 (diff) | |
download | linux-01cbf3853959feec40ec9b9a399e12a021cd4d81.tar.xz |
nfsd: Set PF_LOCAL_THROTTLE on local filesystems only
Don't set PF_LOCAL_THROTTLE on remote filesystems like NFS, since they
aren't expected to ever be subject to double buffering.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/export.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/export.c b/fs/nfs/export.c index 5428713af5fe..48b879cfe6e3 100644 --- a/fs/nfs/export.c +++ b/fs/nfs/export.c @@ -171,5 +171,6 @@ const struct export_operations nfs_export_ops = { .encode_fh = nfs_encode_fh, .fh_to_dentry = nfs_fh_to_dentry, .get_parent = nfs_get_parent, - .flags = EXPORT_OP_NOWCC|EXPORT_OP_NOSUBTREECHK|EXPORT_OP_CLOSE_BEFORE_UNLINK, + .flags = EXPORT_OP_NOWCC|EXPORT_OP_NOSUBTREECHK| + EXPORT_OP_CLOSE_BEFORE_UNLINK|EXPORT_OP_REMOTE_FS, }; |