linux/fs/f2fs
Chao Yu 5c27f4ee44 f2fs: merge two uchar variable in struct node_info to reduce memory cost
This patch moves one member of struct nat_entry: _flag_ to struct node_info,
so _version_ in struct node_info and _flag_ which are unsigned char type will
merge to one 32-bit space in register/memory. So the size of nat_entry will be
reduced from 28 bytes to 24 bytes (for 64-bit machine, reduce its size from 40
bytes to 32 bytes) and then slab memory using by f2fs will be reduced.

changes from v2:
 o update description of memory usage gain for 64-bit machine suggested by
   Changman Lee.
changes from v1:
 o introduce inline copy_node_info() to copy valid data from node info suggested
   by Jaegeuk Kim, it can avoid bug.

Reviewed-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2015-01-09 17:02:23 -08:00
..
acl.c f2fs: remove the redundant function cond_clear_inode_flag 2014-11-03 16:07:36 -08:00
acl.h f2fs: avoid deadlock on init_inode_metadata 2014-11-03 16:07:33 -08:00
checkpoint.c f2fs: readahead contiguous current summary blocks in checkpoint 2015-01-09 17:02:23 -08:00
data.c f2fs: remove unnecessary call to invalidate inmemory pages 2015-01-09 17:02:22 -08:00
debug.c f2fs: use atomic for counting inode with inline_{dir,inode} flag 2014-12-08 10:54:59 -08:00
dir.c f2fs: use missing the use of f2fs_kunmap_page 2015-01-09 17:02:22 -08:00
f2fs.h f2fs: readahead contiguous current summary blocks in checkpoint 2015-01-09 17:02:23 -08:00
file.c f2fs: change atomic and volatile write policies 2015-01-09 17:02:22 -08:00
gc.c f2fs: do retry operations with cond_resched 2014-12-08 10:35:05 -08:00
gc.h f2fs: more fast lookup for gc_inode list 2014-12-02 11:02:50 -08:00
hash.c f2fs: fix wrong casting for dentry name 2014-08-29 00:26:50 -07:00
inline.c f2fs: fix to recover converted inline_data 2014-11-25 18:08:00 -08:00
inode.c f2fs: change atomic and volatile write policies 2015-01-09 17:02:22 -08:00
Kconfig f2fs: fix typo 2014-08-19 10:01:33 -07:00
Makefile f2fs: key functions to handle inline data 2013-12-26 20:40:09 +09:00
namei.c f2fs: introduce f2fs_dentry_kunmap to clean up 2014-11-23 21:51:53 -08:00
node.c f2fs: merge two uchar variable in struct node_info to reduce memory cost 2015-01-09 17:02:23 -08:00
node.h f2fs: merge two uchar variable in struct node_info to reduce memory cost 2015-01-09 17:02:23 -08:00
recovery.c f2fs: avoid to ra unneeded blocks in recover flow 2014-12-08 14:19:09 -08:00
segment.c f2fs: readahead contiguous current summary blocks in checkpoint 2015-01-09 17:02:23 -08:00
segment.h f2fs: do not skip any writes under memory pressure 2014-11-10 06:51:38 -08:00
super.c f2fs: remove unneeded check code with option in f2fs_remount 2014-11-19 22:49:31 -08:00
xattr.c f2fs: avoid deadlock on init_inode_metadata 2014-11-03 16:07:33 -08:00
xattr.h f2fs: avoid deadlock on init_inode_metadata 2014-11-03 16:07:33 -08:00