]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca8fccfce9f6f3446c4f25a610dd2ddeb917c862
treebe17d7ad5505903535ea9e547e70bd712c05c1d0
parent03158d20eb3b33ce7f1443aa80f19f9046aa8589
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