Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8791d432 authored by David Sterba's avatar David Sterba
Browse files

btrfs: use round_up wrapper in num_extent_pages

parent 65ad0104
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -442,7 +442,7 @@ void wait_on_extent_buffer_writeback(struct extent_buffer *eb);

static inline unsigned long num_extent_pages(const struct extent_buffer *eb)
{
	return ((eb->start + eb->len + PAGE_SIZE - 1) >> PAGE_SHIFT) -
	return (round_up(eb->start + eb->len, PAGE_SIZE) >> PAGE_SHIFT) -
	       (eb->start >> PAGE_SHIFT);
}