Commit 84a79ee6 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Don't reread inodes unnecessarily



In gfs2_create_inode(), we initialize the inode from scratch and then we
write the result to disk.  Clear the GLF_INSTANTIATE_NEEDED glock flag
to indicate that the inode is up to date.  Otherwise, the next time the
inode glock is acquired, gfs2_instantiate() would reread the inode from
disk, which isn't necessary.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent af4044fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment