The patch titled
cgroups: bdi init hooks
has been removed from the -mm tree. Its filename was
task-containersv11-add-procfs-interface-containers-bdi-init-hooks.patch
This patch was dropped because it was folded into
task-containersv11-add-procfs-interface.patch
------------------------------------------------------
Subject: cgroups: bdi init hooks
From: Peter Zijlstra <[EMAIL PROTECTED]>
split off from the large bdi_init patch because cgroups are not slated
for mainline any time soon.
Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
kernel/cgroup.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff -puN
kernel/cgroup.c~task-containersv11-add-procfs-interface-containers-bdi-init-hooks
kernel/cgroup.c
---
a/kernel/cgroup.c~task-containersv11-add-procfs-interface-containers-bdi-init-hooks
+++ a/kernel/cgroup.c
@@ -250,12 +250,13 @@ static int cgroup_populate_dir(struct cg
static struct inode_operations cgroup_dir_inode_operations;
static struct file_operations proc_cgroupstats_operations;
+static struct backing_dev_info cgroup_backing_dev_info = {
+ .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK,
+};
+
static struct inode *cgroup_new_inode(mode_t mode, struct super_block *sb)
{
struct inode *inode = new_inode(sb);
- static struct backing_dev_info cgroup_backing_dev_info = {
- .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK,
- };
if (inode) {
inode->i_mode = mode;
@@ -1604,6 +1605,10 @@ int __init cgroup_init(void)
int i;
struct proc_dir_entry *entry;
+ err = bdi_init(&cgroup_backing_dev_info);
+ if (err)
+ return err;
+
for (i = 0; i < CGROUP_SUBSYS_COUNT; i++) {
struct cgroup_subsys *ss = subsys[i];
if (!ss->early_init)
@@ -1619,6 +1624,9 @@ int __init cgroup_init(void)
entry->proc_fops = &proc_cgroupstats_operations;
out:
+ if (err)
+ bdi_destroy(&cgroup_backing_dev_info);
+
return err;
}
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
origin.patch
task-containersv11-add-procfs-interface.patch
task-containersv11-add-procfs-interface-containers-bdi-init-hooks.patch
task-containersv11-shared-container-subsystem-group-arrays-avoid-lockdep-warning.patch
task-containersv11-shared-container-subsystem-group-arrays-include-fix.patch
workqueue-debug-flushing-deadlocks-with-lockdep.patch
workqueue-debug-work-related-deadlocks-with-lockdep.patch
lockdep-fix-mismatched-lockdep_depth-curr_chain_hash-checkpatch-fixes.patch
fix-cpusets-update_cpumask.patch
fix-cpusets-update_cpumask-checkpatch-fixes.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html