Function report |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-28 20:31:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iomap_write_begin
Proto:static int iomap_write_begin(struct inode *inode, loff_t pos, unsigned len, unsigned flags, struct page **pagep, struct iomap *iomap, struct iomap *srcmap)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| loff_t | pos | |
| unsigned | len | |
| unsigned | flags | |
| struct page ** | pagep | |
| struct iomap * | iomap | |
| struct iomap * | srcmap |
| 646 | status = 0 |
| 649 | If srcmap != iomap Then BUG_ON(pos + len > file offset of mapping, bytes + length of mapping, bytes ) |
| 652 | If fatal_signal_pending(current process) Then Return -EINTR |
| 655 | If page_ops && page_prepare Then |
| 661 | page = Find or create a page at the given pagecache position. Return the locked* page. This function is specifically for buffered writes. |
| 663 | If Not page Then |
| 665 | Go to out_no_page |
| 668 | If type of mapping == data inline in the inode Then iomap_read_inline_data(inode, page, srcmap) |
| 670 | Else if flags for mapping & IOMAP_F_BUFFER_HEAD Then status = __block_write_begin_int(page, pos, len, NULL, srcmap) |
| 676 | If Value for the false possibility is greater at compile time(status) Then Go to out_unlock |
| 680 | Return 0 |
| 682 | out_unlock : |
| 685 | iomap_write_failed(inode, pos, len) |
| 687 | out_no_page : |
| 690 | Return status |
| Name | Describe |
|---|---|
| iomap_write_actor | |
| iomap_unshare_actor | |
| iomap_zero |
| 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 |