]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: use EXT_MAX_BLOCKS in ext4_es_can_be_merged()
authorLukas Czerner <lczerner@redhat.com>
Tue, 13 May 2014 02:21:43 +0000 (22:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 13 May 2014 02:21:43 +0000 (22:21 -0400)
commit0a9efd1f76c0fcd09f3ac69f2ba706df2da4126c
tree11a33d777ab93ed1a8df504e18916fafcffb25a6
parent0d2606f96e86dd9b26fcb017692192b5e2190801
ext4: use EXT_MAX_BLOCKS in ext4_es_can_be_merged()

In ext4_es_can_be_merged() when checking whether we can merge two
extents we should use EXT_MAX_BLOCKS instead of defining it manually.
Also if it is really the case we should notify userspace because clearly
there is a bug in extent status tree implementation since this should
never happen.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
fs/ext4/extents_status.c