diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-03-20 18:08:30 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-03-28 06:10:29 +0300 |
commit | 780de47cf6cb5f524cd98ec8ffbffc3da5696e17 (patch) | |
tree | 2ce035d06e9b6cf3adadbf56285ed6e43b652db7 /fs/f2fs/node.h | |
parent | df033caf51c01edf3d2bfc61b41a9f1e566743ed (diff) | |
download | linux-780de47cf6cb5f524cd98ec8ffbffc3da5696e17.tar.xz |
f2fs: don't track new nat entry in nat set
Nat entry set is used only in checkpoint(), and during checkpoint() we
won't flush new nat entry with unallocated address, so we don't need to
add new nat entry into nat set, then nat_entry_set::entry_cnt can
indicate actual entry count we need to flush in checkpoint().
Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.h')
-rw-r--r-- | fs/f2fs/node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index e593b4d78be2..b95e49e4a928 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -44,6 +44,7 @@ enum { HAS_FSYNCED_INODE, /* is the inode fsynced before? */ HAS_LAST_FSYNC, /* has the latest node fsync mark? */ IS_DIRTY, /* this nat entry is dirty? */ + IS_PREALLOC, /* nat entry is preallocated */ }; /* |