1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 01:09:38 -05:00
linux/fs/f2fs
Chao Yu 345a6b2ee2 f2fs: fix to update {m,c}time correctly when truncating larger
This patch fixes to update ctime and atime correctly when truncating
larger in ->setattr.

The bug is reported by xfstest generic/313 as below:

generic/313 2s ... - output mismatch (see ./results/generic/313.out.bad)
    --- tests/generic/313.out   2015-08-04 15:28:53.430798882 +0800
    +++ results/generic/313.out.bad   2015-09-28 17:04:27.294278016 +0800
    @@ -1,2 +1,4 @@
     QA output created by 313
     Silence is golden
    +ctime not updated after truncate up
    +mtime not updated after truncate up
    ...
    (Run 'diff -u tests/generic/313.out tests/generic/313.out.bad'  to see the entire diff)
Ran: generic/313
Failures: generic/313
Failed 1 of 1 tests

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2015-10-09 16:20:54 -07:00
..
acl.c
acl.h
checkpoint.c f2fs: check end_io for metapages before making next checkpoint blocks 2015-10-09 16:20:51 -07:00
crypto.c
crypto_fname.c
crypto_key.c
crypto_policy.c
data.c f2fs: do not skip dentry block writes 2015-10-09 16:20:54 -07:00
debug.c f2fs: fix incorrect bimodal calculation 2015-10-09 16:20:53 -07:00
dir.c f2fs crypto: allocate buffer for decrypting filename 2015-10-09 16:20:51 -07:00
extent_cache.c f2fs: introduce __try_update_largest_extent 2015-10-09 16:20:53 -07:00
f2fs.h f2fs: introduce __try_update_largest_extent 2015-10-09 16:20:53 -07:00
f2fs_crypto.h
file.c f2fs: fix to update {m,c}time correctly when truncating larger 2015-10-09 16:20:54 -07:00
gc.c f2fs: retry gc if one section is not successfully reclaimed 2015-08-20 09:00:12 -07:00
gc.h f2fs: add new ioctl F2FS_IOC_GARBAGE_COLLECT 2015-08-04 14:09:58 -07:00
hash.c
inline.c f2fs: fix error handling for calls to various functions in the function recover_inline_data 2015-10-09 16:20:53 -07:00
inode.c f2fs: no need to lock for update_inode_page all the time 2015-10-09 16:20:50 -07:00
Kconfig f2fs: fix typo 2015-08-21 22:43:32 -07:00
Makefile f2fs: maintain extent cache in separated file 2015-08-04 14:09:58 -07:00
namei.c f2fs crypto: allocate buffer for decrypting filename 2015-10-09 16:20:51 -07:00
node.c f2fs: do not skip dentry block writes 2015-10-09 16:20:54 -07:00
node.h f2fs: do not skip dentry block writes 2015-10-09 16:20:54 -07:00
recovery.c f2fs: remove unneeded f2fs_{,un}lock_op in do_recover_data() 2015-10-09 16:20:54 -07:00
segment.c f2fs: use __GFP_NOFAIL to avoid infinite loop 2015-08-24 09:37:21 -07:00
segment.h f2fs: do not skip dentry block writes 2015-10-09 16:20:54 -07:00
shrinker.c f2fs: shrink free_nids entries 2015-08-20 09:00:06 -07:00
super.c f2fs: disallow switch extent_cache option dynamically 2015-10-09 16:20:53 -07:00
trace.c
trace.h
xattr.c f2fs: correct return value of ->setxattr 2015-08-04 14:09:59 -07:00
xattr.h