Repository navigation
Commit 2da8ca8
committed
cgroup: replace cftype->read_seq_string() with cftype->seq_show()
In preparation of conversion to kernfs, cgroup file handling is
updated so that it can be easily mapped to kernfs. This patch
replaces cftype->read_seq_string() with cftype->seq_show() which is
not limited to single_open() operation and will map directcly to
kernfs seq_file interface.
The conversions are mechanical. As ->seq_show() doesn't have @css and
@cft, the functions which make use of them are converted to use
seq_css() and seq_cft() respectively. In several occassions, e.f. if
it has seq_string in its name, the function name is updated to fit the
new method better.
This patch does not introduce any behavior changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Aristeu Rozanski <arozansk@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Neil Horman <nhorman@tuxdriver.com>1 parent 7da1127 commit 2da8ca8
11 files changed
Lines changed: 128 additions & 164 deletions
File tree
- block
- include/linux
- kernel
- sched
- mm
- net/core
- security
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1303 | 1303 | | |
1304 | 1304 | | |
1305 | 1305 | | |
1306 | | - | |
1307 | | - | |
| 1306 | + | |
1308 | 1307 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
| 1308 | + | |
| 1309 | + | |
1313 | 1310 | | |
1314 | 1311 | | |
1315 | 1312 | | |
| |||
1335 | 1332 | | |
1336 | 1333 | | |
1337 | 1334 | | |
1338 | | - | |
1339 | | - | |
| 1335 | + | |
1340 | 1336 | | |
1341 | | - | |
1342 | | - | |
| 1337 | + | |
| 1338 | + | |
1343 | 1339 | | |
1344 | 1340 | | |
1345 | 1341 | | |
1346 | | - | |
1347 | | - | |
| 1342 | + | |
1348 | 1343 | | |
1349 | | - | |
1350 | | - | |
| 1344 | + | |
| 1345 | + | |
1351 | 1346 | | |
1352 | 1347 | | |
1353 | 1348 | | |
| |||
1428 | 1423 | | |
1429 | 1424 | | |
1430 | 1425 | | |
1431 | | - | |
| 1426 | + | |
1432 | 1427 | | |
1433 | 1428 | | |
1434 | 1429 | | |
1435 | 1430 | | |
1436 | 1431 | | |
1437 | 1432 | | |
1438 | | - | |
| 1433 | + | |
1439 | 1434 | | |
1440 | 1435 | | |
1441 | 1436 | | |
1442 | 1437 | | |
1443 | 1438 | | |
1444 | 1439 | | |
1445 | | - | |
| 1440 | + | |
1446 | 1441 | | |
1447 | 1442 | | |
1448 | 1443 | | |
1449 | 1444 | | |
1450 | 1445 | | |
1451 | 1446 | | |
1452 | | - | |
| 1447 | + | |
1453 | 1448 | | |
1454 | 1449 | | |
1455 | 1450 | | |
1456 | 1451 | | |
1457 | 1452 | | |
1458 | 1453 | | |
1459 | | - | |
| 1454 | + | |
1460 | 1455 | | |
1461 | 1456 | | |
1462 | 1457 | | |
1463 | 1458 | | |
1464 | | - | |
| 1459 | + | |
1465 | 1460 | | |
1466 | 1461 | | |
1467 | 1462 | | |
| |||
0 commit comments