X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fsuper.c;h=8d99a7b948ff087380ca2b2d5988885c22360553;hb=5dc806cc889ffa876e7a6cea2787acb3bc02240f;hp=954aeb80e202be0a40fc42eeca465c033ab1fc9a;hpb=310b7cec8ea32dcd4e9978423717ce78dd89d45d;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/super.c b/fs/super.c index 954aeb80e202..8d99a7b948ff 100644 --- a/fs/super.c +++ b/fs/super.c @@ -415,6 +415,7 @@ void generic_shutdown_super(struct super_block *sb) sb->s_flags &= ~MS_ACTIVE; fsnotify_unmount_inodes(sb); + cgroup_writeback_umount(); evict_inodes(sb); @@ -789,7 +790,7 @@ static void do_emergency_remount(struct work_struct *work) struct super_block *sb, *p = NULL; spin_lock(&sb_lock); - list_for_each_entry(sb, &super_blocks, s_list) { + list_for_each_entry_reverse(sb, &super_blocks, s_list) { if (hlist_unhashed(&sb->s_instances)) continue; sb->s_count++;