Revision af5a30d8cfcfc561336f982b06345d6b815e0bb3 authored by Nick Piggin on 03 June 2010, 12:01:46 UTC, committed by Al Viro on 04 June 2010, 21:16:30 UTC
mtime and ctime should be changed only if the file size has actually
changed. Patches changing ext2 and tmpfs from vmtruncate to new truncate
sequence has caused regressions where they always update timestamps.

There is some strange cases in POSIX where truncate(2) must not update
times unless the size has acutally changed, see 6e656be89.

This area is all still rather buggy in different ways in a lot of
filesystems and needs a cleanup and audit (ideally the vfs will provide
a simple attribute or call to direct all filesystems exactly which
attributes to change). But coming up with the best solution will take a
while and is not appropriate for rc anyway.

So fix recent regression for now.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 8718d36
History
File Mode Size
Kconfig -rw-r--r-- 9.8 KB
Kconfig.debug -rw-r--r-- 1014 bytes
Makefile -rw-r--r-- 1.6 KB
backing-dev.c -rw-r--r-- 18.7 KB
bootmem.c -rw-r--r-- 23.8 KB
bounce.c -rw-r--r-- 6.5 KB
compaction.c -rw-r--r-- 16.1 KB
debug-pagealloc.c -rw-r--r-- 2.5 KB
dmapool.c -rw-r--r-- 12.9 KB
fadvise.c -rw-r--r-- 3.5 KB
failslab.c -rw-r--r-- 1.6 KB
filemap.c -rw-r--r-- 66.2 KB
filemap_xip.c -rw-r--r-- 11.0 KB
fremap.c -rw-r--r-- 6.7 KB
highmem.c -rw-r--r-- 11.3 KB
hugetlb.c -rw-r--r-- 72.1 KB
hwpoison-inject.c -rw-r--r-- 3.2 KB
init-mm.c -rw-r--r-- 538 bytes
internal.h -rw-r--r-- 7.1 KB
kmemcheck.c -rw-r--r-- 2.8 KB
kmemleak-test.c -rw-r--r-- 3.3 KB
kmemleak.c -rw-r--r-- 47.5 KB
ksm.c -rw-r--r-- 53.0 KB
maccess.c -rw-r--r-- 1.6 KB
madvise.c -rw-r--r-- 11.3 KB
memcontrol.c -rw-r--r-- 118.3 KB
memory-failure.c -rw-r--r-- 33.7 KB
memory.c -rw-r--r-- 94.8 KB
memory_hotplug.c -rw-r--r-- 22.1 KB
mempolicy.c -rw-r--r-- 65.9 KB
mempool.c -rw-r--r-- 8.9 KB
migrate.c -rw-r--r-- 26.8 KB
mincore.c -rw-r--r-- 7.6 KB
mlock.c -rw-r--r-- 15.2 KB
mm_init.c -rw-r--r-- 3.7 KB
mmap.c -rw-r--r-- 68.6 KB
mmu_context.c -rw-r--r-- 1.4 KB
mmu_notifier.c -rw-r--r-- 8.8 KB
mmzone.c -rw-r--r-- 1.8 KB
mprotect.c -rw-r--r-- 7.6 KB
mremap.c -rw-r--r-- 13.0 KB
msync.c -rw-r--r-- 2.4 KB
nommu.c -rw-r--r-- 48.4 KB
oom_kill.c -rw-r--r-- 17.7 KB
page-writeback.c -rw-r--r-- 36.3 KB
page_alloc.c -rw-r--r-- 150.1 KB
page_cgroup.c -rw-r--r-- 11.2 KB
page_io.c -rw-r--r-- 3.3 KB
page_isolation.c -rw-r--r-- 3.6 KB
pagewalk.c -rw-r--r-- 4.7 KB
percpu-km.c -rw-r--r-- 2.7 KB
percpu-vm.c -rw-r--r-- 13.0 KB
percpu.c -rw-r--r-- 52.7 KB
percpu_up.c -rw-r--r-- 672 bytes
prio_tree.c -rw-r--r-- 6.3 KB
quicklist.c -rw-r--r-- 2.4 KB
readahead.c -rw-r--r-- 15.4 KB
rmap.c -rw-r--r-- 40.7 KB
shmem.c -rw-r--r-- 70.8 KB
slab.c -rw-r--r-- 118.3 KB
slob.c -rw-r--r-- 17.0 KB
slub.c -rw-r--r-- 109.5 KB
sparse-vmemmap.c -rw-r--r-- 6.2 KB
sparse.c -rw-r--r-- 20.5 KB
swap.c -rw-r--r-- 12.9 KB
swap_state.c -rw-r--r-- 10.4 KB
swapfile.c -rw-r--r-- 63.6 KB
thrash.c -rw-r--r-- 1.9 KB
truncate.c -rw-r--r-- 15.8 KB
util.c -rw-r--r-- 7.0 KB
vmalloc.c -rw-r--r-- 60.8 KB
vmscan.c -rw-r--r-- 80.4 KB
vmstat.c -rw-r--r-- 28.5 KB

back to top