From: Jaegeuk Kim Date: Tue, 21 Jan 2014 09:31:38 +0000 (+0900) Subject: f2fs: move a branch for code redability X-Git-Tag: upstream/snapshot3+hdmi~3600^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8dae6045882e32a067326f47b7ccd3aaf8814e2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git f2fs: move a branch for code redability This patch moves a function in f2fs_delete_entry for code readability. Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index b2b77cc..2b7c255 100644 --- a/fs/f2fs/dir.c +++ b/fs/f2fs/dir.c @@ -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)) {