ext4: fix #11321: create /proc/ext4/*/stats more carefully
commit43b7c32ff29ffbdc1163919c084938c8634ddcfb
authorAlexey Dobriyan <adobriyan@gmail.com>
Sun, 16 Nov 2008 16:05:22 +0000 (16 11:05 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:37 +0000 (5 10:55 -0800)
tree85091c1cce451e9c761ae93f893ed9e1120e5924
parent64f7922bb38d90a2e5124613df604a0fbc5a8f53
ext4: fix #11321: create /proc/ext4/*/stats more carefully

(cherry picked from commit 899fc1a4cf404747de2666534d508804597ee22f)

ext4 creates per-suberblock directory in /proc/ext4/ . Name used as
basis is taken from bdevname, which, surprise, can contain slash.

However, proc while allowing to use proc_create("a/b", parent) form of
PDE creation, assumes that parent/a was already created.

bdevname in question is 'cciss/c0d0p9', directory is not created and all
this stuff goes directly into /proc (which is real bug).

Warning comes when _second_ partition is mounted.

http://bugzilla.kernel.org/show_bug.cgi?id=11321

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/mballoc.c