gfs2: write revokes should traverse sd_ail1_list in reverse
authorBob Peterson <rpeterso@redhat.com>
Mon, 15 Oct 2018 17:17:30 +0000 (12:17 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 15 Oct 2018 17:17:30 +0000 (12:17 -0500)
commitc9e58fb2aad5231e7c49d90d059caa3c67a3ff31
treebe17d7ad5505903535ea9e547e70bd712c05c1d0
parent0ddeded4ae768882e5c3a5558f77f27e4e445a6a
gfs2: write revokes should traverse sd_ail1_list in reverse

All the other functions that deal with the sd_ail_list run the list
from the tail back to the head, iow, in reverse. We should do the
same while writing revokes, otherwise we might miss removing entries
properly from the list when we hit the limit of how many revokes we
can write at one time (based on block size, which determines how
many block pointers will fit in the revoke block).

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/log.c