page-writeback.c (ea88023b3491a384575ebcd5e8a449e841a28a24) page-writeback.c (6746aff74da293b5fd24e5c68b870b721e86cd5f)
1/*
2 * mm/page-writeback.c
3 *
4 * Copyright (C) 2002, Linus Torvalds.
5 * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com>
6 *
7 * Contains functions related to writing back dirty pages at the
8 * address_space level.

--- 1135 unchanged lines hidden (view full) ---

1144int redirty_page_for_writepage(struct writeback_control *wbc, struct page *page)
1145{
1146 wbc->pages_skipped++;
1147 return __set_page_dirty_nobuffers(page);
1148}
1149EXPORT_SYMBOL(redirty_page_for_writepage);
1150
1151/*
1/*
2 * mm/page-writeback.c
3 *
4 * Copyright (C) 2002, Linus Torvalds.
5 * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com>
6 *
7 * Contains functions related to writing back dirty pages at the
8 * address_space level.

--- 1135 unchanged lines hidden (view full) ---

1144int redirty_page_for_writepage(struct writeback_control *wbc, struct page *page)
1145{
1146 wbc->pages_skipped++;
1147 return __set_page_dirty_nobuffers(page);
1148}
1149EXPORT_SYMBOL(redirty_page_for_writepage);
1150
1151/*
1152 * Dirty a page.
1153 *
1154 * For pages with a mapping this should be done under the page lock
1155 * for the benefit of asynchronous memory errors who prefer a consistent
1156 * dirty state. This rule can be broken in some special cases,
1157 * but should be better not to.
1158 *
1152 * If the mapping doesn't provide a set_page_dirty a_op, then
1153 * just fall through and assume that it wants buffer_heads.
1154 */
1155int set_page_dirty(struct page *page)
1156{
1157 struct address_space *mapping = page_mapping(page);
1158
1159 if (likely(mapping)) {

--- 182 unchanged lines hidden ---
1159 * If the mapping doesn't provide a set_page_dirty a_op, then
1160 * just fall through and assume that it wants buffer_heads.
1161 */
1162int set_page_dirty(struct page *page)
1163{
1164 struct address_space *mapping = page_mapping(page);
1165
1166 if (likely(mapping)) {

--- 182 unchanged lines hidden ---