Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297909
b: refs/heads/master
c: 7ca4be4
h: refs/heads/master
i:
  297907: 0b0f58c
v: v3
  • Loading branch information
Chris Mason committed Mar 29, 2012
1 parent 5d07da1 commit 68954f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c4bb26b213e618473e486776483a5bad15ba6da
refs/heads/master: 7ca4be45a0255ac8f08c05491c6add2dd87dd4f8
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/file-item.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
#include "transaction.h"
#include "print-tree.h"

#define MAX_CSUM_ITEMS(r, size) ((((BTRFS_LEAF_DATA_SIZE(r) - \
#define __MAX_CSUM_ITEMS(r, size) ((((BTRFS_LEAF_DATA_SIZE(r) - \
sizeof(struct btrfs_item) * 2) / \
size) - 1))

#define MAX_CSUM_ITEMS(r, size) (min(__MAX_CSUM_ITEMS(r, size), PAGE_CACHE_SIZE))

#define MAX_ORDERED_SUM_BYTES(r) ((PAGE_SIZE - \
sizeof(struct btrfs_ordered_sum)) / \
sizeof(struct btrfs_sector_sum) * \
Expand Down

0 comments on commit 68954f0

Please sign in to comment.