1MARK_BUFFER_DIRTY(9) The Linux VFS MARK_BUFFER_DIRTY(9)
2
3
4
6 mark_buffer_dirty - mark a buffer_head as needing writeout
7
9 void mark_buffer_dirty(struct buffer_head * bh);
10
12 bh
13 the buffer_head to mark dirty
14
16 mark_buffer_dirty will set the dirty bit against the buffer, then set
17 its backing page dirty, then tag the page as dirty in its
18 address_space's radix tree and then attach the address_space's inode to
19 its superblock's dirty inode list.
20
21 mark_buffer_dirty is atomic. It takes
22 bh->b_page->mapping->private_lock, mapping->tree_lock and
23 mapping->host->i_lock.
24
26Kernel Hackers Manual 3.10 June 2019 MARK_BUFFER_DIRTY(9)