diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-02-17 15:48:11 +0900 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-26 02:46:10 -0500 |
commit | 94e07a7590ae855bae0536c42b3086fadc7c83a8 (patch) | |
tree | a34b3acd03dc5da51b3307478dd572fbd6d22880 /fs/udf | |
parent | 182be684784334598eee1d90274e7f7aa0063616 (diff) | |
download | linux-stable-94e07a7590ae855bae0536c42b3086fadc7c83a8.tar.gz linux-stable-94e07a7590ae855bae0536c42b3086fadc7c83a8.tar.bz2 linux-stable-94e07a7590ae855bae0536c42b3086fadc7c83a8.zip |
fs: encode_fh: return FILEID_INVALID if invalid fid_type
This patch is a follow up on below patch:
[PATCH] exportfs: add FILEID_INVALID to indicate invalid fid_type
commit: 216b6cbdcbd86b1db0754d58886b466ae31f5a63
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Vivek Trivedi <t.vivek@samsung.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
Acked-by: Sage Weil <sage@inktank.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/namei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 95fee278ab9d..102c072c6bbf 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -1270,10 +1270,10 @@ static int udf_encode_fh(struct inode *inode, __u32 *fh, int *lenp, if (parent && (len < 5)) { *lenp = 5; - return 255; + return FILEID_INVALID; } else if (len < 3) { *lenp = 3; - return 255; + return FILEID_INVALID; } *lenp = 3; |