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 211ca32..192fdda 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;