Skip to content

Commit

Permalink
ext4: fix coding style in file.c
Browse files Browse the repository at this point in the history
Fixed a few coding style issues in file.c

Signed-off-by: Dio Putra <dioput12@gmail.com>
Link: https://lore.kernel.org/r/239fcd8f-d33f-8621-9e82-0416dd3f9c94@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
Dio Putra authored and Theodore Ts'o committed Aug 6, 2020
1 parent e0f49d2 commit e030a28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/ext4/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ static int ext4_release_file(struct inode *inode, struct file *filp)
/* if we are the last writer on the inode, drop the block reservation */
if ((filp->f_mode & FMODE_WRITE) &&
(atomic_read(&inode->i_writecount) == 1) &&
!EXT4_I(inode)->i_reserved_data_blocks)
{
!EXT4_I(inode)->i_reserved_data_blocks) {
down_write(&EXT4_I(inode)->i_data_sem);
ext4_discard_preallocations(inode);
up_write(&EXT4_I(inode)->i_data_sem);
Expand Down Expand Up @@ -810,7 +809,7 @@ static int ext4_sample_last_mounted(struct super_block *sb,
return err;
}

static int ext4_file_open(struct inode * inode, struct file * filp)
static int ext4_file_open(struct inode *inode, struct file *filp)
{
int ret;

Expand Down

0 comments on commit e030a28

Please sign in to comment.