MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / sb_bread

Function sb_bread

Ext4Fsd/include/linux/module.h:977–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977static inline struct buffer_head *
978 sb_bread(struct super_block *sb, sector_t block)
979{
980 struct buffer_head *bh = __getblk(sb->s_bdev, block, sb->s_blocksize);
981 if (!bh)
982 return NULL;
983 if (!buffer_uptodate(bh) && (bh_submit_read(bh) < 0)) {
984 brelse(bh);
985 return NULL;
986 }
987 return bh;
988}
989
990static inline struct buffer_head *
991 sb_find_get_block(struct super_block *sb, sector_t block)

Callers

nothing calls this directly

Calls 3

__getblkFunction · 0.85
bh_submit_readFunction · 0.85
brelseFunction · 0.85

Tested by

no test coverage detected