[GFS2] Fix quota do_list operation hang
commit2d9a4bbf6d28673f4057682cc02d16bf288b4a35
authorAbhijith Das <adas@redhat.com>
Wed, 15 Aug 2007 16:25:05 +0000 (15 11:25 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Oct 2007 07:55:27 +0000 (10 08:55 +0100)
treeda4e598c88bc6df06e920951ad4d47deb350fc57
parent34eaae398e29dadeed95efd30f1eb694e5932b34
[GFS2] Fix quota do_list operation hang

This is the filesystem part of the patches to fix this bz. There are
additional userland patches (gfs2_quota, libgfs2) for the complete
solution. This patch adds a new field qu_ll_next to the gfs2_quota
structure. This field allows us to create linked lists of quotas in the
ondisk quota inode. Instead of scanning through the entire sparse quota
file for valid quotas, we can now simply walk through the user and group
quota linked lists to perform the do_list operation.

Signed-off-by: Abhijith Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/quota.c
include/linux/gfs2_ondisk.h