summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2013-01-12 14:41:33 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-01-14 09:43:27 +0900
commit163799872b65b0cbf0091d82971233cc3d2425d3 (patch)
tree0e0065b85c6d7fa5287bb6ab660893c934054b86 /fs/f2fs
parentff9234ad4e974768455071c91bd76402e4af8a28 (diff)
downloadtalos-obmc-linux-163799872b65b0cbf0091d82971233cc3d2425d3.tar.gz
talos-obmc-linux-163799872b65b0cbf0091d82971233cc3d2425d3.zip
f2fs: avoid redundant time update for parent directory in f2fs_delete_entry
In call to f2fs_delete_entry, 'dir' time modification code is put at two places. So, remove the redundant code for timing update. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 951ed52748f6..989980e16d0b 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -503,7 +503,7 @@ void f2fs_delete_entry(struct f2fs_dir_entry *dentry, struct page *page,
}
if (inode) {
- inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME;
+ inode->i_ctime = CURRENT_TIME;
drop_nlink(inode);
if (S_ISDIR(inode->i_mode)) {
drop_nlink(inode);
OpenPOWER on IntegriCloud