| Function report | 
| Source Code: fs\fs-writeback.c | Create Date:2022-07-28 20:10:50 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Write out an inode's dirty pages. Either the caller has an active reference* on the inode or the inode has I_WILL_FREE set.* This function is designed to be called for writing back one inode which* we go e
Proto:static int writeback_single_inode(struct inode *inode, struct writeback_control *wbc)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| struct writeback_control * | wbc | 
| 1531 | ret = 0 | 
| 1533 | spin_lock( & _blocks, i_bytes, maybe i_size ) | 
| 1539 | If Misc & Writeback of inode is running Then | 
| 1540 | If sync_mode != Wait on every mapping Then Go to out | 
| 1549 | WARN_ON(Misc & Writeback of inode is running) | 
| 1558 | If Not (Misc & I_DIRTY_ALL) && ( sync_mode != Wait on every mapping || Not Returns true if any of the pages in the mapping are marked with the tag. ) Then Go to out | 
| 1562 | Misc |= Writeback of inode is running | 
| 1563 | wbc_attach_and_unlock_inode(wbc, inode) | 
| 1567 | wbc_detach_inode(wbc) | 
| 1569 | wb = inode_to_wb_and_lock_list(inode) | 
| 1570 | spin_lock( & _blocks, i_bytes, maybe i_size ) | 
| 1577 | spin_unlock( & protects the b_* lists ) | 
| 1578 | inode_sync_complete(inode) | 
| 1579 | out : | 
| 1580 | spin_unlock( & _blocks, i_bytes, maybe i_size ) | 
| 1581 | Return ret | 
| Name | Describe | 
|---|---|
| write_inode_now | write_inode_now - write an inode to disk*@inode: inode to write to disk*@sync: whether the write should be synchronous or not* This function commits an inode to disk immediately if it is dirty. This is* primarily needed by knfsd. | 
| sync_inode | sync_inode - write an inode and its pages to disk.*@inode: the inode to sync*@wbc: controls the writeback mode* sync_inode() will write an inode and its pages to disk. It will also* correctly update the inode on its superblock's dirty inode lists and will | 
| 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 |