Info

static inline struct buffer_head *

sb_bread(struct super_block *sb, sector_t block) {

return _bread(sb->s_bdev, block, sb->s_blocksize);

static inline struct buffer_head *

sb_getblk(struct super_block *sb, sector_t block) {

return _getblk(sb->s_bdev, block, sb->s_blocksize);

As the code shows, the routines are used to read specific filesystem blocks found using a superblock, a block number, and a block size.

Continue reading here: Summary

Was this article helpful?

0 0