]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: teach ext4_free_blocks() about bigalloc and clusters
authorTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 22:50:51 +0000 (18:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 22:50:51 +0000 (18:50 -0400)
commit95909a6ef0db25eea0db06e4a99a46f84d19cb85
tree799534ea6cd551ba346e32da2ee2f363851a3257
parent38db17c729ce49deb19454442881a3c09a3b736b
ext4: teach ext4_free_blocks() about bigalloc and clusters

The ext4_free_blocks() function now has two new flags that indicate
whether a partial cluster at the beginning or the end of the block
extents should be freed or not.  That will be up the caller (i.e.,
truncate), who can figure out whether partial clusters at the
beginning or the end of a block range can be freed.

We also have to update the ext4_mb_free_metadata() and
release_blocks_on_commit() machinery to be cluster-based, since it is
used by ext4_free_blocks().

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