diff options
Diffstat (limited to 'fs/nfs/inode.c')
| -rw-r--r-- | fs/nfs/inode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 2f7656b911b6..d0b991a92327 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
| @@ -700,12 +700,9 @@ static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt) | |||
| 700 | /* | 700 | /* |
| 701 | * Display superblock I/O counters | 701 | * Display superblock I/O counters |
| 702 | */ | 702 | */ |
| 703 | for (cpu = 0; cpu < NR_CPUS; cpu++) { | 703 | for_each_possible_cpu(cpu) { |
| 704 | struct nfs_iostats *stats; | 704 | struct nfs_iostats *stats; |
| 705 | 705 | ||
| 706 | if (!cpu_possible(cpu)) | ||
| 707 | continue; | ||
| 708 | |||
| 709 | preempt_disable(); | 706 | preempt_disable(); |
| 710 | stats = per_cpu_ptr(nfss->io_stats, cpu); | 707 | stats = per_cpu_ptr(nfss->io_stats, cpu); |
| 711 | 708 | ||
