OpenCloudOS-Kernel/fs/jbd2
zhangyi (F) ef3f5830b8 jbd2: add the missing unlock_buffer() in the error path of jbd2_write_superblock()
jbd2_write_superblock() is under the buffer lock of journal superblock
before ending that superblock write, so add a missing unlock_buffer() in
in the error path before submitting buffer.

Fixes: 742b06b562 ("jbd2: check superblock mapped prior to committing")
Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20200620061948.2049579-1-yi.zhang@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2020-08-06 00:15:58 -04:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
checkpoint.c block: remove the error_sector argument to blkdev_issue_flush 2020-05-22 08:45:46 -06:00
commit.c block: remove the error_sector argument to blkdev_issue_flush 2020-05-22 08:45:46 -06:00
journal.c jbd2: add the missing unlock_buffer() in the error path of jbd2_write_superblock() 2020-08-06 00:15:58 -04:00
recovery.c block: remove the error_sector argument to blkdev_issue_flush 2020-05-22 08:45:46 -06:00
revoke.c jbd2: Reserve space for revoke descriptor blocks 2019-11-05 16:00:48 -05:00
transaction.c jbd2: make sure jh have b_transaction set in refile/unfile_buffer 2020-08-06 00:11:15 -04:00