[PATCH 15/16] f2fs: add recovery routines for roll-forward

2012-10-05 Thread 김재극
This adds roll-forward routines to recover fsynced data. - F2FS uses basically roll-back model with checkpointing. - In order to implement fsync(), there are two approaches as follows. 1. A roll-back model with checkpointing at every fsync() : This is a naive method, but suffers from very low

[PATCH 16/16] f2fs: update Kconfig and Makefile

2012-10-05 Thread 김재극
This adds Makefile and Kconfig for f2fs, and updates Makefile and Kconfig files in the fs directory. Signed-off-by: Jaegeuk Kim --- fs/Kconfig |1 + fs/Makefile |1 + fs/f2fs/Kconfig | 55 ++ fs/f2fs/Makefile |6

[PATCH 14/16] f2fs: add garbage collection functions

2012-10-05 Thread 김재극
This adds on-demand and background cleaning functions. - The basic background cleaning policy is trying to do cleaning jobs as much as possible whenever the system is idle. Once the background cleaning is done, the cleaner sleeps an amount of time not to interfere with VFS calls. The time

[PATCH 13/16] f2fs: add xattr and acl functionalities

2012-10-05 Thread 김재극
This implements xattr and acl functionalities. - F2FS uses a node page to contain use extended attributes. Signed-off-by: Changman Lee Signed-off-by: Jaegeuk Kim --- fs/f2fs/acl.c | 402 +++ fs/f2fs/acl.h | 57

[PATCH 12/16] f2fs: add core directory operations

2012-10-05 Thread 김재극
This adds core functions to find, add, delete, and link dentries. Signed-off-by: Jaegeuk Kim --- fs/f2fs/dir.c | 657 fs/f2fs/hash.c | 98 + 2 files changed, 755 insertions(+) create mode 100644 fs/f2fs/dir.c create mode

[PATCH 09/16] f2fs: add address space operations for data

2012-10-05 Thread 김재극
This adds address space operations for data. - F2FS supports readpages(), writepages(), and direct_IO(). - Because of out-of-place writes, f2fs_direct_IO() does not write data in place. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 700

[PATCH 05/16] f2fs: add checkpoint operations

2012-10-05 Thread 김재극
This adds functions required by the checkpoint operations. Basically, f2fs adopts a roll-back model with checkpoint blocks written in the CP area. The checkpoint procedure includes as follows. - write_checkpoint() 1. block_operations() freezes VFS calls. 2. submit cached bios. 3.

[PATCH 02/16] f2fs: add on-disk layout

2012-10-05 Thread 김재극
This adds a header file describing the on-disk layout of f2fs. Signed-off-by: Changman Lee Signed-off-by: Chul Lee Signed-off-by: Jaegeuk Kim --- include/linux/f2fs_fs.h | 359 +++ 1 file changed, 359 insertions(+) create mode 100644

[PATCH 01/16] f2fs: add document

2012-10-05 Thread 김재극
This adds a document describing the mount options, proc entries, usage, and design of Flash-Friendly File System, namely F2FS. Signed-off-by: Jaegeuk Kim --- Documentation/filesystems/00-INDEX |2 + Documentation/filesystems/f2fs.txt | 314 2 files

[PATCH 01/16] f2fs: add document

2012-10-05 Thread 김재극
This adds a document describing the mount options, proc entries, usage, and design of Flash-Friendly File System, namely F2FS. Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- Documentation/filesystems/00-INDEX |2 + Documentation/filesystems/f2fs.txt | 314

[PATCH 02/16] f2fs: add on-disk layout

2012-10-05 Thread 김재극
This adds a header file describing the on-disk layout of f2fs. Signed-off-by: Changman Lee cm224@samsung.com Signed-off-by: Chul Lee chur@samsung.com Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- include/linux/f2fs_fs.h | 359 +++ 1

[PATCH 05/16] f2fs: add checkpoint operations

2012-10-05 Thread 김재극
This adds functions required by the checkpoint operations. Basically, f2fs adopts a roll-back model with checkpoint blocks written in the CP area. The checkpoint procedure includes as follows. - write_checkpoint() 1. block_operations() freezes VFS calls. 2. submit cached bios. 3.

[PATCH 09/16] f2fs: add address space operations for data

2012-10-05 Thread 김재극
This adds address space operations for data. - F2FS supports readpages(), writepages(), and direct_IO(). - Because of out-of-place writes, f2fs_direct_IO() does not write data in place. Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/f2fs/data.c | 700

[PATCH 12/16] f2fs: add core directory operations

2012-10-05 Thread 김재극
This adds core functions to find, add, delete, and link dentries. Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/f2fs/dir.c | 657 fs/f2fs/hash.c | 98 + 2 files changed, 755 insertions(+) create mode 100644

[PATCH 13/16] f2fs: add xattr and acl functionalities

2012-10-05 Thread 김재극
This implements xattr and acl functionalities. - F2FS uses a node page to contain use extended attributes. Signed-off-by: Changman Lee cm224@samsung.com Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/f2fs/acl.c | 402 +++

[PATCH 14/16] f2fs: add garbage collection functions

2012-10-05 Thread 김재극
This adds on-demand and background cleaning functions. - The basic background cleaning policy is trying to do cleaning jobs as much as possible whenever the system is idle. Once the background cleaning is done, the cleaner sleeps an amount of time not to interfere with VFS calls. The time

[PATCH 15/16] f2fs: add recovery routines for roll-forward

2012-10-05 Thread 김재극
This adds roll-forward routines to recover fsynced data. - F2FS uses basically roll-back model with checkpointing. - In order to implement fsync(), there are two approaches as follows. 1. A roll-back model with checkpointing at every fsync() : This is a naive method, but suffers from very low

[PATCH 16/16] f2fs: update Kconfig and Makefile

2012-10-05 Thread 김재극
This adds Makefile and Kconfig for f2fs, and updates Makefile and Kconfig files in the fs directory. Signed-off-by: Jaegeuk Kim jaegeuk@samsung.com --- fs/Kconfig |1 + fs/Makefile |1 + fs/f2fs/Kconfig | 55 ++