]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Fix leaf reference cache miss
authorYan Zheng <zheng.yan@oracle.com>
Thu, 9 Oct 2008 15:46:19 +0000 (11:46 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 9 Oct 2008 15:46:19 +0000 (11:46 -0400)
commit0818663a1433177938dac877e7bcdb8b76e9c35c
treed9ab309bc09f8a615aab2c0728272fa773beacf7
parent96bde3e58c2a7a47928b76974342bfd815092705
Btrfs: Fix leaf reference cache miss

Due to the optimization for truncate, tree leaves only containing
checksum items can be deleted without being COW'ed first. This causes
reference cache misses. The way to fix the miss is create cache
entries for tree leaves only contain checksum.

This patch also fixes a -EEXIST issue in shared reference cache.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
fs/btrfs/extent-tree.c
fs/btrfs/inode.c