mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
gfs2: Remove redundant check for GLF_INSTANTIATE_NEEDED
If the GLF_INSTANTIATE_NEEDED flag isn't set, gfs2_instantiate() is a no-op. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
parent
1d05ee7e0d
commit
8d567162ef
1 changed files with 3 additions and 5 deletions
|
|
@ -1244,11 +1244,9 @@ static enum dinode_demise evict_should_delete(struct inode *inode,
|
|||
if (ret)
|
||||
return SHOULD_NOT_DELETE_DINODE;
|
||||
|
||||
if (test_bit(GLF_INSTANTIATE_NEEDED, &ip->i_gl->gl_flags)) {
|
||||
ret = gfs2_instantiate(gh);
|
||||
if (ret)
|
||||
return SHOULD_NOT_DELETE_DINODE;
|
||||
}
|
||||
ret = gfs2_instantiate(gh);
|
||||
if (ret)
|
||||
return SHOULD_NOT_DELETE_DINODE;
|
||||
|
||||
/*
|
||||
* The inode may have been recreated in the meantime.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue