btrfs-progs: image: Use SZ_* to replace intermediate size

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Qu Wenruo 2019-06-06 19:06:03 +08:00 committed by David Sterba
parent 9a1d86a9ac
commit 0520abec4f

View File

@ -23,8 +23,8 @@
#include "ctree.h"
#define HEADER_MAGIC 0xbd5c25e27295668bULL
#define MAX_PENDING_SIZE (256 * 1024)
#define BLOCK_SIZE 1024
#define MAX_PENDING_SIZE SZ_256K
#define BLOCK_SIZE SZ_1K
#define BLOCK_MASK (BLOCK_SIZE - 1)
#define ITEMS_PER_CLUSTER ((BLOCK_SIZE - sizeof(struct meta_cluster)) / \