• Miklos Szeredi's avatar
    ovl: update atime on upper · d719e8f2
    Miklos Szeredi authored
    Fix atime update logic in overlayfs.
    
    This patch adds an i_op->update_time() handler to overlayfs inodes.  This
    forwards atime updates to the upper layer only.  No atime updates are done
    on lower layers.
    
    Remove implicit atime updates to underlying files and directories with
    O_NOATIME.  Remove explicit atime update in ovl_readlink().
    
    Clear atime related mnt flags from cloned upper mount.  This means atime
    updates are controlled purely by overlayfs mount options.
    
    Reported-by: Konstantin Khlebnikov <koct9i@gmail.com> 
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    d719e8f2
super.c 26.6 KB