[GFS2] Use vmalloc() in dir code
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 18 Apr 2006 14:09:15 +0000 (10:09 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 18 Apr 2006 14:09:15 +0000 (10:09 -0400)
commitfe1bdedc6c16adedc6fd3636185ea91596b1d6eb
tree4d68a40c1a2db670e71952003e5fb09a95123975
parent4d8012b60e0f0e0217e65f67da7d97276d1824e9
[GFS2] Use vmalloc() in dir code

When allocating memory to sort directory entries, use vmalloc()
rather than kmalloc() since for larger directories, the required
size can easily be graeter than the 128k maximum of kmalloc().

Also adding the first steps towards getting the AOP_TRUNCATED_PAGE
return code get in the glock code by flagging all places where we
request a glock and we are holding a page lock.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c
fs/gfs2/glock.c
fs/gfs2/glock.h
fs/gfs2/incore.h
fs/gfs2/meta_io.c
fs/gfs2/ops_address.c
fs/gfs2/ops_inode.c
fs/gfs2/ops_super.c