Skip to content

Commit 103c0fb

Browse files
committed
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>
1 parent 1167423 commit 103c0fb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

fs/befs/super.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
* of the befs superblock
1919
*/
2020
int
21-
befs_load_sb(struct super_block *sb, befs_super_block * disk_sb)
21+
befs_load_sb(struct super_block *sb, befs_super_block *disk_sb)
2222
{
2323
struct befs_sb_info *befs_sb = BEFS_SB(sb);
2424

2525
/* Check the byte order of the filesystem */
2626
if (disk_sb->fs_byte_order == BEFS_BYTEORDER_NATIVE_LE)
27-
befs_sb->byte_order = BEFS_BYTESEX_LE;
27+
befs_sb->byte_order = BEFS_BYTESEX_LE;
2828
else if (disk_sb->fs_byte_order == BEFS_BYTEORDER_NATIVE_BE)
29-
befs_sb->byte_order = BEFS_BYTESEX_BE;
29+
befs_sb->byte_order = BEFS_BYTESEX_BE;
3030

3131
befs_sb->magic1 = fs32_to_cpu(sb, disk_sb->magic1);
3232
befs_sb->magic2 = fs32_to_cpu(sb, disk_sb->magic2);
@@ -82,7 +82,7 @@ befs_check_sb(struct super_block *sb)
8282
}
8383

8484
if (befs_sb->block_size > PAGE_SIZE) {
85-
befs_error(sb, "blocksize(%u) cannot be larger"
85+
befs_error(sb, "blocksize(%u) cannot be larger "
8686
"than system pagesize(%lu)", befs_sb->block_size,
8787
PAGE_SIZE);
8888
return BEFS_ERR;
@@ -106,10 +106,11 @@ befs_check_sb(struct super_block *sb)
106106
if ((1 << befs_sb->ag_shift) != befs_sb->blocks_per_ag)
107107
befs_error(sb, "ag_shift disagrees with blocks_per_ag.");
108108

109-
if (befs_sb->log_start != befs_sb->log_end || befs_sb->flags == BEFS_DIRTY) {
109+
if (befs_sb->log_start != befs_sb->log_end ||
110+
befs_sb->flags == BEFS_DIRTY) {
110111
befs_error(sb, "Filesystem not clean! There are blocks in the "
111-
"journal. You must boot into BeOS and mount this volume "
112-
"to make it clean.");
112+
"journal. You must boot into BeOS and mount this "
113+
"volume to make it clean.");
113114
return BEFS_ERR;
114115
}
115116

0 commit comments

Comments
 (0)