From: Milan Broz Date: Thu, 28 Oct 2010 01:51:30 +0000 (-0600) Subject: loop: Properly clear sysfs in autoclear mode X-Git-Tag: v2.6.37-rc1~75^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51a0bb0c2e614659132fce272c8a1815a12c5c2a;p=pandora-kernel.git loop: Properly clear sysfs in autoclear mode In autoclear mode bdev is NULL but the sysfs entry should be destroyed otherwise this warning appears: WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x82/0x95() sysfs: cannot create duplicate filename '/devices/virtual/block/loop0/loop' Fixes commit ee86273062cbb310665fe49e1f1937d2cf85b0b9 Signed-off-by: Milan Broz Signed-off-by: Jens Axboe --- Reading git-diff-tree failed