From 175770e5aa81a34f36f1986c42b270b2d8efcc0d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 19 Jan 2004 05:12:47 -0800 Subject: [PATCH] [PATCH] tmpfs readdir does not update dir atime From: mark@borgerding.net Access times of tmpfs dirs do not get updated on readdir. This can cause empty dirs to get tmpwatch'd too early, b/c atime never changes even though the dir is in use. --- fs/libfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/libfs.c b/fs/libfs.c index 68002d64552e7..475871c787f31 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -155,6 +155,7 @@ int dcache_readdir(struct file * filp, void * dirent, filldir_t filldir) } spin_unlock(&dcache_lock); } + update_atime(dentry->d_inode); return 0; } -- 2.53.0