mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
mm/writeback: Improve __folio_mark_dirty() comment
Add some notes about how this function needs to be called. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: William Kucharski <william.kucharski@oracle.com>
This commit is contained in:
parent
ece014141c
commit
a229a4f00d
1 changed files with 5 additions and 1 deletions
|
@ -2496,7 +2496,11 @@ void folio_account_cleaned(struct folio *folio, struct address_space *mapping,
|
|||
* If warn is true, then emit a warning if the folio is not uptodate and has
|
||||
* not been truncated.
|
||||
*
|
||||
* The caller must hold lock_page_memcg().
|
||||
* The caller must hold lock_page_memcg(). Most callers have the folio
|
||||
* locked. A few have the folio blocked from truncation through other
|
||||
* means (eg zap_page_range() has it mapped and is holding the page table
|
||||
* lock). This can also be called from mark_buffer_dirty(), which I
|
||||
* cannot prove is always protected against truncate.
|
||||
*/
|
||||
void __folio_mark_dirty(struct folio *folio, struct address_space *mapping,
|
||||
int warn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue