nilfs2: flush palloc cache before manipulating data pages of GC dat
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 15 Nov 2009 11:13:21 +0000 (20:13 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 20 Nov 2009 01:05:50 +0000 (10:05 +0900)
commitc3ea56c80081b826df4a0ac797432179cf5b7cd2
tree49c80180a36bf52fe7ca5bb043412b2271829307
parent8908b2f70b795299d21706b5a97676cfe7f9056a
nilfs2: flush palloc cache before manipulating data pages of GC dat

Data pages in gcdat metadata file (i.e. the secondary DAT for GC), are
cleared or even moved back to the normal DAT when a shot of garbage
collection was done.

Buffer heads held by the palloc cache of gcdat must be cleared before
these page cache manipulation.  This adds nilfs_palloc_clear_cache()
to ensure this.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/gcdat.c