projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a18ff06
)
f2fs: move a branch for code redability
author
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Tue, 21 Jan 2014 09:31:38 +0000
(18:31 +0900)
committer
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Wed, 22 Jan 2014 09:41:07 +0000
(18:41 +0900)
This patch moves a function in f2fs_delete_entry for code readability.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/dir.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/dir.c
b/fs/f2fs/dir.c
index b2b77ccea82b9eb64a47928d2a2c94d70e77a994..2b7c255bcbdfffa259a5d0a45b9207626e455d79 100644
(file)
--- 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)) {