• Bob Peterson's avatar
    gfs2: check for no eligible quota changes · 06aa6fd3
    Bob Peterson authored
    Before this patch, function gfs2_quota_sync would always allocate a page
    full of memory and increment its quota sync generation number. This
    happened even when the system was completely idle or if no blocks were
    allocated or quota changes made. This patch adds function qd_changed
    to determine if any changes have been made that qualify for a
    quota sync. If not, it avoids the memory allocation and bumping the
    generation number, along with all the additional work it would do.
    Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    06aa6fd3
quota.c 42.6 KB