diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2009-01-05 15:43:42 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-01-05 15:43:42 -0500 |
commit | ec051c0f929afe5c42c24bb07abf577c616c208c (patch) | |
tree | a9b75cd422cf7dde92c9dbb8828feb062e2c35ec /Documentation/memory-barriers.txt | |
parent | 2d69a0f88459fae35df3ddef4934a2dad67e2765 (diff) | |
download | op-kernel-dev-ec051c0f929afe5c42c24bb07abf577c616c208c.zip op-kernel-dev-ec051c0f929afe5c42c24bb07abf577c616c208c.tar.gz |
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 <zheng.yan@oracle.com>
Diffstat (limited to 'Documentation/memory-barriers.txt')
0 files changed, 0 insertions, 0 deletions