diff options
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 5dbf92e68fbd..b5e0ade90e88 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -120,7 +120,7 @@ struct extent_state { | |||
120 | }; | 120 | }; |
121 | 121 | ||
122 | #define INLINE_EXTENT_BUFFER_PAGES 16 | 122 | #define INLINE_EXTENT_BUFFER_PAGES 16 |
123 | #define MAX_INLINE_EXTENT_BUFFER_SIZE (INLINE_EXTENT_BUFFER_PAGES * PAGE_CACHE_SIZE) | 123 | #define MAX_INLINE_EXTENT_BUFFER_SIZE (INLINE_EXTENT_BUFFER_PAGES * PAGE_SIZE) |
124 | struct extent_buffer { | 124 | struct extent_buffer { |
125 | u64 start; | 125 | u64 start; |
126 | unsigned long len; | 126 | unsigned long len; |
@@ -365,8 +365,8 @@ void wait_on_extent_buffer_writeback(struct extent_buffer *eb); | |||
365 | 365 | ||
366 | static inline unsigned long num_extent_pages(u64 start, u64 len) | 366 | static inline unsigned long num_extent_pages(u64 start, u64 len) |
367 | { | 367 | { |
368 | return ((start + len + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT) - | 368 | return ((start + len + PAGE_SIZE - 1) >> PAGE_SHIFT) - |
369 | (start >> PAGE_CACHE_SHIFT); | 369 | (start >> PAGE_SHIFT); |
370 | } | 370 | } |
371 | 371 | ||
372 | static inline void extent_buffer_get(struct extent_buffer *eb) | 372 | static inline void extent_buffer_get(struct extent_buffer *eb) |