Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void attach_nobh_buffers(struct page *page, struct buffer_head *head)

Type:void

Parameter:

TypeParameterName
struct page *page
struct buffer_head *head
2554  BUG_ON(!PageLocked(page))
2556  spin_lock( & private_lock)
2557  bh = head
2558  Do
2559  If PageDirty(page) Then set_buffer_dirty(bh)
2561  If Not circular list of page's buffers Then circular list of page's buffers = head
2563  bh = circular list of page's buffers
2564  When bh != head cycle
2565  line definitions
2566  spin_unlock( & private_lock)
Caller
NameDescribe
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