]> 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)
commit738d12606b623fcc9a44f0a6b0af6e66f2d07688
treebe17d7ad5505903535ea9e547e70bd712c05c1d0
parent49de492bf0a9bce63fdb64993b5a23f17d40f1c4
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