diff options
Diffstat (limited to 'fs/gfs2/ops_inode.c')
| -rw-r--r-- | fs/gfs2/ops_inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/ops_inode.c b/fs/gfs2/ops_inode.c index 301c94596678..af7097a514c1 100644 --- a/fs/gfs2/ops_inode.c +++ b/fs/gfs2/ops_inode.c | |||
| @@ -898,7 +898,7 @@ static int gfs2_permission(struct inode *inode, int mask, struct nameidata *nd) | |||
| 898 | int error; | 898 | int error; |
| 899 | int unlock = 0; | 899 | int unlock = 0; |
| 900 | 900 | ||
| 901 | if (gfs2_glock_is_locked_by_me(ip->i_gl) == 0) { | 901 | if (gfs2_glock_is_locked_by_me(ip->i_gl) == NULL) { |
| 902 | error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); | 902 | error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &i_gh); |
| 903 | if (error) | 903 | if (error) |
| 904 | return error; | 904 | return error; |
| @@ -1065,7 +1065,7 @@ static int gfs2_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
| 1065 | int error; | 1065 | int error; |
| 1066 | int unlock = 0; | 1066 | int unlock = 0; |
| 1067 | 1067 | ||
| 1068 | if (gfs2_glock_is_locked_by_me(ip->i_gl) == 0) { | 1068 | if (gfs2_glock_is_locked_by_me(ip->i_gl) == NULL) { |
| 1069 | error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); | 1069 | error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh); |
| 1070 | if (error) | 1070 | if (error) |
| 1071 | return error; | 1071 | return error; |
