create btrfs_path slab with the correct size
authorYan <yanzheng@21cn.com>
Mon, 17 Sep 2007 15:08:52 +0000 (11:08 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:56 +0000 (11:03 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c

index 211ca32c65c59166fa952fee1b0df27ffa0045aa..192fdda0d56eddc2aa2668aba7c67cd414a7b418 100644 (file)
@@ -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;