Function report |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-28 20:31:54 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:iomap_unshare_actor
Proto:static loff_t iomap_unshare_actor(struct inode *inode, loff_t pos, loff_t length, void *data, struct iomap *iomap, struct iomap *srcmap)
Type:loff_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| loff_t | pos | |
| loff_t | length | |
| void * | data | |
| struct iomap * | iomap | |
| struct iomap * | srcmap |
| 902 | status = 0 |
| 903 | written = 0 |
| 906 | If Not ( flags for mapping & IOMAP_F_SHARED) Then Return length |
| 909 | If type of mapping == blocks allocated, need allocation || type of mapping == locks allocated at @addr in unwritten state Then Return length |
| 912 | Do |
| 913 | offset = offset_in_page(pos) |
| 914 | bytes = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(loff_t, PAGE_SIZE - offset, length) |
| 917 | status = iomap_write_begin(inode, pos, bytes, IOMAP_WRITE_F_UNSHARE, & page, iomap, srcmap) |
| 919 | If Value for the false possibility is greater at compile time(status) Then Return status |
| 924 | If Value for the false possibility is greater at compile time(status <= 0) Then |
| 925 | If WARN_ON_ONCE(status == 0) Then Return -EIO |
| 927 | Return status |
| 930 | cond_resched() |
| 939 | Return written |
| 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 |