]> git.baikalelectronics.ru Git - kernel.git/commit
Clean up and export cancel_dirty_page() to modules
authorLinus Torvalds <torvalds@woody.osdl.org>
Sat, 23 Dec 2006 17:25:04 +0000 (09:25 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 23 Dec 2006 17:25:04 +0000 (09:25 -0800)
commit63068a2fea322090087c999b83a5170ed339f8b8
treeeaf180335e684a62c44e9aad42cbe2d07de045f3
parent06a79d3e994d251f80741dcdea6c6b52474a026f
Clean up and export cancel_dirty_page() to modules

Make cancel_dirty_page() act more like all the other dirty and writeback
accounting functions: test for "mapping" being NULL, and do the
NR_FILE_DIRY accounting purely based on mapping_cap_account_dirty()).

Also, add it to the exports, so that modular filesystems can use it.

Acked-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/truncate.c