summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJan Kara <jack@suse.com>2015-10-18 05:35:09 +0300
committerTheodore Ts'o <tytso@mit.edu>2015-10-18 05:35:09 +0300
commit33d14975e5ac469963d5d63856b61698ad0bff07 (patch)
treefaa2e7fab1cc1284ab2bc8537464707d5a61c4c1 /arch
parent9c02ac97989d544c89f049e8add7149aaea01671 (diff)
downloadlinux-33d14975e5ac469963d5d63856b61698ad0bff07.tar.xz
jbd2: fix checkpoint list cleanup
Unlike comments and expectation of callers journal_clean_one_cp_list() returned 1 not only if it freed the transaction but also if it freed some buffers in the transaction. That could make __jbd2_journal_clean_checkpoint_list() skip processing t_checkpoint_io_list and continue with processing the next transaction. This is mostly a cosmetic issue since the only result is we can sometimes free less memory than we could. But it's still worth fixing. Fix journal_clean_one_cp_list() to return 1 only if the transaction was really freed. Fixes: 50849db32a9f529235a84bcc84a6b8e631b1d0ec Signed-off-by: Jan Kara <jack@suse.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@vger.kernel.org
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions