]> git.itanic.dy.fi Git - linux-stable/commit
ext4, jbd2: add an optimized bmap for the journal inode
authorTheodore Ts'o <tytso@mit.edu>
Wed, 8 Mar 2023 04:15:49 +0000 (23:15 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 11 Mar 2023 05:44:24 +0000 (00:44 -0500)
commit62913ae96de747091c4dacd06d158e7729c1a76d
treeb8216b43eed65fb2f7ddbedb9bdb7697a890b861
parent2b96b4a5d9443ca4cad58b0040be455803c05a42
ext4, jbd2: add an optimized bmap for the journal inode

The generic bmap() function exported by the VFS takes locks and does
checks that are not necessary for the journal inode.  So allow the
file system to set a journal-optimized bmap function in
journal->j_bmap.

Reported-by: syzbot+9543479984ae9e576000@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?id=e4aaa78795e490421c79f76ec3679006c8ff4cf0
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c
fs/jbd2/journal.c
include/linux/jbd2.h