diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-08-07 18:42:09 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-08-11 11:31:14 -0700 |
commit | decd36b6c43a1051bab97571cf4c0ec8450268b0 (patch) | |
tree | 36a674f8aa2ca55e203f2c01eedb6c28a060cb00 /fs/f2fs/super.c | |
parent | c15e8599ffe1b4f866691424d07037c467c23a2f (diff) | |
download | op-kernel-dev-decd36b6c43a1051bab97571cf4c0ec8450268b0.zip op-kernel-dev-decd36b6c43a1051bab97571cf4c0ec8450268b0.tar.gz |
f2fs: remove inmem radix tree
Previously, we use radix tree to index all registered page entries for
atomic file, but now we only use radix tree to see whether current page
is indexed or not, since the other user of radix tree is gone in commit
042b7816aaeb ("f2fs: remove unnecessary call to invalidate inmemory pages").
So in this patch, we try to use one more efficient way:
Introducing a macro ATOMIC_WRITTEN_PAGE, and setting it as page private
value to indicate page indexing status. By using this way, we can save
memory and lookup time.
Signed-off-by: Chao Yu <chao2.yu@samsung.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 12eb69d..a79b6b5 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -423,7 +423,6 @@ static struct inode *f2fs_alloc_inode(struct super_block *sb) fi->i_current_depth = 1; fi->i_advise = 0; init_rwsem(&fi->i_sem); - INIT_RADIX_TREE(&fi->inmem_root, GFP_NOFS); INIT_LIST_HEAD(&fi->inmem_pages); mutex_init(&fi->inmem_lock); |