aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2019-06-05 10:24:24 -0400
committerAndreas Gruenbacher <agruenba@redhat.com>2019-06-27 14:53:46 -0400
commit15a798f7deb3931dd569f5734a04be47b97435cc (patch)
tree78a348db6da5b7cf580344414cd07e261f7689b4 /fs/gfs2/inode.c
parent2a27b755ed244527df845f07f4dd83988a90f2e4 (diff)
gfs2: Use IS_ERR_OR_NULL
Use IS_ERR_OR_NULL where appropriate. (Several more places converted by Andreas.) Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r--fs/gfs2/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index b296c59832a7..2e2a8a2fb51d 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -793,7 +793,7 @@ fail_free_acls:
793fail_gunlock: 793fail_gunlock:
794 gfs2_dir_no_add(&da); 794 gfs2_dir_no_add(&da);
795 gfs2_glock_dq_uninit(ghs); 795 gfs2_glock_dq_uninit(ghs);
796 if (inode && !IS_ERR(inode)) { 796 if (!IS_ERR_OR_NULL(inode)) {
797 clear_nlink(inode); 797 clear_nlink(inode);
798 if (!free_vfs_inode) 798 if (!free_vfs_inode)
799 mark_inode_dirty(inode); 799 mark_inode_dirty(inode);