函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Attach the singly-linked list of buffers created by nobh_write_begin, to* the page (converting it to circular linked list and taking care of page* dirty races).

函数原型:static void attach_nobh_buffers(struct page *page, struct buffer_head *head)

返回类型:void

参数:

类型参数名称
struct page *page
struct buffer_head *head
2554  BUG_ON(!PageLocked(page))
2556  加自旋锁
2557  bh等于head
2558  循环
2559  如果PageDirty(page)则set_buffer_dirty(bh)
2561  如果非 circular list of page's buffers circular list of page's buffers 等于head
2563  bh等于 circular list of page's buffers
2564 bh不等于head循环
2565  line definitions
2566  自旋锁解锁
调用者
名称描述
nobh_write_beginOn entry, the page is fully not uptodate.* On exit the page is fully uptodate in the areas outside (from,to)* The filesystem needs to handle block truncation upon failure.
nobh_write_end