hi,

> YAMAMOTO Takashi <[email protected]> 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
> [email protected]

Reply via email to