]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: fix up sparse warnings in checkpoint code
authorTheodore Ts'o <tytso@mit.edu>
Sat, 7 Nov 2020 05:00:49 +0000 (00:00 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 7 Nov 2020 05:09:08 +0000 (00:09 -0500)
commitb79f10335a5aad58ded0fae58965e0854dfa3f5b
tree3c5f4ed1c18416092dac29bd1a1a87d6f17ff843
parentfde64c94f9dd74a6a53f63b60b8469cec340e5aa
jbd2: fix up sparse warnings in checkpoint code

Add missing __acquires() and __releases() annotations.  Also, in an
"this should never happen" WARN_ON check, if it *does* actually
happen, we need to release j_state_lock since this function is always
supposed to release that lock.  Otherwise, things will quickly grind
to a halt after the WARN_ON trips.

Fixes: c144b689b685 ("jbd2: avoid long hold times of j_state_lock...")
Cc: stable@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/checkpoint.c
fs/jbd2/transaction.c