Commit e030a288 authored by Dio Putra's avatar Dio Putra Committed by Theodore Ts'o

ext4: fix coding style in file.c

Fixed a few coding style issues in file.c
Signed-off-by: default avatarDio Putra <dioput12@gmail.com>
Link: https://lore.kernel.org/r/239fcd8f-d33f-8621-9e82-0416dd3f9c94@gmail.comSigned-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent e0f49d27
...@@ -145,8 +145,7 @@ static int ext4_release_file(struct inode *inode, struct file *filp) ...@@ -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 we are the last writer on the inode, drop the block reservation */
if ((filp->f_mode & FMODE_WRITE) && if ((filp->f_mode & FMODE_WRITE) &&
(atomic_read(&inode->i_writecount) == 1) && (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); down_write(&EXT4_I(inode)->i_data_sem);
ext4_discard_preallocations(inode); ext4_discard_preallocations(inode);
up_write(&EXT4_I(inode)->i_data_sem); up_write(&EXT4_I(inode)->i_data_sem);
...@@ -810,7 +809,7 @@ static int ext4_sample_last_mounted(struct super_block *sb, ...@@ -810,7 +809,7 @@ static int ext4_sample_last_mounted(struct super_block *sb,
return err; 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; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment