Skip to contentSkip to conversation

lustre: lprocfs: fix return value of lprocfs_read_helper

PATCH New NeilBrown 2 participants 2 messages Oct 18, 2018 – Oct 20, 2018 Staging

lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 lustre: lprocfs: fix return value of lprocfs_read_helper

This should be 'ret', not zero.

Fixes fdedd94509fd ("staging/lustre/lvfs: remove the lvfs layer")
---
 drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c +1 -1
index dc1d540e05c7..edac88440b41 100644
@@ -1509,7 +1509,7 @@ __s64 lprocfs_read_helper(struct lprocfs_counter *lc,
 		break;
 	}
 
-	return 0;
+	return ret;
 }
 EXPORT_SYMBOL(lprocfs_read_helper);
 
Signature · 9 lines
2.14.0.rc0.dirty

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20181018/4d0fd838/attachment.sig>
#1 lore raw

PATCH 1/1 lustre: lprocfs: fix return value of lprocfs_read_helper

Quoted 3 lines

This should be 'ret', not zero.

I bet that was one of my first patches to the linux lustre client since its a really old patch. Thanks for figuring that out.

Quoted 23 lines
Fixes fdedd94509fd ("staging/lustre/lvfs: remove the lvfs layer")
---
 drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c +1 -1
index dc1d540e05c7..edac88440b41 100644
@@ -1509,7 +1509,7 @@ __s64 lprocfs_read_helper(struct lprocfs_counter *lc,
 		break;
 	}
 
-	return 0;
+	return ret;
 }
 EXPORT_SYMBOL(lprocfs_read_helper);
 
Signature · 1 line
2.14.0.rc0.dirty