函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-29 10:45:10
Last Modify:2020-03-18 10:38:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Remove any clean buffers from the inode's buffer list. This is called* when we're trying to free the inode itself. Those buffers can pin it.* Returns true if all buffers were removed.

函数原型:int remove_inode_buffers(struct inode *inode)

返回类型:int

参数:

类型参数名称
struct inode *inode
824  ret等于1
826  如果inode_has_buffers(inode)则
827  mapping等于i_data
828  list等于private_list
829  buffer_mapping等于private_data
831  加自旋锁
832  当非链表为空循环
833  bh等于BH_ENTRY(链表后项)
834  如果buffer_dirty(bh)则
835  ret等于0
836  退出
840  自旋锁解锁
842  返回:ret