浏览代码

create btrfs_path slab with the correct size

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Yan 17 年之前
父节点
当前提交
23223584e4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/btrfs/inode.c

+ 1 - 1
fs/btrfs/inode.c

@@ -2127,7 +2127,7 @@ int btrfs_init_cachep(void)
 	if (!btrfs_transaction_cachep)
 	if (!btrfs_transaction_cachep)
 		goto fail;
 		goto fail;
 	btrfs_path_cachep = btrfs_cache_create("btrfs_path_cache",
 	btrfs_path_cachep = btrfs_cache_create("btrfs_path_cache",
-					 sizeof(struct btrfs_transaction),
+					 sizeof(struct btrfs_path),
 					 0, NULL);
 					 0, NULL);
 	if (!btrfs_path_cachep)
 	if (!btrfs_path_cachep)
 		goto fail;
 		goto fail;