lustre: lprocfs: fix return value of lprocfs_read_helper
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")
Signed-off-by NeilBrown <[email protected]>
--- 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
@@ -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>
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.
Reviewed-by James Simmons <[email protected]>
Quoted 23 lines
Fixes fdedd94509fd ("staging/lustre/lvfs: remove the lvfs layer")Signed-off-by NeilBrown <[email protected]>--- 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@@ -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