mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
buffer: convert sb_getblk() to call __getblk()
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>
This commit is contained in:
parent
c645e65c06
commit
4b9c8b1919
1 changed files with 3 additions and 4 deletions
|
@ -362,13 +362,12 @@ static inline struct buffer_head *__getblk(struct block_device *bdev,
|
|||
return bdev_getblk(bdev, block, size, gfp);
|
||||
}
|
||||
|
||||
static inline struct buffer_head *
|
||||
sb_getblk(struct super_block *sb, sector_t block)
|
||||
static inline struct buffer_head *sb_getblk(struct super_block *sb,
|
||||
sector_t block)
|
||||
{
|
||||
return __getblk_gfp(sb->s_bdev, block, sb->s_blocksize, __GFP_MOVABLE);
|
||||
return __getblk(sb->s_bdev, block, sb->s_blocksize);
|
||||
}
|
||||
|
||||
|
||||
static inline struct buffer_head *
|
||||
sb_getblk_gfp(struct super_block *sb, sector_t block, gfp_t gfp)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue