From ba06f077890cda65c692c246f7e4772a4ef31f56 Mon Sep 17 00:00:00 2001 From: Tao Ma Date: Fri, 24 Oct 2008 07:57:28 +0800 Subject: [PATCH] --- yaml --- r: 118745 b: refs/heads/master c: d32647993c211901fc4819ef3327f62d1859241b h: refs/heads/master i: 118743: 2e972d1c0238f62299c1f625ea8bb0ff5d8c1be4 v: v3 --- [refs] | 2 +- trunk/fs/ocfs2/xattr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 76b296d8357b..e2d219551d27 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b99835c1684918b9975851d71455c5c007d1715b +refs/heads/master: d32647993c211901fc4819ef3327f62d1859241b diff --git a/trunk/fs/ocfs2/xattr.c b/trunk/fs/ocfs2/xattr.c index 789fb70462c9..a371c01942b1 100644 --- a/trunk/fs/ocfs2/xattr.c +++ b/trunk/fs/ocfs2/xattr.c @@ -4092,7 +4092,7 @@ static int ocfs2_xattr_value_update_size(struct inode *inode, handle_t *handle = NULL; handle = ocfs2_start_trans(osb, 1); - if (handle == NULL) { + if (IS_ERR(handle)) { ret = -ENOMEM; mlog_errno(ret); goto out; @@ -4259,7 +4259,7 @@ static int ocfs2_rm_xattr_cluster(struct inode *inode, } handle = ocfs2_start_trans(osb, OCFS2_REMOVE_EXTENT_CREDITS); - if (handle == NULL) { + if (IS_ERR(handle)) { ret = -ENOMEM; mlog_errno(ret); goto out;