aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMike Snitzer <[email protected]>2024-09-05 15:09:36 -0400
committerAnna Schumaker <[email protected]>2024-09-23 15:03:29 -0400
commit1fcb16674e37e434efe68ec3e142229f35b6b9e1 (patch)
tree2dbdb995066a66851859a6b7e2df073f6aa8b729 /include/linux
parent4806ded4c14c5e8fdc6ce885d83221a78c06a428 (diff)
nfs_common: factor out nfs4_errtbl and nfs4_stat_to_errno
Common nfs4_stat_to_errno() is used by fs/nfs/nfs4xdr.c and will be used by fs/nfs/localio.c Signed-off-by: Mike Snitzer <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: NeilBrown <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_common.h b/include/linux/nfs_common.h
index 3395c4a4d372..5fc02df88252 100644
--- a/include/linux/nfs_common.h
+++ b/include/linux/nfs_common.h
@@ -12,5 +12,6 @@
#define errno_NFSERR_IO EIO
int nfs_stat_to_errno(enum nfs_stat status);
+int nfs4_stat_to_errno(int stat);
#endif /* _LINUX_NFS_COMMON_H */