aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_export.c')
-rw-r--r--fs/xfs/xfs_export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_export.c b/fs/xfs/xfs_export.c
index a83611849cee..c585bc646395 100644
--- a/fs/xfs/xfs_export.c
+++ b/fs/xfs/xfs_export.c
@@ -48,7 +48,7 @@ static int xfs_fileid_length(int fileid_type)
48 case FILEID_INO32_GEN_PARENT | XFS_FILEID_TYPE_64FLAG: 48 case FILEID_INO32_GEN_PARENT | XFS_FILEID_TYPE_64FLAG:
49 return 6; 49 return 6;
50 } 50 }
51 return 255; /* invalid */ 51 return FILEID_INVALID;
52} 52}
53 53
54STATIC int 54STATIC int
@@ -90,7 +90,7 @@ xfs_fs_encode_fh(
90 len = xfs_fileid_length(fileid_type); 90 len = xfs_fileid_length(fileid_type);
91 if (*max_len < len) { 91 if (*max_len < len) {
92 *max_len = len; 92 *max_len = len;
93 return 255; 93 return FILEID_INVALID;
94 } 94 }
95 *max_len = len; 95 *max_len = len;
96 96