Skip to content

Commit

Permalink
f2fs: move a branch for code redability
Browse files Browse the repository at this point in the history
This patch moves a function in f2fs_delete_entry for code readability.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
  • Loading branch information
Jaegeuk Kim committed Jan 22, 2014
1 parent a18ff06 commit e8dae60
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fs/f2fs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,11 @@ void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page,

dir->i_ctime = dir->i_mtime = CURRENT_TIME;

if (inode && S_ISDIR(inode->i_mode)) {
drop_nlink(dir);
update_inode_page(dir);
}

if (inode) {
if (S_ISDIR(inode->i_mode)) {
drop_nlink(dir);
update_inode_page(dir);
}
inode->i_ctime = CURRENT_TIME;
drop_nlink(inode);
if (S_ISDIR(inode->i_mode)) {
Expand Down

0 comments on commit e8dae60

Please sign in to comment.