Skip to content

Commit c8b459f

Browse files
Lukas Czernertytso
authored andcommitted
ext4: remove unnecessary double parentheses
Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent 029b10c commit c8b459f

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎fs/ext4/extents.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4018,7 +4018,7 @@ ext4_ext_handle_unwritten_extents(handle_t *handle, struct inode *inode,
40184018
allocated, newblock);
40194019

40204020
/* get_block() before submit the IO, split the extent */
4021-
if ((flags & EXT4_GET_BLOCKS_PRE_IO)) {
4021+
if (flags & EXT4_GET_BLOCKS_PRE_IO) {
40224022
ret = ext4_split_convert_extents(handle, inode, map,
40234023
path, flags | EXT4_GET_BLOCKS_CONVERT);
40244024
if (ret <= 0)
@@ -4036,7 +4036,7 @@ ext4_ext_handle_unwritten_extents(handle_t *handle, struct inode *inode,
40364036
goto out;
40374037
}
40384038
/* IO end_io complete, convert the filled extent to written */
4039-
if ((flags & EXT4_GET_BLOCKS_CONVERT)) {
4039+
if (flags & EXT4_GET_BLOCKS_CONVERT) {
40404040
ret = ext4_convert_unwritten_extents_endio(handle, inode, map,
40414041
path);
40424042
if (ret >= 0) {
@@ -4475,7 +4475,7 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
44754475
* For non asycn direct IO case, flag the inode state
44764476
* that we need to perform conversion when IO is done.
44774477
*/
4478-
if ((flags & EXT4_GET_BLOCKS_PRE_IO))
4478+
if (flags & EXT4_GET_BLOCKS_PRE_IO)
44794479
set_unwritten = 1;
44804480
}
44814481

‎fs/ext4/inode.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ static void ext4_map_blocks_es_recheck(handle_t *handle,
443443
* could be converted.
444444
*/
445445
if (!(flags & EXT4_GET_BLOCKS_NO_LOCK))
446-
down_read((&EXT4_I(inode)->i_data_sem));
446+
down_read(&EXT4_I(inode)->i_data_sem);
447447
if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
448448
retval = ext4_ext_map_blocks(handle, inode, map, flags &
449449
EXT4_GET_BLOCKS_KEEP_SIZE);
@@ -555,7 +555,7 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode,
555555
* file system block.
556556
*/
557557
if (!(flags & EXT4_GET_BLOCKS_NO_LOCK))
558-
down_read((&EXT4_I(inode)->i_data_sem));
558+
down_read(&EXT4_I(inode)->i_data_sem);
559559
if (ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS)) {
560560
retval = ext4_ext_map_blocks(handle, inode, map, flags &
561561
EXT4_GET_BLOCKS_KEEP_SIZE);
@@ -627,7 +627,7 @@ int ext4_map_blocks(handle_t *handle, struct inode *inode,
627627
* the write lock of i_data_sem, and call get_blocks()
628628
* with create == 1 flag.
629629
*/
630-
down_write((&EXT4_I(inode)->i_data_sem));
630+
down_write(&EXT4_I(inode)->i_data_sem);
631631

632632
/*
633633
* if the caller is from delayed allocation writeout path
@@ -1540,7 +1540,7 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock,
15401540
ext4_es_lru_add(inode);
15411541
if (ext4_es_is_hole(&es)) {
15421542
retval = 0;
1543-
down_read((&EXT4_I(inode)->i_data_sem));
1543+
down_read(&EXT4_I(inode)->i_data_sem);
15441544
goto add_delayed;
15451545
}
15461546

@@ -1577,7 +1577,7 @@ static int ext4_da_map_blocks(struct inode *inode, sector_t iblock,
15771577
* Try to see if we can get the block without requesting a new
15781578
* file system block.
15791579
*/
1580-
down_read((&EXT4_I(inode)->i_data_sem));
1580+
down_read(&EXT4_I(inode)->i_data_sem);
15811581
if (ext4_has_inline_data(inode)) {
15821582
/*
15831583
* We will soon create blocks for this page, and let

‎fs/ext4/migrate.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ int ext4_ext_migrate(struct inode *inode)
505505
* with i_data_sem held to prevent racing with block
506506
* allocation.
507507
*/
508-
down_read((&EXT4_I(inode)->i_data_sem));
508+
down_read(&EXT4_I(inode)->i_data_sem);
509509
ext4_set_inode_state(inode, EXT4_STATE_EXT_MIGRATE);
510510
up_read((&EXT4_I(inode)->i_data_sem));
511511

‎fs/ext4/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@ static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es,
19041904
if (!(sbi->s_mount_state & EXT4_VALID_FS))
19051905
ext4_msg(sb, KERN_WARNING, "warning: mounting unchecked fs, "
19061906
"running e2fsck is recommended");
1907-
else if ((sbi->s_mount_state & EXT4_ERROR_FS))
1907+
else if (sbi->s_mount_state & EXT4_ERROR_FS)
19081908
ext4_msg(sb, KERN_WARNING,
19091909
"warning: mounting fs with errors, "
19101910
"running e2fsck is recommended");

‎fs/ext4/xattr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ ext4_xattr_block_set(handle_t *handle, struct inode *inode,
899899
* take i_data_sem because we will test
900900
* i_delalloc_reserved_flag in ext4_mb_new_blocks
901901
*/
902-
down_read((&EXT4_I(inode)->i_data_sem));
902+
down_read(&EXT4_I(inode)->i_data_sem);
903903
block = ext4_new_meta_blocks(handle, inode, goal, 0,
904904
NULL, &error);
905905
up_read((&EXT4_I(inode)->i_data_sem));

0 commit comments

Comments
 (0)