Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mark_buffer_dirty_inode

Proto:void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct buffer_head *bh
struct inode *inode
587  mapping = i_mapping
588  buffer_mapping = See page-flags.h for PAGE_MAPPING_FLAGS
590  mark_buffer_dirty - mark a buffer_head as needing writeout*@bh: the buffer_head to mark dirty* mark_buffer_dirty() will set the dirty bit against the buffer, then set* its backing page dirty, then tag the page as dirty in the page cache* and then attach
591  If Not private_data Then
592  private_data = buffer_mapping
593  Else
594  BUG_ON(private_data != buffer_mapping)
596  If Not mapping this buffer is associated with Then
597  spin_lock( & private_lock)
598  list_move_tail - delete from one list and add as another's tail*@list: the entry to move*@head: the head that will follow our entry
600  mapping this buffer is associated with = mapping
601  spin_unlock( & private_lock)