aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/super.c
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2010-04-27 07:45:31 -0400
committerJoern Engel <joern@logfs.org>2010-05-01 12:02:20 -0400
commitad342631f13d40aa787b9e5aaf4800f10d6c3647 (patch)
tree9881a9c68736cff0ea4d25dc1dfc09162bf8ef36 /fs/logfs/super.c
parent2e531fa0d0868f5114c2b3a782ab02eb9d6f914d (diff)
logfs: Return -EINVAL if filesystem image doesn't match
Signed-off-by: Joern Engel <joern@logfs.org>
Diffstat (limited to 'fs/logfs/super.c')
-rw-r--r--fs/logfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/super.c b/fs/logfs/super.c
index 7fc4625c6f02..edd99487f93a 100644
--- a/fs/logfs/super.c
+++ b/fs/logfs/super.c
@@ -413,7 +413,7 @@ static int __logfs_read_sb(struct super_block *sb)
413 413
414 page = find_super_block(sb); 414 page = find_super_block(sb);
415 if (!page) 415 if (!page)
416 return -EIO; 416 return -EINVAL;
417 417
418 ds = page_address(page); 418 ds = page_address(page);
419 super->s_size = be64_to_cpu(ds->ds_filesystem_size); 419 super->s_size = be64_to_cpu(ds->ds_filesystem_size);