f2fs: remove inmem radix tree
authorChao Yu <chao2.yu@samsung.com>
Fri, 7 Aug 2015 10:42:09 +0000 (18:42 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 Aug 2015 18:31:14 +0000 (11:31 -0700)
commitdecd36b6c43a1051bab97571cf4c0ec8450268b0
tree36a674f8aa2ca55e203f2c01eedb6c28a060cb00
parentc15e8599ffe1b4f866691424d07037c467c23a2f
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>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/segment.h
fs/f2fs/super.c
This page took 0.025061 seconds and 5 git commands to generate.