Commit b9d9506d authored by John Hawkes's avatar John Hawkes Committed by Trond Myklebust
Browse files

NFS: nfs_show_stats; for_each_possible_cpu(), not NR_CPUS

Convert a for-loop that explicitly references "NR_CPUS" into the
potentially more efficient for_each_possible_cpu() construct.
Signed-off-by: default avatarJohn Hawkes <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarTrond Myklebust <>
parent ec535ce1
......@@ -700,12 +700,9 @@ static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt)
* Display superblock I/O counters
for (cpu = 0; cpu < NR_CPUS; cpu++) {
for_each_possible_cpu(cpu) {
struct nfs_iostats *stats;
if (!cpu_possible(cpu))
stats = per_cpu_ptr(nfss->io_stats, cpu);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment