From: Yan Zheng Date: Mon, 5 Jan 2009 20:43:42 +0000 (-0500) Subject: Btrfs: avoid orphan inode caused by log replay X-Git-Tag: v2.6.29-rc1~27^2~9^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec051c0f929afe5c42c24bb07abf577c616c208c;p=pandora-kernel.git Btrfs: avoid orphan inode caused by log replay drop_one_dir_item does not properly update inode's link count. It can be reproduced by executing following commands: #touch test #sync #rm -f test #dd if=/dev/zero bs=4k count=1 of=test conv=fsync #echo b > /proc/sysrq-trigger This fixes it by adding an BTRFS_ORPHAN_ITEM_KEY for the inode Signed-off-by: Yan Zheng --- Reading git-diff-tree failed