simplify procfs code for seq_file instances V2
Christoph Hellwig <[email protected]> Wed, 25 Apr 2018 17:47:47 +0200
| Newsgroups | gmane.comp.file-systems.jfs.general |
|---|---|
| Message-ID | <20180425154827.32251-1-hch__15159.7806522206$1524671236$gmane$org@lst.de> |
We currently have hundreds of proc files that implement plain, read-only
seq_file based interfaces. This series consolidates them using new
procfs helpers that take the seq_operations or simple show callback
directly.
A git tree is available at:
git://git.infradead.org/users/hch/misc.git proc_create.2
Gitweb:
http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/proc_create.2
Changes since V1:
- open code proc_create_data to avoid setting not fully initialized
entries live
- use unsigned int for state_size
- dropped the s390/cio/blacklist hunk as it has a write method
- dropped the IPMI patch given that IPMI proc support is scheduled for
removal.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot