linux/drivers/staging
Tejun Heo 11f81becca page_writeback: revive cancel_dirty_page() in a restricted form
cancel_dirty_page() had some issues and b9ea25152e ("page_writeback:
clean up mess around cancel_dirty_page()") replaced it with
account_page_cleaned() which makes the caller responsible for clearing
the dirty bit; unfortunately, the planned changes for cgroup writeback
support requires synchronization between dirty bit manipulation and
stat updates.  While we can open-code such synchronization in each
account_page_cleaned() callsite, that's gonna be unnecessarily awkward
and verbose.

This patch revives cancel_dirty_page() but in a more restricted form.
All it does is TestClearPageDirty() followed by account_page_cleaned()
invocation if the page was dirty.  This helper covers all
account_page_cleaned() usages except for __delete_from_page_cache()
which is a special case anyway and left alone.  As this leaves no
module user for account_page_cleaned(), EXPORT_SYMBOL() is dropped
from it.

This patch just revives cancel_dirty_page() as a trivial wrapper to
replace equivalent usages and doesn't introduce any functional
changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-06-02 08:33:33 -06:00
..
android staging: android: ion: fix wrong init of dma_buf_export_info 2015-04-21 14:47:16 +05:30
board
clocking-wizard
comedi Merge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2015-04-15 13:22:56 -07:00
dgap
dgnc
emxx_udc
fbtft
fsl-mc
ft1000
fwserial
gdm72xx
gdm724x
goldfish
gs_fpgaboot
i2o
iio
lustre page_writeback: revive cancel_dirty_page() in a restricted form 2015-06-02 08:33:33 -06:00
media [media] v4l: omap4iss: Replace outdated OMAP4 control pad API with syscon 2015-04-28 08:38:23 -03:00
mt29f_spinand
netlogic
nvec Staging driver patches for 4.1-rc1 2015-04-13 17:37:33 -07:00
octeon Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2015-04-17 15:50:54 -04:00
octeon-usb
olpc_dcon
ozwpan
panel
rtl8188eu
rtl8192e
rtl8192u
rtl8712
rtl8723au Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2015-04-15 09:00:47 -07:00
rts5208
skein
slicoss
sm7xxfb
sm750fb
speakup
ste_rmi4
unisys Merge branch 'for-linus-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2015-04-14 15:31:03 -07:00
vme
vt6655
vt6656
wlan-ng
xgifb
Kconfig
Makefile
staging.c