Skip to content

Commit

Permalink
reiserfs: clean up several indentation issues
Browse files Browse the repository at this point in the history
There are several places where code is indented incorrectly. Fix these.

Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Colin Ian King authored and torvalds committed Apr 7, 2020
1 parent 0bd476e commit 5404e7e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion fs/reiserfs/do_balan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] */
Expand Down
11 changes: 6 additions & 5 deletions fs/reiserfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
10 changes: 5 additions & 5 deletions fs/reiserfs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 5404e7e

Please sign in to comment.