projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c645e65
)
buffer: convert sb_getblk() to call __getblk()
author
Matthew Wilcox (Oracle)
<willy@infradead.org>
Thu, 14 Sep 2023 15:00:09 +0000
(16:00 +0100)
committer
Andrew Morton
<akpm@linux-foundation.org>
Wed, 4 Oct 2023 17:32:29 +0000
(10:32 -0700)
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>
include/linux/buffer_head.h
patch
|
blob
|
history
diff --git
a/include/linux/buffer_head.h
b/include/linux/buffer_head.h
index 9a3ca5f6d63d755d171420a52684e87501b82a63..b294e2cccbae32e28ac0df12ede5a5c2f08f7871 100644
(file)
--- a/
include/linux/buffer_head.h
+++ b/
include/linux/buffer_head.h
@@
-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)
{