]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: fix xfstest generic/269 double revoked buffer bug with bigalloc
authorDaeho Jeong <daeho.jeong@samsung.com>
Sun, 18 Oct 2015 02:28:21 +0000 (22:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 18 Oct 2015 02:28:21 +0000 (22:28 -0400)
commit9a545f6ff792fb297ce15736374a6b16c479d174
tree1937d0e517338f33c1663fb305c1a5c98000fd92
parent7d6232775976cc9598ca82ae3d5669e085de15c4
ext4: fix xfstest generic/269 double revoked buffer bug with bigalloc

When you repeatly execute xfstest generic/269 with bigalloc_1k option
enabled using the below command:

"./kvm-xfstests -c bigalloc_1k -m nodelalloc -C 1000 generic/269"

you can easily see the below bug message.

"JBD2 unexpected failure: jbd2_journal_revoke: !buffer_revoked(bh);"

This means that an already revoked buffer is erroneously revoked again
and it is caused by doing revoke for the buffer at the wrong position
in ext4_free_blocks(). We need to re-position the buffer revoke
procedure for an unspecified buffer after checking the cluster boundary
for bigalloc option. If not, some part of the cluster can be doubly
revoked.

Signed-off-by: Daeho Jeong <daeho.jeong@samsung.com>
fs/ext4/mballoc.c