diff options
author | Namjae Jeon <linkinjeon@gmail.com> | 2012-08-29 10:10:10 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-07 19:22:30 -0500 |
commit | 216b6cbdcbd86b1db0754d58886b466ae31f5a63 (patch) | |
tree | 409ef2bc2fcc5a8336453d29f8a5eac9dd45ec10 /fs/exportfs | |
parent | 6f0c0580b70c89094b3422ba81118c7b959c7556 (diff) |
exportfs: add FILEID_INVALID to indicate invalid fid_type
This commit adds FILEID_INVALID = 0xff in fid_type to
indicate invalid fid_type
It avoids using magic number 255
Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Vivek Trivedi <vtrivedi018@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/exportfs')
-rw-r--r-- | fs/exportfs/expfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index 29ab099e3e08..f1f1c59c2966 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c | |||
@@ -322,10 +322,10 @@ static int export_encode_fh(struct inode *inode, struct fid *fid, | |||
322 | 322 | ||
323 | if (parent && (len < 4)) { | 323 | if (parent && (len < 4)) { |
324 | *max_len = 4; | 324 | *max_len = 4; |
325 | return 255; | 325 | return FILEID_INVALID; |
326 | } else if (len < 2) { | 326 | } else if (len < 2) { |
327 | *max_len = 2; | 327 | *max_len = 2; |
328 | return 255; | 328 | return FILEID_INVALID; |
329 | } | 329 | } |
330 | 330 | ||
331 | len = 2; | 331 | len = 2; |