diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-01-21 10:31:38 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-01-22 10:41:07 +0100 |
commit | e8dae6045882e32a067326f47b7ccd3aaf8814e2 (patch) | |
tree | 3a1bc3a6a6513f94276c6f1bab370c86a2e65f37 /fs/f2fs/dir.c | |
parent | f2fs: call mark_inode_dirty to flush dirty pages (diff) | |
download | linux-e8dae6045882e32a067326f47b7ccd3aaf8814e2.tar.xz linux-e8dae6045882e32a067326f47b7ccd3aaf8814e2.zip |
f2fs: move a branch for code redability
This patch moves a function in f2fs_delete_entry for code readability.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to '')
-rw-r--r-- | fs/f2fs/dir.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c index b2b77ccea82b..2b7c255bcbdf 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)) { |