]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: refactor truncate code
authorTheodore Ts'o <tytso@mit.edu>
Wed, 3 Apr 2013 16:47:17 +0000 (12:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Apr 2013 16:47:17 +0000 (12:47 -0400)
commitea525082a539b1e7fd996f2075d3eb076ff4768f
tree85f995b14c7308080d196d85b9b3d148337a6382
parent2064680bfaf9c89ed5bde91f809632dda61e8ed1
ext4: refactor truncate code

Move common code in ext4_ind_truncate() and ext4_ext_truncate() into
ext4_truncate().  This saves over 60 lines of code.

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