UBIFS: avoid kernel error if ubifs superblock read fails
authorSteffen Sledz <sledz@dresearch.de>
Mon, 27 Sep 2010 12:20:26 +0000 (14:20 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 28 Sep 2010 06:46:30 +0000 (09:46 +0300)
.get_sb is called on mounts with automatic fs detection too, so this
function should print an error if it cannot read the superblock in
debug mode only (new behaviour conforms the other fs types)

Signed-off-by: Steffen Sledz <sledz@dresearch.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

fs/ubifs/super.c

index 4e5bf3f..bb6ed5d 100644 (file)
@@ -2054,8 +2054,8 @@ static int ubifs_get_sb(struct file_system_type *fs_type, int flags,
         */
        ubi = open_ubi(name, UBI_READONLY);
        if (IS_ERR(ubi)) {
-               ubifs_err("cannot open \"%s\", error %d",
-                         name, (int)PTR_ERR(ubi));
+               dbg_err("cannot open \"%s\", error %d",
+                       name, (int)PTR_ERR(ubi));
                return PTR_ERR(ubi);
        }
        ubi_get_volume_info(ubi, &vi);