aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorSteffen Sledz <sledz@dresearch.de>2010-09-27 08:20:26 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-09-28 02:46:30 -0400
commit54dd55a406f6e9cb5ae208f258b907455162e045 (patch)
treea12d91f6ec8fd878e736ba1ad7e01d6558501581 /fs/ubifs
parent2ef13294d29bcfb306e0d360f1b97f37b647b0c0 (diff)
UBIFS: avoid kernel error if ubifs superblock read fails
.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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 4e5bf3fbf782..bb6ed5da2d10 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -2054,8 +2054,8 @@ static int ubifs_get_sb(struct file_system_type *fs_type, int flags,
2054 */ 2054 */
2055 ubi = open_ubi(name, UBI_READONLY); 2055 ubi = open_ubi(name, UBI_READONLY);
2056 if (IS_ERR(ubi)) { 2056 if (IS_ERR(ubi)) {
2057 ubifs_err("cannot open \"%s\", error %d", 2057 dbg_err("cannot open \"%s\", error %d",
2058 name, (int)PTR_ERR(ubi)); 2058 name, (int)PTR_ERR(ubi));
2059 return PTR_ERR(ubi); 2059 return PTR_ERR(ubi);
2060 } 2060 }
2061 ubi_get_volume_info(ubi, &vi); 2061 ubi_get_volume_info(ubi, &vi);