mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
gfs2: Add gfs2_inode_lookup comment
Add comment on when and why gfs2_cancel_delete_work() needs to be skipped in gfs2_inode_lookup(). Signed-off-by: Andreas Gruenbacher <[email protected]>
This commit is contained in:
1 parent
3781ec9e09
commit
2ec750a01d
1 file changed
+5
@@ -142,6 +142,11 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type,
|
||||
if (unlikely(error))
|
||||
goto fail;
|
||||
|
||||
/*
|
||||
* The only caller that sets @blktype to GFS2_BLKST_UNLINKED is
|
||||
* delete_work_func(). Make sure not to cancel the delete work
|
||||
* from within itself here.
|
||||
*/
|
||||
if (blktype == GFS2_BLKST_UNLINKED)
|
||||
extra_flags |= LM_FLAG_TRY;
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user