ext4: let ext4_group_add_blocks() handle 0 blocks quickly
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 27 Jul 2011 01:51:08 +0000 (21:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Jul 2011 01:51:08 +0000 (21:51 -0400)
commit4740b830ed5720ade6c780dbf3fdfe9089b3552d
tree7236a6b16db7d3cf8ef8cf5a6d86dac85df01b01
parentcc7365dfe48cb2191f1572bf69e30d3e58716313
ext4: let ext4_group_add_blocks() handle 0 blocks quickly

If ext4_group_add_blocks() is called with 0 block, make it return 0
without doing any extra work.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c