Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\buffer.c Create Date:2022-07-28 20:14:08
Last Modify:2020-03-18 10:38:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int remove_inode_buffers(struct inode *inode)

Type:int

Parameter:

TypeParameterName
struct inode *inode
824  ret = 1
826  If inode_has_buffers(inode) Then
827  mapping = i_data
828  list = private_list
829  buffer_mapping = private_data
831  spin_lock( & private_lock)
833  bh = BH_ENTRY(next)
834  If buffer_dirty(bh) Then
835  ret = 0
836  Break
840  spin_unlock( & private_lock)
842  Return ret