mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-09-27 17:32:00 +10:00
fs/ocfs2: use sleeping version of __find_get_block()
[ Upstream commit a0b5ff0749
]
This is a path that allows for blocking as it does IO. Convert
to the new nonatomic flavor to benefit from potential performance
benefits and adapt in the future vs migration such that semantics
are kept.
Suggested-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://kdevops.org/ext4/v6.15-rc2.html # [0]
Link: https://lore.kernel.org/all/aAAEvcrmREWa1SKF@bombadil.infradead.org/ # [1]
Link: https://lore.kernel.org/20250418015921.132400-5-dave@stgolabs.net
Tested-by: kdevops@lists.linux.dev
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a49a4a87ce
commit
aafc270531
@ -1271,7 +1271,7 @@ static int ocfs2_force_read_journal(struct inode *inode)
|
||||
}
|
||||
|
||||
for (i = 0; i < p_blocks; i++, p_blkno++) {
|
||||
bh = __find_get_block(osb->sb->s_bdev, p_blkno,
|
||||
bh = __find_get_block_nonatomic(osb->sb->s_bdev, p_blkno,
|
||||
osb->sb->s_blocksize);
|
||||
/* block not cached. */
|
||||
if (!bh)
|
||||
|
Loading…
Reference in New Issue
Block a user