diff options
author | 2022-12-04 12:51:55 +0100 | |
---|---|---|
committer | 2022-12-06 16:06:32 +0100 | |
commit | 2ec750a01d189cf1872cd79490d0911a7bd519f8 (patch) | |
tree | 881abebb6ab39268cf7057d52f0687cd7a4e123f | |
parent | gfs2: Uninline and improve glock_{set,clear}_object (diff) | |
download | wireguard-linux-2ec750a01d189cf1872cd79490d0911a7bd519f8.tar.xz wireguard-linux-2ec750a01d189cf1872cd79490d0911a7bd519f8.zip |
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 <agruenba@redhat.com>
-rw-r--r-- | fs/gfs2/inode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 9fbbc365a404..8d4c4b5c4c0d 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c @@ -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 |