summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2019-06-05 16:24:24 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2019-06-27 20:53:46 +0200
commit15a798f7deb3931dd569f5734a04be47b97435cc (patch)
tree78a348db6da5b7cf580344414cd07e261f7689b4 /fs/gfs2/glock.c
parentgfs2: Clean up freeing struct gfs2_sbd (diff)
downloadlinux-15a798f7deb3931dd569f5734a04be47b97435cc.tar.xz
linux-15a798f7deb3931dd569f5734a04be47b97435cc.zip
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/glock.c')
-rw-r--r--fs/gfs2/glock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index f1ebcb42cbf5..44718098cc60 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -681,7 +681,7 @@ static void delete_work_func(struct work_struct *work)
goto out;
inode = gfs2_lookup_by_inum(sdp, no_addr, NULL, GFS2_BLKST_UNLINKED);
- if (inode && !IS_ERR(inode)) {
+ if (!IS_ERR_OR_NULL(inode)) {
d_prune_aliases(inode);
iput(inode);
}