Skip to content

Commit 2650b47

Browse files
Matthew Wilcox (Oracle)opsiff
authored andcommitted
buffer: convert sb_getblk() to call __getblk()
mainline inclusion from mainline-v6.7-rc1 category: bugfix Now that __getblk() is in the right place in the file, it is trivial to call it from sb_getblk(). Link: https://lkml.kernel.org/r/20230914150011.843330-7-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Hui Zhu <teawater@antgroup.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> (cherry picked from commit 4b9c8b1) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 91e904b commit 2650b47

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

include/linux/buffer_head.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,12 @@ static inline struct buffer_head *__getblk(struct block_device *bdev,
362362
return bdev_getblk(bdev, block, size, gfp);
363363
}
364364

365-
static inline struct buffer_head *
366-
sb_getblk(struct super_block *sb, sector_t block)
365+
static inline struct buffer_head *sb_getblk(struct super_block *sb,
366+
sector_t block)
367367
{
368-
return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE);
368+
return __getblk(sb->s_bdev, block, sb->s_blocksize);
369369
}
370370

371-
372371
static inline struct buffer_head *
373372
sb_getblk_gfp(struct super_block *sb, sector_t block, gfp_t gfp)
374373
{

0 commit comments

Comments
 (0)