aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/ordered-data.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h
index 36e63f1f79b3..199cb0b4f1d9 100644
--- a/fs/btrfs/ordered-data.h
+++ b/fs/btrfs/ordered-data.h
@@ -95,7 +95,8 @@ struct btrfs_ordered_extent {
95 * calculates the total size you need to allocate for an ordered sum 95 * calculates the total size you need to allocate for an ordered sum
96 * structure spanning 'bytes' in the file 96 * structure spanning 'bytes' in the file
97 */ 97 */
98static inline int btrfs_ordered_sum_size(struct btrfs_root *root, u64 bytes) 98static inline int btrfs_ordered_sum_size(struct btrfs_root *root,
99 unsigned long bytes)
99{ 100{
100 unsigned long num_sectors = (bytes + root->sectorsize - 1) / 101 unsigned long num_sectors = (bytes + root->sectorsize - 1) /
101 root->sectorsize; 102 root->sectorsize;