inode节点clear操作
2017-03-15 08:18
106 查看
inode 节点clear是把节点设置处于一种状态,即
I_FREEING | I_CLEAR
* I_FREEING Set when inode is about to be freed but still has dirty * pages or buffers attached or the inode itself is still * dirty. * I_CLEAR Added by clear_inode(). In this state the inode is * clean and can be destroyed. Inode keeps I_FREEING.
void clear_inode(struct inode *inode) { might_sleep(); /* * We have to cycle tree_lock here because reclaim can be still in the * process of removing the last page (in __delete_from_page_cache()) * and we must not free mapping under it. */ spin_lock_irq(&inode->i_data.tree_lock); BUG_ON(inode->i_data.nrpages); BUG_ON(inode->i_data.nrexceptional); spin_unlock_irq(&inode->i_data.tree_lock); BUG_ON(!list_empty(&inode->i_data.private_list)); BUG_ON(!(inode->i_state & I_FREEING)); BUG_ON(inode->i_state & I_CLEAR); BUG_ON(!list_empty(&inode->i_wb_list)); /* don't need i_lock here, no concurrent mods to i_state */ inode->i_state = I_FREEING | I_CLEAR; } EXPORT_SYMBOL(clear_inode);
相关文章推荐
- file_operation(文件操作) file(文件) inode(节点)区别
- file_operation(文件操作)file(文件)inode(节点)三者比较
- file_operation(文件操作)file(文件)inode(节点)
- file_operation(文件操作) file(文件) inode(节点)
- file_operation(文件操作)file(文件)inode(节点)
- file_operation(文件操作) file(文件) inode(节点) http://blog.itpub.net/14805538/viewspace-445624/
- file_operation(文件操作)file(文件)inode(节点)
- file_operation(文件操作)file(文件)inode(节点)
- c#操作XML(读XML,写XML,更新,删除节点,与dataset结合等)
- 二叉树操作—查找、获得父节点集合
- app.config的节点AppSetting新增或修改操作
- .NET操作XML文件:XML文件节点的增删改
- 树节点相互移动操作----使用微软treeview控件
- 有关xml操作的心得(1)--节点添加
- 带CheckBox选择框的TreeView的初始化,TreeView客户端操作:选择父节点后自动选择所有子节点,子节点选择后自动选择父节点
- c#操作XML(读XML,写XML,更新,删除节点,与dataset结合等)
- 用jQuery实现asp.net 2.0 treeview控件完全无刷新操作实例(AJAX的增、删、改、选择以及展开收缩节点)
- Ajax操作Dom的基础--节点的添加(二)
- 两个客户端操作TreeView节点CheckBox的小例子
- 实现封装树节点拖拽操作的组件[原]