[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hugepage patches



William Lee Irwin III <wli@holomorphy.com> wrote:
>
> On Sun, Feb 02, 2003 at 02:55:46AM -0800, Andrew Morton wrote:
> > 6/4
> > hugetlbfs: fix truncate
> > - Opening a hugetlbfs file O_TRUNC calls the generic vmtruncate() functions
> >   and nukes the kernel.
> >   Give S_ISREG hugetlbfs files a inode_operations, and hence a setattr
> >   which know how to handle these files.
> > - Don't permit the user to truncate hugetlbfs files to sizes which are not
> >   a multiple of HPAGE_SIZE.
> > - We don't support expanding in ftruncate(), so remove that code.
> 
> erm, IIRC ftruncate() was the only way to expand the things;

Expanding ftruncate would be nice, but the current way of performing
the page instantiation at mmap() time seems sufficient.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/