9becba0d7ed6e59da572ce1767435f7a9a3d7b08
2 #include <linux/module.h>
3 #include <linux/errno.h>
6 * extents_bread: This function is a wrapper of CcPinRead routine.
8 * @sb: the device we need to undergo buffered IO on.
9 * @block: the block we want to read from.
11 * If the call to this routine succeeds, the pages underlying the buffer header
12 * will be locked into memory, so that the buffer header returned for use is safe.
15 extents_bread(struct super_block
*sb
, sector_t block
)
17 return sb_getblk(sb
, block
);
21 * extents_bwrite: This function is a wrapper of CcPreparePinWrite routine.
23 * @sb: the device we need to undergo buffered IO on.
24 * @block: the block we want to write to.
27 extents_bwrite(struct super_block
*sb
, sector_t block
)
29 return sb_getblk_zero(sb
, block
);
34 * extents_mark_buffer_dirty: Mark the buffer dirtied and so
35 * that changes will be written back.
37 * @bh: The corresponding buffer header that is modified.
39 void extents_mark_buffer_dirty(struct buffer_head
*bh
)
45 * extents_brelse: Release the corresponding buffer header.
47 * @bh: The corresponding buffer header that is going to be freed.
49 * The pages underlying the buffer header will be unlocked.
51 void extents_brelse(struct buffer_head
*bh
)