ext4: teach ext4_ext_split to calculate extents efficiently
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 25 May 2011 21:41:48 +0000 (17:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 25 May 2011 21:41:48 +0000 (17:41 -0400)
commit1b16da77f90328661fc7e556ad591f9ee6b7ef6a
treeb86caf7fd1c4e0f205a69d8bb7ca1ebb883cab63
parentae24f28d39610a4810c78185cf599a771cf6ee1f
ext4: teach ext4_ext_split to calculate extents efficiently

Make ext4_ext_split() get extents to be moved by calculating in a statement
instead of counting in a loop.

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