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:
parent
9a1d86a9ac
commit
0520abec4f
|
@ -23,8 +23,8 @@
|
||||||
#include "ctree.h"
|
#include "ctree.h"
|
||||||
|
|
||||||
#define HEADER_MAGIC 0xbd5c25e27295668bULL
|
#define HEADER_MAGIC 0xbd5c25e27295668bULL
|
||||||
#define MAX_PENDING_SIZE (256 * 1024)
|
#define MAX_PENDING_SIZE SZ_256K
|
||||||
#define BLOCK_SIZE 1024
|
#define BLOCK_SIZE SZ_1K
|
||||||
#define BLOCK_MASK (BLOCK_SIZE - 1)
|
#define BLOCK_MASK (BLOCK_SIZE - 1)
|
||||||
|
|
||||||
#define ITEMS_PER_CLUSTER ((BLOCK_SIZE - sizeof(struct meta_cluster)) / \
|
#define ITEMS_PER_CLUSTER ((BLOCK_SIZE - sizeof(struct meta_cluster)) / \
|
||||||
|
|
Loading…
Reference in New Issue