]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/fhandle.c
exportfs: add FILEID_INVALID to indicate invalid fid_type
[karo-tx-linux.git] / fs / fhandle.c
index f775bfdd6e4a7f3e0700b8ea556261ad8c13e3ba..26f12b95702a35f4ac5533936859a9ab449bb096 100644 (file)
@@ -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