]> git.neil.brown.name Git - history.git/commit
[PATCH] rename flushpage to invalidatepage
authorAndrew Morton <akpm@zip.com.au>
Sun, 2 Jun 2002 10:24:28 +0000 (03:24 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 2 Jun 2002 10:24:28 +0000 (03:24 -0700)
commit53b478c60dd9914ce1668128ba466188ef42c918
treed6a56d2a8f119732599fb0ebafe6b4d1cc440d50
parent6979fbf7a1ec35046cfe9ef4d11fd09f02de31cd
[PATCH] rename flushpage to invalidatepage

Fixes a pet peeve: the identifier "flushpage" implies "flush the page
to disk".  Which is very much not what the flushpage functions actually
do.

The patch renames block_flushpage and the flushpage
address_space_operation to "invalidatepage".

It also fixes a buglet in invalidate_this_page2(), which was calling
block_flushpage() directly - it needs to call do_flushpage() (now
do_invalidatepage()) so that the filesystem's ->flushpage (now
->invalidatepage) a_op gets a chance to relinquish any interest which
it has in the page's buffers.
Documentation/filesystems/Locking
fs/buffer.c
fs/ext3/inode.c
fs/jbd/journal.c
fs/jbd/transaction.c
fs/jfs/jfs_metapage.c
include/linux/buffer_head.h
include/linux/fs.h
include/linux/jbd.h
mm/filemap.c