Skip to content
Commit 2b0fb353 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Avoid access time thrashing in gfs2_inode_lookup



In gfs2_inode_lookup, we initialize inode->i_atime to the lowest
possibly value after gfs2_inode_refresh may already have been called.
This should be the other way around, but we didn't notice because
usually the inode type is known from the directory entry and so
gfs2_inode_lookup won't call gfs2_inode_refresh.

In addition, only initialize ip->i_no_formal_ino from no_formal_ino when
actually needed.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent e556280d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment