summaryrefslogtreecommitdiffstats
path: root/firmware/.gitignore
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-12-05 12:28:04 -0500
committerTejun Heo <tj@kernel.org>2013-12-05 12:28:04 -0500
commit896f5199631560202885715da1b2f018632084e5 (patch)
treed9528c21be24d588f8f943499e9e6ff83ef77187 /firmware/.gitignore
parenta742c59de66ea080afa3edaf3428b3cdd5aa87cd (diff)
downloadop-kernel-dev-896f5199631560202885715da1b2f018632084e5.zip
op-kernel-dev-896f5199631560202885715da1b2f018632084e5.tar.gz
cgroup: unify read path so that seq_file is always used
With the recent removal of cftype->read() and ->read_map(), only three operations are remaining, ->read_u64(), ->read_s64() and ->read_seq_string(). Currently, the first two are handled directly while the last is handled through seq_file. It is trivial to serve the first two through the seq_file path too. This patch restructures read path so that all operations are served through cgroup_seqfile_show(). This makes all cgroup files seq_file - single_open/release() are now used by default, cgroup_seqfile_operations is dropped, and cgroup_file_operations uses seq_read() for read. This simplifies the code and makes the read path easy to convert to use kernfs. Note that, while cgroup_file_operations uses seq_read() for read, it still uses generic_file_llseek() for seeking instead of seq_lseek(). This is different from cgroup_seqfile_operations but shouldn't break anything and brings the seeking behavior aligned with kernfs. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'firmware/.gitignore')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud