• Eric Sandeen's avatar
    [XFS] fix nasty quota hashtable allocation bug · 5995cb7d
    Eric Sandeen authored
    This git mod: 77e4635a
    converted to a "greedy" allocation interface, but for the quota hashtables
    it switched from allocating XFS_QM_HASHSIZE (nr of elements)
    xfs_dqhash_t's to allocating only XFS_QM_HASHSIZE *bytes* - quite a lot
    smaller! Then when we converted hsize "back" to nr of elements (the
    division line) hsize went to 0. This was leading to oopses when running
    any quota tests on the Fedora 8 test kernel, but the problem has been
    there for almost a year.
    
    SGI-PV: 968837
    SGI-Modid: xfs-linux-melb:xfs-kern:29354a
    Signed-off-by: default avatarEric Sandeen <sandeen@sandeen.net>
    Signed-off-by: default avatarDavid Chinner <dgc@sgi.com>
    Signed-off-by: default avatarTim Shimmin <tes@sgi.com>
    5995cb7d
xfs_qm.c 69.8 KB