linux/fs/nilfs2
Ryusuke Konishi 947b10ae0a nilfs2: fix regression of garbage collection ioctl
On 2.6.37-rc1, garbage collection ioctl of nilfs was broken due to the
commit 263d90cefc ("nilfs2: remove own inode hash used for GC"),
and leading to filesystem corruption.

The patch doesn't queue gc-inodes for log writer if they are reused
through the vfs inode cache.  Here, gc-inode is the inode which
buffers blocks to be relocated on GC.  That patch queues gc-inodes in
nilfs_init_gcinode() function, but this function is not called when
they don't have I_NEW flag.  Thus, some of live blocks are wrongly
overrode without being moved to new logs.

This resolves the problem by moving the gc-inode queueing to an outer
function to ensure it's done right.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
2010-12-16 14:35:18 +09:00
..
alloc.c
alloc.h
bmap.c nilfs2: get rid of GCDAT inode 2010-10-23 09:24:38 +09:00
bmap.h nilfs2: get rid of GCDAT inode 2010-10-23 09:24:38 +09:00
btnode.c nilfs2: add routines to roll back state of DAT file 2010-10-23 09:24:37 +09:00
btnode.h
btree.c
btree.h
cpfile.c nilfs2: see state of root dentry for mount check of snapshots 2010-10-23 09:24:38 +09:00
cpfile.h nilfs2: use iget for all metadata files 2010-10-23 09:24:38 +09:00
dat.c nilfs2: fix typo in comment of nilfs_dat_move function 2010-11-24 12:51:48 +09:00
dat.h nilfs2: use iget for all metadata files 2010-10-23 09:24:38 +09:00
dir.c
direct.c
direct.h
export.h nilfs2: make snapshots in checkpoint tree exportable 2010-10-23 09:24:34 +09:00
file.c
gcinode.c nilfs2: fix regression of garbage collection ioctl 2010-12-16 14:35:18 +09:00
ifile.c nilfs2: use iget for all metadata files 2010-10-23 09:24:38 +09:00
ifile.h nilfs2: use iget for all metadata files 2010-10-23 09:24:38 +09:00
inode.c nilfs2: see state of root dentry for mount check of snapshots 2010-10-23 09:24:38 +09:00
ioctl.c nilfs2: fix regression of garbage collection ioctl 2010-12-16 14:35:18 +09:00
Kconfig
Makefile nilfs2: get rid of GCDAT inode 2010-10-23 09:24:38 +09:00
mdt.c nilfs2: get rid of bdi from nilfs object 2010-10-23 09:24:39 +09:00
mdt.h nilfs2: remove own inode allocator and destructor for metadata files 2010-10-23 09:24:39 +09:00
namei.c new helper: ihold() 2010-10-25 21:26:11 -04:00
nilfs.h nilfs2: remove own inode allocator and destructor for metadata files 2010-10-23 09:24:39 +09:00
page.c nilfs2: get rid of GCDAT inode 2010-10-23 09:24:38 +09:00
page.h nilfs2: add routines to redirect access to buffers of DAT file 2010-10-23 09:24:37 +09:00
recovery.c nilfs2: get rid of back pointer to writable sb instance 2010-10-23 09:24:38 +09:00
sb.h nilfs2: do not allocate multiple super block instances for a device 2010-10-23 09:24:36 +09:00
segbuf.c nilfs2: get rid of bdi from nilfs object 2010-10-23 09:24:39 +09:00
segbuf.h
segment.c mm: add account_page_writeback() 2010-10-26 16:52:06 -07:00
segment.h nilfs2: use root object to get ifile 2010-10-23 09:24:35 +09:00
sufile.c nilfs2: get rid of mi_nilfs back pointer to nilfs object 2010-10-23 09:24:38 +09:00
sufile.h nilfs2: get rid of mi_nilfs back pointer to nilfs object 2010-10-23 09:24:38 +09:00
super.c convert nilfs 2010-10-29 04:16:53 -04:00
the_nilfs.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2 2010-10-23 01:26:47 -07:00
the_nilfs.h nilfs2: get rid of bdi from nilfs object 2010-10-23 09:24:39 +09:00