diff options
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index 5f50dd53bf63..810ff023fb14 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -493,7 +493,7 @@ struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name, | |||
493 | return dir; | 493 | return dir; |
494 | } | 494 | } |
495 | 495 | ||
496 | if (gfs2_glock_is_locked_by_me(dip->i_gl) == 0) { | 496 | if (gfs2_glock_is_locked_by_me(dip->i_gl) == NULL) { |
497 | error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); | 497 | error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); |
498 | if (error) | 498 | if (error) |
499 | return ERR_PTR(error); | 499 | return ERR_PTR(error); |