]> Pileus Git - ~andy/linux/blobdiff - fs/gfs2/inode.c
[GFS2] Fix a page lock / glock deadlock
[~andy/linux] / fs / gfs2 / inode.c
index 5f50dd53bf6369b92b0c82f12230cfc5c829b9dc..810ff023fb147bc4da497464aff09eb81e68717e 100644 (file)
@@ -493,7 +493,7 @@ struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
                return dir;
        }
 
-       if (gfs2_glock_is_locked_by_me(dip->i_gl) == 0) {
+       if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) {
                error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh);
                if (error)
                        return ERR_PTR(error);