]> 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)
commit5d4d402ff6bff27e57bfe2fefc4b5b40577d5339
tree85f995b14c7308080d196d85b9b3d148337a6382
parent33bb41d267ebbfe3957d485d3c77b39da83dffb4
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