diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-05-07 14:28:52 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-05-31 20:31:50 +0200 |
commit | 1c41e6808e69564bbd44d71687916151b9c63df1 (patch) | |
tree | 0e0b6d0566ebaab2a954f196baad4cd0df99619a /fs/f2fs/super.c | |
parent | Revert "f2fs: add ovp valid_blocks check for bg gc victim to fg_gc" (diff) | |
download | linux-1c41e6808e69564bbd44d71687916151b9c63df1.tar.xz linux-1c41e6808e69564bbd44d71687916151b9c63df1.zip |
f2fs: fix to initialize i_current_depth according to inode type
i_current_depth is used only for directory inode, but its space is
shared with i_gc_failures field used for regular inode, in order to
avoid affecting i_gc_failures' value, this patch fixes to initialize
the union's fields according to inode type.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 7b7ad3eb8d8a..51dca3932e8d 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -830,7 +830,6 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb) /* Initialize f2fs-specific inode info */ atomic_set(&fi->dirty_pages, 0); - fi->i_current_depth = 1; init_rwsem(&fi->i_sem); INIT_LIST_HEAD(&fi->dirty_list); INIT_LIST_HEAD(&fi->gdirty_list); |