f2fs: add superblock and major in-memory structure
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 28 Nov 2012 04:37:31 +0000 (13:37 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 11 Dec 2012 04:43:40 +0000 (13:43 +0900)
commit39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5
tree45c7028592e7520eb94afc8cd31f757f6a2c7553
parentdd31866b0d55c9b70722ebad6ccd643223d9269e
f2fs: add superblock and major in-memory structure

This adds the following major in-memory structures in f2fs.

- f2fs_sb_info:
  contains f2fs-specific information, two special inode pointers for node and
  meta address spaces, and orphan inode management.

- f2fs_inode_info:
  contains vfs_inode and other fs-specific information.

- f2fs_nm_info:
  contains node manager information such as NAT entry cache, free nid list,
  and NAT page management.

- f2fs_node_info:
  represents a node as node id, inode number, block address, and its version.

- f2fs_sm_info:
  contains segment manager information such as SIT entry cache, free segment
  map, current active logs, dirty segment management, and segment utilization.
  The specific structures are sit_info, free_segmap_info, dirty_seglist_info,
  curseg_info.

In addition, add F2FS_SUPER_MAGIC in magic.h.

Signed-off-by: Chul Lee <chur.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h [new file with mode: 0644]
fs/f2fs/node.h [new file with mode: 0644]
fs/f2fs/segment.h [new file with mode: 0644]
include/uapi/linux/magic.h