ext4: update ctime and mtime for truncate with extents.
authorSolofo Ramangalahy <Solofo.Ramangalahy@bull.net>
Wed, 30 Apr 2008 02:00:41 +0000 (22:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 30 Apr 2008 02:00:41 +0000 (22:00 -0400)
commitef7377289a1510d638004158e43878643bc75dc5
tree4e7cfd27dc9322f0803fe438f63e1f9a2c4fb4cd
parentc83617db76353ff30e825874be2c15c185b95759
ext4: update ctime and mtime for truncate with extents.

The recently announced "Linux POSIX file system test suite"
caught a truncate issue when using extents:
mtime and ctime are not updated when truncate is successful.

This is the single issue caught with "default" ext4 (mkfs and mount
with minimal options).
The testsuite does not report failure with -o noextents.

With the following patch, all tests of the testsuite pass.

Signed-off-by: Solofo Ramangalahy <Solofo.Ramangalahy@bull.net>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c