Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocfs2: Drop pointless sync_mapping_buffers() calls

ocfs2 never calls mark_buffer_dirty_inode() and thus its metadata
buffers list is always empty. Drop the pointless sync_mapping_buffers()
calls.

CC: Joel Becker <jlbec@evilplan.org>
CC: Joseph Qi <joseph.qi@linux.alibaba.com>
CC: ocfs2-devel@lists.linux.dev
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20260326095354.16340-46-jack@suse.cz
Tested-by: syzbot@syzkaller.appspotmail.com
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Jan Kara and committed by
Christian Brauner
70450fcf ddd6761f

-4
-1
fs/ocfs2/dlmglue.c
··· 3971 3971 mlog(ML_ERROR, "Could not sync inode %llu for downconvert!", 3972 3972 (unsigned long long)OCFS2_I(inode)->ip_blkno); 3973 3973 } 3974 - sync_mapping_buffers(mapping); 3975 3974 if (blocking == DLM_LOCK_EX) { 3976 3975 truncate_inode_pages(mapping, 0); 3977 3976 } else {
-3
fs/ocfs2/namei.c
··· 1683 1683 if (rename_lock) 1684 1684 ocfs2_rename_unlock(osb); 1685 1685 1686 - if (new_inode) 1687 - sync_mapping_buffers(old_inode->i_mapping); 1688 - 1689 1686 iput(new_inode); 1690 1687 1691 1688 ocfs2_free_dir_lookup_result(&target_lookup_res);