Allow relatime to update atime once a day
authorMatthew Garrett <mjg@redhat.com>
Thu, 26 Mar 2009 17:32:14 +0000 (17:32 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 Mar 2009 17:48:13 +0000 (10:48 -0700)
commit11ff6f05f1e836a6a02369a4c4b64757e484adc1
tree325ab926d670d7fe1ca289a3b39fb913bc3b8cf3
parent8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84
Allow relatime to update atime once a day

Allow atime to be updated once per day even with relatime. This lets
utilities like tmpreaper (which delete files based on last access time)
continue working, making relatime a plausible default for distributions.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Acked-by: Valerie Aurora Henson <vaurora@redhat.com>
Acked-by: Alan Cox <alan@redhat.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/inode.c