linux/fs/ceph
Sage Weil 83eaea22bd Revert "ceph: don't truncate dirty pages in invalidate work thread"
This reverts commit c9af9fb68e.

We need to block and truncate all pages in order to reliably invalidate
them.  Otherwise, we could:

 - have some uptodate pages in the cache
 - queue an invalidate
 - write(2) locks some pages
 - invalidate_work skips them
 - write(2) only overwrites part of the page
 - page now dirty and uptodate
 -> partial leakage of invalidated data

It's not entirely clear why we started skipping locked pages in the first
place.  I just ran this through fsx and didn't see any problems.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-10-25 16:10:16 -07:00
..
Kconfig ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
Makefile ceph: Makefile: Remove unnessary code 2011-01-12 15:15:13 -08:00
addr.c ceph: implement (optional) max read size 2011-10-25 16:10:15 -07:00
caps.c libceph: don't complain on msgpool alloc failures 2011-10-25 16:10:15 -07:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: explicitly reference rename old_dentry parent dir in request 2011-07-26 11:31:14 -07:00
dir.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2011-07-26 13:38:50 -07:00
export.c ceph: avoid d_parent in ceph_dentry_hash; fix ceph_encode_fh() hashing bug 2011-07-26 11:30:55 -07:00
file.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2011-07-26 13:38:50 -07:00
inode.c Revert "ceph: don't truncate dirty pages in invalidate work thread" 2011-10-25 16:10:16 -07:00
ioctl.c ceph: protect access to d_parent 2011-07-26 11:30:29 -07:00
ioctl.h ceph: document ioctls 2011-10-25 16:10:15 -07:00
locks.c ceph: unwind canceled flock state 2011-06-07 21:36:45 -07:00
mds_client.c libceph: don't complain on msgpool alloc failures 2011-10-25 16:10:15 -07:00
mds_client.h ceph: explicitly reference rename old_dentry parent dir in request 2011-07-26 11:31:14 -07:00
mdsmap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
snap.c ceph: only queue capsnap if caps are dirty 2011-07-26 11:26:41 -07:00
strings.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.c ceph: replace leading spaces with tabs 2011-10-25 16:10:16 -07:00
super.h ceph: rename rsize -> rasize 2011-10-25 16:10:15 -07:00
xattr.c ceph: protect access to d_parent 2011-07-26 11:30:29 -07:00