summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/inline.c
diff options
context:
space:
mode:
authorChao Yu2014-12-29 08:56:18 +0100
committerJaegeuk Kim2015-01-10 02:02:26 +0100
commit062920734c0de9dd4f0a9bdc36fdcabc2751eb34 (patch)
tree98d5a6d3813a539205b40209d5e9a34a22e0d2aa /fs/f2fs/inline.c
parentf2fs: cleanup parameters for trace_f2fs_submit_{read_,write_,page_,page_m}bio... (diff)
downloadkernel-qcow2-linux-062920734c0de9dd4f0a9bdc36fdcabc2751eb34.tar.gz
kernel-qcow2-linux-062920734c0de9dd4f0a9bdc36fdcabc2751eb34.tar.xz
kernel-qcow2-linux-062920734c0de9dd4f0a9bdc36fdcabc2751eb34.zip
f2fs: reuse inode_entry_slab in gc procedure for using slab more effectively
There are two slab cache inode_entry_slab and winode_slab using the same structure as below: struct dir_inode_entry { struct list_head list; /* list head */ struct inode *inode; /* vfs inode pointer */ }; struct inode_entry { struct list_head list; struct inode *inode; }; It's a little waste that the two cache can not share their memory space for each other. So in this patch we remove one redundant winode_slab slab cache, then use more universal name struct inode_entry as remaining data structure name of slab, finally we reuse the inode_entry_slab to store dirty dir item and gc item for more effective. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/inline.c')
0 files changed, 0 insertions, 0 deletions