[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>
Этот коммит содержится в:
Steven Whitehouse
2006-04-18 10:09:15 -04:00
родитель 4d8012b60e
Коммит fe1bdedc6c
8 изменённых файлов: 12 добавлений и 10 удалений

Просмотреть файл

@@ -132,9 +132,7 @@ static void gfs2_put_super(struct super_block *sb)
/* At this point, we're through participating in the lockspace */
gfs2_sys_fs_del(sdp);
vfree(sdp);
sb->s_fs_info = NULL;
}