From: John L. Hammond Date: Mon, 3 Jun 2013 13:40:51 +0000 (+0800) Subject: staging/lustre/lprocfs: use stats counter index for *pos X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~343 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edb4973dbc4b729098ba081225bf370e19081127;p=pandora-kernel.git staging/lustre/lprocfs: use stats counter index for *pos In lprocfs_stats_seq_{start,next,show,stop}() encode the counter index (rather than the counter address) into *pos. Doing so simplifies these functions and fixes a bug in the case of per-CPU stats where no stats would be displayed at all if no events had yet occurred on CPU 0. Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-2979 Lustre-change: http://review.whamcloud.com/6328 Signed-off-by: John L. Hammond Reviewed-by: wangdi Reviewed-by: Bobi Jam Reviewed-by: Emoly Liu Reviewed-by: Keith Mannthey Reviewed-by: Oleg Drokin Signed-off-by: Peng Tao Signed-off-by: Andreas Dilger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed