Re: [PATCH 2/4] proc: replace seq_printf on seq_putc to speed up /proc/pid/smaps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 11, 2018 at 11:49:29PM -0800, Andrei Vagin wrote:
>  		if (vma->vm_flags & (1UL << i)) {
> -			seq_printf(m, "%c%c ",
> -				   mnemonics[i][0], mnemonics[i][1]);
> +			seq_putc(m, mnemonics[i][0]);
> +			seq_putc(m, mnemonics[i][1]);
> +			seq_putc(m, ' ');

Reviewed-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux