tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] Re: zero-filed page on VOP_PUTPAGES
hi,
> YAMAMOTO Takashi <yamt%mwd.biglobe.ne.jp@localhost> wrote:
>
>> uvm_vnp_setsize merely changes the kernel's idea of the size of the file.
>
> It also triggers a file truncate if it discovers that the size set is
> smaller than previous kernel idea.
yes.
but dropping page cache isn't a problem as far as it's consistent with
the kernel's own idea of the file size.
otoh, as you discovered, the call in getattr is problematic because
it confuses the kernel.
YAMAMOTO Takashi
>
> --
> Emmanuel Dreyfus
> http://hcpnet.free.fr/pubz
> manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index