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 /include/linux/exportfs.h | |
parent | 6f0c0580b70c89094b3422ba81118c7b959c7556 (diff) | |
download | blackbird-op-linux-216b6cbdcbd86b1db0754d58886b466ae31f5a63.tar.gz blackbird-op-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 'include/linux/exportfs.h')
-rw-r--r-- | include/linux/exportfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h index 12291a7ee275..0e1452546300 100644 --- a/include/linux/exportfs.h +++ b/include/linux/exportfs.h @@ -83,6 +83,11 @@ enum fid_type { * 64 bit parent inode number. */ FILEID_NILFS_WITH_PARENT = 0x62, + + /* + * Filesystems must not use 0xff file ID. + */ + FILEID_INVALID = 0xff, }; struct fid { |