Re: [patch] truncate fixes

Andrew Morton (akpm@zip.com.au)
Sun, 06 Jan 2002 19:11:45 -0800


Andrea Arcangeli wrote:
>
> I prefer my fix that simply recalls the ->truncate callback if -ENOSPC
> is returned by prepare_write. vmtruncate seems way overkill,

Actually, vmtruncate will trim the page off the inode as well as the
blocks from the file. I don't think there's necessarily a problem
with having a page wholly outside i_size, but..

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/