> However, the method is the same to the test itself.
> 
> I think this is a kind of kernel bug. How do you think?
> Following is my proposal to fix the kernel.
> If this patch is acceptable to kernel, I don't have to
> modify the test case side.

Did you send this off to linux-kernel ? Once you get some updates also
do update us.

--Subrata

> 
> 
> Signed-off-by: Masatake YAMATO <[EMAIL PROTECTED]>
> 
> --- fadvise.c.orig    2008-01-08 12:07:43.000000000 +0900
> +++ fadvise.c 2008-01-08 12:11:17.000000000 +0900
> @@ -43,9 +43,22 @@
>               goto out;
>       }
> 
> -     if (mapping->a_ops->get_xip_page)
> -             /* no bad return value, but ignore advice */
> +     if (mapping->a_ops->get_xip_page) {
> +             switch (advice) {
> +             case POSIX_FADV_NORMAL:
> +             case POSIX_FADV_RANDOM:
> +             case POSIX_FADV_SEQUENTIAL:
> +             case POSIX_FADV_WILLNEED:
> +             case POSIX_FADV_NOREUSE:
> +             case POSIX_FADV_DONTNEED:
> +                     /* no bad return value, but ignore advice */
> +                     break;
> +             default:
> +                     ret = -EINVAL;
> +                     break;
> +             }
>               goto out;
> +     }
> 
>       /* Careful about overflows. Len == 0 means "as much as possible" */
>       endbyte = offset + len;
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to