Skip to content

Commit a0b5ff0

Browse files
Davidlohr Buesobrauner
authored andcommitted
fs/ocfs2: use sleeping version of __find_get_block()
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>
1 parent 5b67d43 commit a0b5ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ocfs2/journal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ static int ocfs2_force_read_journal(struct inode *inode)
12491249
}
12501250

12511251
for (i = 0; i < p_blocks; i++, p_blkno++) {
1252-
bh = __find_get_block(osb->sb->s_bdev, p_blkno,
1252+
bh = __find_get_block_nonatomic(osb->sb->s_bdev, p_blkno,
12531253
osb->sb->s_blocksize);
12541254
/* block not cached. */
12551255
if (!bh)

0 commit comments

Comments
 (0)