ext4: create EXT4_MAX_BLOCKS() macro
authorFabian Frederick <fabf@skynet.be>
Thu, 15 Sep 2016 15:55:01 +0000 (11:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Sep 2016 15:55:01 +0000 (11:55 -0400)
commit518eaa6387df796d54e065e04502e800cae1df80
tree9b7ce844047f58763185a4a66cb7cd1f80666f51
parentc3fe493ccdb1f443c30155150391835004014c6a
ext4: create EXT4_MAX_BLOCKS() macro

Create a macro to calculate length + offset -> maximum blocks
This adds more readability.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/file.c