]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: introduce the delayed inode ref deletion for the single link inode
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 26 Dec 2013 05:07:06 +0000 (13:07 +0800)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:20:09 +0000 (13:20 -0800)
commit42c3a488fe7f1ddb29b666cc1a7f2ef85cf80344
tree5939ead04cfd0ca9a3e99d2fa0b2cfa9ac99ba1b
parent922d23179bb5f68e6a92284c089d88243cbbb1be
Btrfs: introduce the delayed inode ref deletion for the single link inode

The inode reference item is close to inode item, so we insert it simultaneously
with the inode item insertion when we create a file/directory.. In fact, we also
can handle the inode reference deletion by the same way. So we made this patch to
introduce the delayed inode reference deletion for the single link inode(At most
case, the file doesn't has hard link, so we don't take the hard link into account).

This function is based on the delayed inode mechanism. After applying this patch,
we can reduce the time of the file/directory deletion by ~10%.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/delayed-inode.c
fs/btrfs/delayed-inode.h
fs/btrfs/inode.c