reiserfs: clean up several indentation issues
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Apr 2020 03:11:46 +0000 (20:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:44 +0000 (10:43 -0700)
There are several places where code is indented incorrectly. Fix these.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200325135018.113431-1-colin.king@canonical.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/do_balan.c
fs/reiserfs/ioctl.c
fs/reiserfs/namei.c

index 4075e41408b478227b2a45ea34264b56560e5722..5129efc6f2e6a0fa549fd7a7791e11bf195ec368 100644 (file)
@@ -842,7 +842,7 @@ static void balance_leaf_paste_right_whole(struct tree_balance *tb,
        struct item_head *pasted;
        struct buffer_info bi;
 
-                                                       buffer_info_init_right(tb, &bi);
+       buffer_info_init_right(tb, &bi);
        leaf_shift_right(tb, tb->rnum[0], tb->rbytes);
 
        /* append item in R[0] */
index 45e1a5d11af39a0b913934ecbefbf01c4f6336f3..adb21bea3d600e7f079d4868d44279c39904c99f 100644 (file)
@@ -184,11 +184,12 @@ int reiserfs_unpack(struct inode *inode, struct file *filp)
        }
 
        /* we need to make sure nobody is changing the file size beneath us */
-{
-       int depth = reiserfs_write_unlock_nested(inode->i_sb);
-       inode_lock(inode);
-       reiserfs_write_lock_nested(inode->i_sb, depth);
-}
+       {
+               int depth = reiserfs_write_unlock_nested(inode->i_sb);
+
+               inode_lock(inode);
+               reiserfs_write_lock_nested(inode->i_sb, depth);
+       }
 
        reiserfs_write_lock(inode->i_sb);
 
index 959a066b7bb07f63e111a5990fa9b824ed83da43..1594687582f0cd47ad52c16a6bbd729af89a46bf 100644 (file)
@@ -838,10 +838,10 @@ static int reiserfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode
         */
        INC_DIR_INODE_NLINK(dir)
 
-           retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */ ,
-                                       old_format_only(dir->i_sb) ?
-                                       EMPTY_DIR_SIZE_V1 : EMPTY_DIR_SIZE,
-                                       dentry, inode, &security);
+       retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */,
+                                   old_format_only(dir->i_sb) ?
+                                   EMPTY_DIR_SIZE_V1 : EMPTY_DIR_SIZE,
+                                   dentry, inode, &security);
        if (retval) {
                DEC_DIR_INODE_NLINK(dir)
                goto out_failed;
@@ -967,7 +967,7 @@ static int reiserfs_rmdir(struct inode *dir, struct dentry *dentry)
        reiserfs_update_sd(&th, inode);
 
        DEC_DIR_INODE_NLINK(dir)
-           dir->i_size -= (DEH_SIZE + de.de_entrylen);
+       dir->i_size -= (DEH_SIZE + de.de_entrylen);
        reiserfs_update_sd(&th, dir);
 
        /* prevent empty directory from getting lost */