From: Yan <yanzheng@21cn.com>
Date: Mon, 17 Sep 2007 15:08:52 +0000 (-0400)
Subject: create btrfs_path slab with the correct size
X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~478
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=23223584e44cb1b0b69ba3a9ad74956f292a416b;p=users%2Fdwmw2%2Flinux.git

create btrfs_path slab with the correct size

Signed-off-by: Chris Mason <chris.mason@oracle.com>
---

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 211ca32c65c59..192fdda0d56ed 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2127,7 +2127,7 @@ int btrfs_init_cachep(void)
 	if (!btrfs_transaction_cachep)
 		goto fail;
 	btrfs_path_cachep = btrfs_cache_create("btrfs_path_cache",
-					 sizeof(struct btrfs_transaction),
+					 sizeof(struct btrfs_path),
 					 0, NULL);
 	if (!btrfs_path_cachep)
 		goto fail;