btrfs: switch types to int when counting eb pages
authorDavid Sterba <dsterba@suse.com>
Thu, 1 Mar 2018 17:20:27 +0000 (18:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:44 +0000 (13:12 +0200)
commitcc5e31a4775d0d6b98139fdee51868a270bda42f
tree3ac26d8b0b1a020ca417c61c37b910cd7ca39e09
parent8791d43207966f40d8ffba18c663514aca5a6f3e
btrfs: switch types to int when counting eb pages

The loops iterating eb pages use unsigned long, that's an overkill as
we know that there are at most 16 pages (64k / 4k), and 4 by default
(with nodesize 16k).

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h