ext4: introduce ext4_trunc_inode to deal with ftruncate operation
authorgkostka <kostka.grzegorz@gmail.com>
Sun, 10 Jan 2016 10:29:54 +0000 (11:29 +0100)
committergkostka <kostka.grzegorz@gmail.com>
Sun, 10 Jan 2016 13:03:16 +0000 (14:03 +0100)
commitfad2d51c6c20323408b13f5ff95c3794ace78376
tree1f90a02512dbc887c111bae59b00f6c92f5d32cd
parentb4f36a128a7826b7343c8181b1ab34fe48ebfc18
ext4: introduce ext4_trunc_inode to deal with ftruncate operation

Truncate operations might consume a lot of blocks. New function
will split one big transacion into a numerous of smaller ones.
CONFIG_MAX_TRUNCATE_SIZE limits single inode truncate size.
lwext4/ext4.c
lwext4/ext4_config.h