]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: teach mballoc preallocation code about bigalloc clusters
authorTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 22:48:51 +0000 (18:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 22:48:51 +0000 (18:48 -0400)
commit38db17c729ce49deb19454442881a3c09a3b736b
treea68dcd8ea8d286e07d31d4541311819a0082f78c
parentf542dcb086a2484f8b87d5c70a67a8e75181582c
ext4: teach mballoc preallocation code about bigalloc clusters

In most of mballoc.c, we do everything in units of clusters, since the
block allocation bitmaps and buddy bitmaps are all denominated in
clusters.  The one place where we do deal with absolute block numbers
is in the code that handles the preallocation regions, since in the
case of inode-based preallocation regions, the start of the
preallocation region can't be relative to the beginning of the group.

So this adds a bit of complexity, where pa_pstart and pa_lstart are
block numbers, while pa_free, pa_len, and fe_len are denominated in
units of clusters.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c
fs/ext4/mballoc.h