diff --git a/fs/file.c b/fs/file.c index 3b99457518ef5fc4933ae7d53a7b136af386483c..df17b9e9e67e81781def00c51f4e51280c34da2b 100644 --- a/fs/file.c +++ b/fs/file.c @@ -436,6 +436,9 @@ static struct fdtable *close_files(struct files_struct * files) set >>= 1; } } +#ifdef CONFIG_CGROUP_FILES + files_cgroup_remove(files); +#endif return fdt; }