]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api.c: refactor cgroup_process_*_mnt()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Sat, 26 Mar 2022 13:40:50 +0000 (19:10 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 29 Mar 2022 21:37:58 +0000 (15:37 -0600)
commit867beea9fc5f368976fb28ea37dd45f85c8e2cc6
tree63d6a94310c75adb9a26a144a42642f503e45423
parent339d6274bc3526f9f5af0365e80c8f2bb6976243
api.c: refactor cgroup_process_*_mnt()

Abstract appending new mount point to the cg_mount_table[] into new
function, reducing the duplication in both cgroup_process_v1_mnt()
and cgroup_process_v2_mnt().

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
TJH: Remove erroneous whitespace addition
src/api.c