summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delayed-inode.h
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2012-06-14 10:23:22 +0200
committerChris Mason <chris.mason@fusionio.com>2012-06-15 17:42:28 +0200
commit67cde3448d951b55088a6ea3bb1aee0160068fb9 (patch)
tree762aa0d1a09f8ea58f7a861b32b67c71ae5a8df1 /fs/btrfs/delayed-inode.h
parentBtrfs: make sure that we've made everything in pinned tree clean (diff)
downloadlinux-67cde3448d951b55088a6ea3bb1aee0160068fb9.tar.xz
linux-67cde3448d951b55088a6ea3bb1aee0160068fb9.zip
Btrfs: destroy the items of the delayed inodes in error handling routine
the items of the delayed inodes were forgotten to be freed, this patch fixes it. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/delayed-inode.h')
-rw-r--r--fs/btrfs/delayed-inode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/delayed-inode.h b/fs/btrfs/delayed-inode.h
index 7083d08b2a21..f5aa4023d3e1 100644
--- a/fs/btrfs/delayed-inode.h
+++ b/fs/btrfs/delayed-inode.h
@@ -124,6 +124,9 @@ int btrfs_fill_inode(struct inode *inode, u32 *rdev);
/* Used for drop dead root */
void btrfs_kill_all_delayed_nodes(struct btrfs_root *root);
+/* Used for clean the transaction */
+void btrfs_destroy_delayed_inodes(struct btrfs_root *root);
+
/* Used for readdir() */
void btrfs_get_delayed_items(struct inode *inode, struct list_head *ins_list,
struct list_head *del_list);