VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Linus Torvalds <torvalds@linux-foundation.org> 2012-12-20 14:04:11 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2012-12-20 14:04:11 -0800 commit: 982197277c85018cc6eb77f1d3bef17933b0c5fd parent: 40889e8d9fc6355980cf2bc94ef4356c10dec4ec
Commit Summary:
Merge branch 'for-3.8' of git://linux-nfs.org/~bfields/linux
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/fhandle.c b/fs/fhandle.c
index cccdc874bb55..999ff5c3cab0 100644
--- a/fs/fhandle.c
+++ b/fs/fhandle.c
@@ -52,7 +52,7 @@ static long do_sys_name_to_handle(struct path *path,
 	handle_bytes = handle_dwords * sizeof(u32);
 	handle->handle_bytes = handle_bytes;
 	if ((handle->handle_bytes > f_handle.handle_bytes) ||
-	    (retval == 255) || (retval == -ENOSPC)) {
+	    (retval == FILEID_INVALID) || (retval == -ENOSPC)) {
 		/* As per old exportfs_encode_fh documentation
 		 * we could return ENOSPC to indicate overflow
 		 * But file system returned 255 always. So handle