]> git.baikalelectronics.ru Git - kernel.git/commitdiff
gfs2: Merge branch 'for-next.nopid' into for-next
authorAndreas Gruenbacher <agruenba@redhat.com>
Sun, 9 Oct 2022 20:56:28 +0000 (22:56 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Sun, 9 Oct 2022 20:56:28 +0000 (22:56 +0200)
Resolves a conflict in gfs2_inode_lookup() between the following commits:

    gfs2: Use TRY lock in gfs2_inode_lookup for UNLINKED inodes

    gfs2: Mark the remaining process-independent glock holders as GL_NOPID

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1  2 
fs/gfs2/file.c
fs/gfs2/glock.c
fs/gfs2/glock.h
fs/gfs2/inode.c
fs/gfs2/ops_fstype.c
fs/gfs2/super.c
fs/gfs2/util.c

diff --cc fs/gfs2/file.c
Simple merge
diff --cc fs/gfs2/glock.c
Simple merge
diff --cc fs/gfs2/glock.h
Simple merge
diff --cc fs/gfs2/inode.c
index 56ded979988cac324a8a17e2ee06755bc327cee5,e211ed8636b5b1e525a7b7f2741130ee494aca20..04a201584fa7c70d6403257f2ef17e282d86827d
@@@ -142,12 -141,10 +142,12 @@@ struct inode *gfs2_inode_lookup(struct 
                if (unlikely(error))
                        goto fail;
  
 -              if (blktype != GFS2_BLKST_UNLINKED)
 +              if (blktype == GFS2_BLKST_UNLINKED)
 +                      extra_flags |= LM_FLAG_TRY;
 +              else
                        gfs2_cancel_delete_work(io_gl);
                error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED,
-                                          GL_EXACT | extra_flags,
 -                                         GL_EXACT | GL_NOPID,
++                                         GL_EXACT | GL_NOPID | extra_flags,
                                           &ip->i_iopen_gh);
                gfs2_glock_put(io_gl);
                if (unlikely(error))
Simple merge
diff --cc fs/gfs2/super.c
Simple merge
diff --cc fs/gfs2/util.c
Simple merge