summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDio Putra <dioput12@gmail.com>2020-06-14 06:45:44 +0200
committerTheodore Ts'o <tytso@mit.edu>2020-08-06 06:11:15 +0200
commite030a28810daf48b43ef6e92fa502ae410b12c8c (patch)
tree99b1ee9bec204ca4925424e45ff168223e81aad6 /fs
parentext4: delete unnecessary checks before brelse() (diff)
downloadlinux-e030a28810daf48b43ef6e92fa502ae410b12c8c.tar.xz
linux-e030a28810daf48b43ef6e92fa502ae410b12c8c.zip
ext4: fix coding style in file.c
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 2a01e31a032c..453cafecf5cc 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -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);
@@ -810,7 +809,7 @@ out:
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;