Re: Issue with 252c651a4c85 ("blk-cgroup: stop using seq_get_buf")

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

 



On Thu, May 12, 2022 at 3:42 PM Khazhy Kumykov <khazhy@xxxxxxxxxx> wrote:
>
> all if they have no statistics. (e.g. by having the "first"
> stats-haver writing out the bdev name, or going back to scnprintf)

It might be cleaner (at least here where we want to conditionally
write a prefix) if we were allowed to "rewind" seq_file (see
following), though I'm not that familiar with seq_file to know if this
is actually a good idea :) In principle, it doesn't seem too different
from seq_get_buf/seq_commit, except we now have the checks in
seq_printf preventing overruns

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux