commit | 823bb20ab47071dc8a98acf272a470ccdcfcf6d1 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.com> | Wed Jan 04 11:09:51 2017 +0100 |
committer | David Sterba <dsterba@suse.com> | Tue Feb 14 15:50:51 2017 +0100 |
tree | ba1864d6c1472b33acbe0d6d991cb91cf4d69f74 | |
parent | 95995dbbe691c78cf78948e48b9778531bf1fb3c [diff] |
btrfs: add wrapper for counting BTRFS_MAX_EXTENT_SIZE The expression is open-coded in several places, this asks for a wrapper. As we know the MAX_EXTENT fits to u32, we can use the appropirate division helper. This cascades to the result type updates. Compiler is clever enough to use shift instead of integer division, so there's no change in the generated assembly. Signed-off-by: David Sterba <dsterba@suse.com>