[PATCH] fs: gfs2: Use IS_ERR_OR_NULL

2019-06-05 Thread Kefeng Wang
Use IS_ERR_OR_NULL where appropriate. Cc: Bob Peterson Cc: Andreas Gruenbacher Cc: cluster-devel@redhat.com Signed-off-by: Kefeng Wang --- fs/gfs2/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index db9a05244a35..3925efd3fd83 100644

Re: [PATCH] fs: gfs2: Use IS_ERR_OR_NULL

2019-06-11 Thread Kefeng Wang
On 2019/6/12 0:23, Andreas Gruenbacher wrote: > Kefeng, > > On Wed, 5 Jun 2019 at 16:17, Kefeng Wang wrote: >> Use IS_ERR_OR_NULL where appropriate. > > It seems there are several more instances in which IS_ERR_OR_NULL should > be used (see below). > Right,

[PATCH v2] fs: gfs2: Use IS_ERR_OR_NULL

2019-06-11 Thread Kefeng Wang
Use IS_ERR_OR_NULL where appropriate. Signed-off-by: Kefeng Wang Signed-off-by: Andreas Gruenbacher --- fs/gfs2/dir.c| 4 ++-- fs/gfs2/glock.c | 2 +- fs/gfs2/inode.c | 2 +- fs/gfs2/ops_fstype.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/gfs2