summaryrefslogtreecommitdiffstats
path: root/fs/exportfs
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@gmail.com>2012-08-29 16:10:10 +0200
committerJ. Bruce Fields <bfields@redhat.com>2012-11-08 01:22:30 +0100
commit216b6cbdcbd86b1db0754d58886b466ae31f5a63 (patch)
tree409ef2bc2fcc5a8336453d29f8a5eac9dd45ec10 /fs/exportfs
parentLinux 3.7-rc2 (diff)
downloadlinux-216b6cbdcbd86b1db0754d58886b466ae31f5a63.tar.xz
linux-216b6cbdcbd86b1db0754d58886b466ae31f5a63.zip
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.c4
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,
if (parent && (len < 4)) {
*max_len = 4;
- return 255;
+ return FILEID_INVALID;
} else if (len < 2) {
*max_len = 2;
- return 255;
+ return FILEID_INVALID;
}
len = 2;