Function report |
Source Code:fs\buffer.c |
Create Date:2022-07-28 20:14:10 |
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iomap_to_bh
Proto:static void iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh, struct iomap *iomap)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| sector_t | block | |
| struct buffer_head * | bh | |
| struct iomap * | iomap |
| 1921 | b_bdev = block device for I/O |
| 1932 | Case type of mapping == blocks allocated, need allocation |
| 1941 | Break |
| 1942 | Case type of mapping == delayed allocation blocks |
| 1947 | set_buffer_mapped(bh) |
| 1948 | set_buffer_delay(bh) |
| 1949 | Break |
| 1956 | set_buffer_new(bh) |
| 1957 | set_buffer_unwritten(bh) |
| 1959 | Case type of mapping == locks allocated at @addr |
| 1963 | start block number = disk offset of mapping, bytes + offset - file offset of mapping, bytes >> i_blkbits |
| 1965 | set_buffer_mapped(bh) |
| 1966 | Break |
| Name | Describe |
|---|---|
| __block_write_begin_int |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |