cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH 17/24] gfs2: return actual error on gfs2_sys_ini
@ 2014-06-17 14:32 Jeff Liu
  2014-06-18  1:49 ` Jeff Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Liu @ 2014-06-17 14:32 UTC (permalink / raw)
  To: cluster-devel.redhat.com

From: Jie Liu <jeff.liu@oracle.com>

Return the actual error code if call kset_create_and_add() failed

Cc: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
 fs/gfs2/sys.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c
index 3ab566b..cc90d72 100644
--- a/fs/gfs2/sys.c
+++ b/fs/gfs2/sys.c
@@ -699,8 +699,8 @@ static const struct kset_uevent_ops gfs2_uevent_ops = {
 int gfs2_sys_init(void)
 {
 	gfs2_kset = kset_create_and_add("gfs2", &gfs2_uevent_ops, fs_kobj);
-	if (!gfs2_kset)
-		return -ENOMEM;
+	if (IS_ERR(gfs2_kset))
+		return PTR_ERR(gfs2_kset);
 	return 0;
 }
 
-- 
1.8.3.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Cluster-devel] [PATCH 17/24] gfs2: return actual error on gfs2_sys_ini
  2014-06-17 14:32 [Cluster-devel] [PATCH 17/24] gfs2: return actual error on gfs2_sys_ini Jeff Liu
@ 2014-06-18  1:49 ` Jeff Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Liu @ 2014-06-18  1:49 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

On 06/17/2014 22:32 PM, Jeff Liu wrote:
> From: Jie Liu <jeff.liu@oracle.com>
> 
> Return the actual error code if call kset_create_and_add() failed
> 
> Cc: Steven Whitehouse <swhiteho@redhat.com>
> Signed-off-by: Jie Liu <jeff.liu@oracle.com>

Please ignore this patch as well as another one for DLM:
[PATCH 19/24] fs/dlm: return actual error on dlm_lockspace_init

Cheers,
-Jeff



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-18  1:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-17 14:32 [Cluster-devel] [PATCH 17/24] gfs2: return actual error on gfs2_sys_ini Jeff Liu
2014-06-18  1:49 ` Jeff Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).