diff options
author | Mike Snitzer <snitzer@kernel.org> | 2024-09-05 15:09:36 -0400 |
---|---|---|
committer | Anna Schumaker <anna.schumaker@oracle.com> | 2024-09-23 15:03:29 -0400 |
commit | 1fcb16674e37e434efe68ec3e142229f35b6b9e1 (patch) | |
tree | 2dbdb995066a66851859a6b7e2df073f6aa8b729 /include/linux/nfs_common.h | |
parent | 4806ded4c14c5e8fdc6ce885d83221a78c06a428 (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 <snitzer@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'include/linux/nfs_common.h')
-rw-r--r-- | include/linux/nfs_common.h | 1 |
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 */ |