projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libbtrfsutil: add btrfs_util_create_snapshot()
[platform/upstream/btrfs-progs.git]
/
file-item.c
diff --git
a/file-item.c
b/file-item.c
index
8e169e1
..
7b0ff35
100644
(file)
--- a/
file-item.c
+++ b/
file-item.c
@@
-27,7
+27,7
@@
#include "crc32c.h"
#include "internal.h"
#include "crc32c.h"
#include "internal.h"
-#define MAX_CSUM_ITEMS(r,
size) ((((BTRFS_LEAF_DATA_SIZE(r
) - \
+#define MAX_CSUM_ITEMS(r,
size) ((((BTRFS_LEAF_DATA_SIZE(r->fs_info
) - \
sizeof(struct btrfs_item) * 2) / \
size) - 1))
int btrfs_insert_file_extent(struct btrfs_trans_handle *trans,
sizeof(struct btrfs_item) * 2) / \
size) - 1))
int btrfs_insert_file_extent(struct btrfs_trans_handle *trans,