函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mark_buffer_dirty_inode

函数原型:void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode)

返回类型:void

参数:

类型参数名称
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  如果非private_data
592  private_data等于buffer_mapping
593  否则
594  BUG_ON(private_data != buffer_mapping)
596  如果非 mapping this buffer is associated with
597  加自旋锁
598  链表项移动到尾部
600  mapping this buffer is associated with 等于mapping
601  自旋锁解锁