mirror of
https://gitee.com/bianbu-linux/linux-6.6-fh
synced 2025-04-25 17:57:06 -04:00
befs: fix style issues in super.c
Fixing the following checkpatch.pl error: ERROR: "foo * bar" should be "foo *bar" +befs_load_sb(struct super_block *sb, befs_super_block * disk_sb) And the following warnings: WARNING: suspect code indent for conditional statements (8, 12) + if (disk_sb->fs_byte_order == BEFS_BYTEORDER_NATIVE_LE) + befs_sb->byte_order = BEFS_BYTESEX_LE; WARNING: suspect code indent for conditional statements (8, 12) + else if (disk_sb->fs_byte_order == BEFS_BYTEORDER_NATIVE_BE) + befs_sb->byte_order = BEFS_BYTESEX_BE; WARNING: break quoted strings at a space character + befs_error(sb, "blocksize(%u) cannot be larger" + "than system pagesize(%lu)", befs_sb->block_size, WARNING: line over 80 characters + if (befs_sb->log_start != befs_sb->log_end || befs_sb->flags == BEFS_DIRTY) { Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com> Signed-off-by: Salah Triki <salah.triki@gmail.com>
This commit is contained in:
parent
11674239f9
commit
103c0fb340
1 changed files with 8 additions and 7 deletions
|
@ -106,10 +106,11 @@ befs_check_sb(struct super_block *sb)
|
||||||
if ((1 << befs_sb->ag_shift) != befs_sb->blocks_per_ag)
|
if ((1 << befs_sb->ag_shift) != befs_sb->blocks_per_ag)
|
||||||
befs_error(sb, "ag_shift disagrees with blocks_per_ag.");
|
befs_error(sb, "ag_shift disagrees with blocks_per_ag.");
|
||||||
|
|
||||||
if (befs_sb->log_start != befs_sb->log_end || befs_sb->flags == BEFS_DIRTY) {
|
if (befs_sb->log_start != befs_sb->log_end ||
|
||||||
|
befs_sb->flags == BEFS_DIRTY) {
|
||||||
befs_error(sb, "Filesystem not clean! There are blocks in the "
|
befs_error(sb, "Filesystem not clean! There are blocks in the "
|
||||||
"journal. You must boot into BeOS and mount this volume "
|
"journal. You must boot into BeOS and mount this "
|
||||||
"to make it clean.");
|
"volume to make it clean.");
|
||||||
return BEFS_ERR;
|
return BEFS_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue