]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Avoid orphan inodes cleanup while replaying log
authorYan, Zheng <zheng.yan@oracle.com>
Thu, 12 Nov 2009 09:34:40 +0000 (09:34 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 17 Dec 2009 17:33:33 +0000 (12:33 -0500)
commiteaff6bc4e1d0bc39b20e61af867cbf15f9ca4ba8
tree0b682ad2b49aeaf9ac774c40be4b7549c1d079fe
parenta825fb3498ac578a453373185ea2207dd047a9e6
Btrfs: Avoid orphan inodes cleanup while replaying log

We do log replay in a single transaction, so it's not good to do unbound
operations. This patch cleans up orphan inodes cleanup after replaying
the log. It also avoids doing other unbound operations such as truncating
a file during replaying log. These unbound operations are postponed to
the orphan inode cleanup stage.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/inode.c
fs/btrfs/relocation.c
fs/btrfs/tree-log.c