linux/fs/f2fs
Chao Yu caf0047e7e f2fs: merge flags in struct f2fs_sb_info
Currently, there are several variables with Boolean type as below:

struct f2fs_sb_info {
...
	int s_dirty;
	bool need_fsck;
	bool s_closing;
...
	bool por_doing;
...
}

For this there are some issues:
1. there are some space of f2fs_sb_info is wasted due to aligning after Boolean
   type variables by compiler.
2. if we continuously add new flag into f2fs_sb_info, structure will be messed
   up.

So in this patch, we try to:
1. switch s_dirty to Boolean type variable since it has two status 0/1.
2. merge s_dirty/need_fsck/s_closing/por_doing variables into s_flag.
3. introduce an enum type which can indicate different states of sbi.
4. use new introduced universal interfaces is_sbi_flag_set/{set,clear}_sbi_flag
   to operate flags for sbi.

After that, above issues will be fixed.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2015-02-11 17:04:38 -08:00
..
acl.c f2fs: fix a bug of inheriting default ACL from parent 2015-02-11 17:04:36 -08:00
acl.h f2fs: avoid deadlock on init_inode_metadata 2014-11-03 16:07:33 -08:00
checkpoint.c f2fs: merge flags in struct f2fs_sb_info 2015-02-11 17:04:38 -08:00
data.c f2fs: merge flags in struct f2fs_sb_info 2015-02-11 17:04:38 -08:00
debug.c f2fs: update memory footprint information 2015-02-11 17:04:31 -08:00
dir.c f2fs: use missing the use of f2fs_kunmap_page 2015-01-09 17:02:22 -08:00
f2fs.h f2fs: merge flags in struct f2fs_sb_info 2015-02-11 17:04:38 -08:00
file.c f2fs: add F2FS_IOC_GETVERSION support 2015-02-11 17:04:35 -08:00
gc.c f2fs: clean up {in,de}create_sleep_time 2015-02-11 17:04:37 -08:00
gc.h f2fs: clean up {in,de}create_sleep_time 2015-02-11 17:04:37 -08:00
hash.c f2fs: fix wrong casting for dentry name 2014-08-29 00:26:50 -07:00
inline.c f2fs: make truncate_inline_date static 2015-02-11 17:04:37 -08:00
inode.c f2fs: get rid of kzalloc in __recover_inline_status 2015-01-09 17:02:27 -08:00
Kconfig f2fs: add f2fs_io_tracer support 2015-01-09 17:02:24 -08:00
Makefile f2fs: add f2fs_io_tracer support 2015-01-09 17:02:24 -08:00
namei.c f2fs: introduce f2fs_dentry_kunmap to clean up 2014-11-23 21:51:53 -08:00
node.c f2fs: merge flags in struct f2fs_sb_info 2015-02-11 17:04:38 -08:00
node.h f2fs: free radix_tree_nodes used by nat_set entries 2015-01-09 17:02:28 -08:00
recovery.c f2fs: merge flags in struct f2fs_sb_info 2015-02-11 17:04:38 -08:00
segment.c f2fs: align direct_io'ed data to section 2015-01-09 17:02:27 -08:00
segment.h f2fs: merge flags in struct f2fs_sb_info 2015-02-11 17:04:38 -08:00
super.c f2fs: merge flags in struct f2fs_sb_info 2015-02-11 17:04:38 -08:00
trace.c f2fs: pids_lock can be static 2015-01-09 17:02:29 -08:00
trace.h f2fs: add f2fs_destroy_trace_ios to free radix tree 2015-01-09 17:02:28 -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