Skip to contentSkip to conversation

gfs2: return actual error on gfs2_sys_ini

PATCH Applied Jeff Liu 1 participant 2 messages Jun 17, 2014 – Jun 18, 2014 GFS2 file system

lore
Share & tools
lore

Jeff Liu

author
#0 lore raw

PATCH 17/24 gfs2: return actual error on gfs2_sys_ini

From: Jie Liu <[email protected]>

Return the actual error code if call kset_create_and_add() failed

Cc Steven Whitehouse <[email protected]>
---
 fs/gfs2/sys.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/gfs2/sys.c +2 -2
index 3ab566b..cc90d72 100644
@@ -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;
 }
 
Signature · 1 line
1.8.3.2
author
#1 lore raw

PATCH 17/24 gfs2: return actual error on gfs2_sys_ini

Hi,

Quoted 6 lines · Jeff Liu

From: Jie Liu <[email protected]>

Return the actual error code if call kset_create_and_add() failed

Cc Steven Whitehouse <[email protected]>

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