Skip to content

Commit 2ec750a

Browse files
author
Andreas Gruenbacher
committed
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]>
1 parent 3781ec9 commit 2ec750a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fs/gfs2/inode.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned int type,
142142
if (unlikely(error))
143143
goto fail;
144144

145+
/*
146+
* The only caller that sets @blktype to GFS2_BLKST_UNLINKED is
147+
* delete_work_func(). Make sure not to cancel the delete work
148+
* from within itself here.
149+
*/
145150
if (blktype == GFS2_BLKST_UNLINKED)
146151
extra_flags |= LM_FLAG_TRY;
147152
else

0 commit comments

Comments
 (0)