Re: [PATCH 01/16] f2fs: add document

2012-10-06 Thread Jaegeuk Kim
I'll apply this. Thanks, 2012-10-05 (금), 12:56 -0700, Randy Dunlap: > On 10/05/2012 04:56 AM, 김재극 wrote: > > > This adds a document describing the mount options, proc entries, usage, and > > design of Flash-Friendly File System, namely F2FS. > > &

Re: [PATCH 01/16] f2fs: add document

2012-10-06 Thread Jaegeuk Kim
2012-10-06 (토), 09:19 +0200, Stefan Hajnoczi: > > 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 samsung.com> > > --- > > Do

Re: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-06 Thread Jaegeuk Kim
s/. > > The patch #2 adds a header file of on-disk layout to include/linux/. > > The patches #3-#15 adds f2fs source files to fs/f2fs/. > > The Last patch, patch #16, updates Makefile and Kconfig. > > > > mkfs.f2fs > > ===== > > > > The file sys

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-07 Thread Jaegeuk Kim
> -Original Message- > From: Marco Stornelli [mailto:marco.storne...@gmail.com] > Sent: Sunday, October 07, 2012 4:10 PM > To: Jaegeuk Kim > Cc: Vyacheslav Dubeyko; jaegeuk@samsung.com; Al Viro; ty...@mit.edu; > gre...@linuxfoundation.org; > linux-kernel@

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-08 Thread Jaegeuk Kim
> -Original Message- > From: Vyacheslav Dubeyko [mailto:sl...@dubeyko.com] > Sent: Sunday, October 07, 2012 9:09 PM > To: Jaegeuk Kim > Cc: 'Marco Stornelli'; 'Jaegeuk Kim'; 'Al Viro'; ty...@mit.edu; > gre...@linuxfoundation.org; linux

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-08 Thread Jaegeuk Kim
> -Original Message- > From: Namjae Jeon [mailto:linkinj...@gmail.com] > Sent: Monday, October 08, 2012 7:00 PM > To: Jaegeuk Kim > Cc: Vyacheslav Dubeyko; Marco Stornelli; Jaegeuk Kim; Al Viro; ty...@mit.edu; > gre...@linuxfoundation.org; linux-kernel@vger.k

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-08 Thread Jaegeuk Kim
> -Original Message- > From: Namjae Jeon [mailto:linkinj...@gmail.com] > Sent: Monday, October 08, 2012 8:22 PM > To: Jaegeuk Kim > Cc: Vyacheslav Dubeyko; Marco Stornelli; Jaegeuk Kim; Al Viro; ty...@mit.edu; > gre...@linuxfoundation.org; linux-kernel@vger.k

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-09 Thread Jaegeuk Kim
> -Original Message- > From: Vyacheslav Dubeyko [mailto:sl...@dubeyko.com] > Sent: Tuesday, October 09, 2012 4:23 AM > To: Jaegeuk Kim > Cc: 'Marco Stornelli'; 'Jaegeuk Kim'; 'Al Viro'; ty...@mit.edu; > gre...@linuxfoundation.org; linux

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-09 Thread Jaegeuk Kim
--- Jaegeuk Kim Samsung > -Original Message- > From: Namjae Jeon [mailto:linkinj...@gmail.com] > Sent: Tuesday, October 09, 2012 12:52 PM > To: Jaegeuk Kim > Cc: Vyacheslav Dubeyko; Marco Stornelli; Jaegeuk Kim; Al Viro; ty...@mit.edu; > gre...@linuxfoundation

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-09 Thread Jaegeuk Kim
> -Original Message- > From: linux-fsdevel-ow...@vger.kernel.org > [mailto:linux-fsdevel-ow...@vger.kernel.org] On Behalf Of > Luka? Czerner > Sent: Tuesday, October 09, 2012 5:32 PM > To: Jaegeuk Kim > Cc: 'Namjae Jeon'; 'Vyacheslav Dubeyko'; 

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-09 Thread Jaegeuk Kim
> -Original Message- > From: Lukáš Czerner [mailto:lczer...@redhat.com] > Sent: Tuesday, October 09, 2012 8:01 PM > To: Jaegeuk Kim > Cc: 'Lukáš Czerner'; 'Namjae Jeon'; 'Vyacheslav Dubeyko'; 'Marco Stornelli'; > 'Jaegeuk Kim&

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-09 Thread Jaegeuk Kim
2012-10-09 (화), 14:39 +0200, Lukáš Czerner: > On Tue, 9 Oct 2012, Jaegeuk Kim wrote: > > > > > > > > > > > > > > > > > As you can see the f2fs kernel document patch, I think one of > > > > > > > > the most &

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-09 Thread Jaegeuk Kim
> -Original Message- > From: linux-fsdevel-ow...@vger.kernel.org > [mailto:linux-fsdevel-ow...@vger.kernel.org] On Behalf Of > Dave Chinner > Sent: Wednesday, October 10, 2012 6:20 AM > To: Jaegeuk Kim > Cc: 'Lukáš Czerner'; 'Namjae Jeon'

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

2012-10-09 Thread Jaegeuk Kim
[snip] > > +/* > > + * For superblock > > + */ > > +struct f2fs_super_block { > > + __le32 magic; /* Magic Number */ > > + __le16 major_ver; /* Major Version */ > > + __le16 minor_ver; /* Minor Version */ > > + __le32 log_sectorsize; /* log2 (Sector size in bytes) */

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-10 Thread Jaegeuk Kim
[snip] > > How about the following scenario? > > 1. data "a" is newly written. > > 2. checkpoint "A" is done. > > 3. data "a" is truncated. > > 4. checkpoint "B" is done. > > > > If fs supports multiple snapshots like "A" and "B" to users, it cannot > > reuse the space allocated by > > data "a" af

Re: [PATCH 1/6] f2fs: fix the compiler warning for uninitialized use of variable

2012-12-02 Thread Jaegeuk Kim
s/node.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c > index 25d3036..1987036 100644 > --- a/fs/f2fs/node.c > +++ b/fs/f2fs/node.c > @@ -266,6 +266,7 @@ void get_node_info(struct f2fs_sb_info *sbi, nid_t nid, > struct node_in

Re: [PATCH -next] f2fs: remove unused variable

2012-12-02 Thread Jaegeuk Kim
F2FS_DIRTY_DENTS); > inode_dec_dirty_dents(dir); > - page_offset = page->index << PAGE_CACHE_SHIFT; > f2fs_put_page(page, 1); > } else { > f2fs_put_page(page, 1); > > -- Jaegeuk Kim Samsung signature.asc Description: This is a digitally signed message part

RE: [PATCH 11/16] f2fs: add inode operations for special inodes

2012-10-17 Thread Jaegeuk Kim
> On Tuesday 16 October 2012, Jaegeuk Kim wrote: > > > > > > > > An xattr on the root inode that holds a list like this is something > > > > > that could be set at mkfs time, but then also updated easily by new > > > > > software

RE: [PATCH 00/16] f2fs: introduce flash-friendly file system

2012-10-18 Thread Jaegeuk Kim
> [snip] > > > > > > And Would you share ppt or document of f2fs if Korea Linux Forum is > > > finished ? > > > > > > > Here I attached the slides, and LF will also share the slides. > > Thanks, > > > > I had hope that slides will have more detailed description. Maybe it is > good for Linux Forum

[PATCH 00/16 v2] f2fs: introduce flash-friendly file system

2012-10-22 Thread Jaegeuk Kim
, "mkfs.f2fs", is available from the following download page: http://sourceforge.net/projects/f2fs-tools/ Usage = If you'd like to experience f2fs, simply: # mkfs.f2fs /dev/sdb1 # mount -t f2fs /dev/sdb1 /mnt/f2fs Short log ========= Jaegeuk Kim (16): f2fs: add

[PATCH 01/16 v2] f2fs: add document

2012-10-22 Thread Jaegeuk Kim
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 | 404 2 files

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

2012-10-22 Thread Jaegeuk Kim
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 | 362 +++ 1 file changed, 362 insertions(+) create mode 100644 include/linux

[PATCH 04/16 v2] f2fs: add super block operations

2012-10-22 Thread Jaegeuk Kim
This adds the implementation of superblock operations for f2fs, which includes - init_f2fs_fs/exit_f2fs_fs - f2fs_mount - super_operations of f2fs Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 590 +++ 1 file changed, 590 insertions

[PATCH 05/16 v2] f2fs: add checkpoint operations

2012-10-22 Thread Jaegeuk Kim
order to provide an address space for meta pages, f2fs_sb_info has a special inode, namely meta_inode. This patch also adds the address space operations for meta_inode. Signed-off-by: Chul Lee Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 795

[PATCH 06/16 v2] f2fs: add node operations

2012-10-22 Thread Jaegeuk Kim
management such as getting, allocating, and truncating node blocks to index data. - In order to cache node blocks in memory, F2FS has a node_inode with an address space for node pages. This patch also adds the address space operations for node_inode. Signed-off-by: Jaegeuk Kim --- fs/f2fs/node.c

[PATCH 07/16 v2] f2fs: add segment operations

2012-10-22 Thread Jaegeuk Kim
functions to write data, node, and meta pages. Since LFS basically produces a series of sequential writes, F2FS merges sequential bios with a single one as much as possible to reduce the IO scheduling overhead. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 1795

[PATCH 08/16 v2] f2fs: add file operations

2012-10-22 Thread Jaegeuk Kim
This adds memory operations and file/file_inode operations. - F2FS supports fallocate(), mmap(), fsync(), and basic ioctl(). Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 640 1 file changed, 640 insertions(+) create mode 100644 fs

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

2012-10-22 Thread Jaegeuk Kim
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 | 701

[PATCH 10/16 v2] f2fs: add core inode operations

2012-10-22 Thread Jaegeuk Kim
This adds core functions to get, read, write, and evict an inode. Signed-off-by: Changman Lee Signed-off-by: Jaegeuk Kim --- fs/f2fs/inode.c | 262 +++ 1 file changed, 262 insertions(+) create mode 100644 fs/f2fs/inode.c diff --git a/fs

[PATCH 11/16 v2] f2fs: add inode operations for special inodes

2012-10-22 Thread Jaegeuk Kim
This adds inode operations for directory, symlink, and special inodes. Signed-off-by: Changman Lee Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 494 +++ 1 file changed, 494 insertions(+) create mode 100644 fs/f2fs/namei.c diff --git a

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

2012-10-22 Thread Jaegeuk Kim
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 13/16 v2] f2fs: add xattr and acl functionalities

2012-10-22 Thread Jaegeuk Kim
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 | 465 +++ fs/f2fs/acl.h | 57 +++ fs/f2fs/xattr.c

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

2012-10-22 Thread Jaegeuk Kim
of on-demand cleaning, F2FS should move the data right away. - In order to identify valid blocks in a victim segment, F2FS scans the bitmap of the segment managed as an SIT entry. Signed-off-by: Jaegeuk Kim --- fs/f2fs/gc.c | 1139 ++ fs

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

2012-10-22 Thread Jaegeuk Kim
on of next node block in each direct node block for reconstructing the chain of node blocks during the recovery. - In order to enhance the performance, F2FS keeps a "dentry" mark also in direct node blocks. If this is set during the recovery, F2FS replays adding a dentry. Signed

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

2012-10-22 Thread Jaegeuk Kim
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

[GIT PULL] f2fs: request for tree inclusion

2012-12-10 Thread Jaegeuk Kim
tency repeatedly, while running a reliability test. So, please pull the f2fs filesystem. If I'm missing any issues or made mistakes, please let me know. Thanks, Jaegeuk Kim The following changes since commit 29594404d7fe73cd80eaa4ee8c43dcc53970c60e: Linux 3.7 (2012-12-10 19:30:57 -0800) are

Re: [PATCH] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-11 Thread Jaegeuk Kim
dotdot dentries should have zero-value hash code */ + if (!memcmp(name, ".", 1) || !memcmp(name, "..", 2)) + return 0; + /* Initialize the default seed for the hash checksum functions */ buf[0] = 0x67452301; buf[1] = 0xefcdab89; -- 1.8.0.1.250.gb7973fb -- Jaegeuk Kim Samsung signature.asc Description: This is a digitally signed message part

Re: [PATCH 00/16 v3] f2fs: introduce flash-friendly file system

2012-11-11 Thread Jaegeuk Kim
ts version. I suggest to output version of f2fs utilities. Agreed. But, I'd like to note that f2fs is not merged yet. IMHO, it'd better give an initial version after f2fs is merged. Thanks, > > With the best regards, > Vyacheslav Dubeyko. > -- Jaegeuk Kim Samsung -- To uns

Re: [PATCH 1/5] f2fs: Introduce some information prints in the mount path

2012-12-25 Thread Jaegeuk Kim
node for node space */ > sbi->node_inode = f2fs_iget(sb, F2FS_NODE_INO(sbi)); > if (IS_ERR(sbi->node_inode)) { > + pr_err("Failed to read node inode\n"); > err = PTR_ERR(sbi->node_inode); > goto free_nm; > } > @@ -534,6 +559,7 @@ static int f2fs_fill_super(struct super_block *sb, void > *data, int silent) > /* read root inode and dentry */ > root = f2fs_iget(sb, F2FS_ROOT_INO(sbi)); > if (IS_ERR(root)) { > + pr_err("Failed to read root inode\n"); > err = PTR_ERR(root); > goto free_node_inode; > } -- Jaegeuk Kim Samsung signature.asc Description: This is a digitally signed message part

Re: [PATCH review] f2fs: Don't assign e_id in f2fs_acl_from_disk

2012-12-25 Thread Jaegeuk Kim
GROUP assigning e_id is > unnecessary. Remove the assignment so f2fs will build with user > namespaces enabled. > > Cc: Jaegeuk Kim > Cc: Namjae Jeon > Cc: Amit Sahrawat > Signed-off-by: "Eric W. Biederman" Acked-by: Jaegeuk Kim -- Jaegeuk Kim Samsung signature.asc Description: This is a digitally signed message part

Re: [PATCH] f2fs: add missing pretech.h include

2012-12-27 Thread Jaegeuk Kim
: [PATCH] f2fs: add missing pretech.h include > > That should have been "prefetch.h", obviously... > At least the patch is correct. Hi, This was fixed by Geert Uytterhoeven before. I'm supposed to push other bug fixes with this to linus today. Anyway, thank you very much. :)

[GIT PULL] f2fs fixes for 3.8-rc2

2012-12-27 Thread Jaegeuk Kim
Hi Linus, Please pull the following patches for bug fixes on the f2fs file system. Thank you very much. -- Jaegeuk Kim Samsung The following changes since commit 637704cbc95c02d18741b4a6e7a5d2397f8b28ce: Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linu

Re: [GIT PULL] f2fs fixes for 3.8-rc2

2012-12-27 Thread Jaegeuk Kim
2012-12-28 (금), 03:00 +0100, Sedat Dilek: > Looks like you didn't S-o-b-ed all patches in your tree (see Leon's or > Geert's patch). I've fixed all the patches. Thank you. :) > > - Sedat - > > On Fri, Dec 28, 2012 at 2:54 AM, Jaegeuk Kim wrote: > >

[GIT PULL v2] f2fs fixes for 3.8-rc2

2012-12-27 Thread Jaegeuk Kim
Hi Linus, Sorry for the noise. I've resolved the S-O-B issue in v1 tree. Here is the pull request v2. Thanks, -- Jaegeuk Kim Samsung The following changes since commit 637704cbc95c02d18741b4a6e7a5d2397f8b28ce: Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.d

Re: [PATCH 3/4] f2fs: fix removing cache entry within proper lock

2013-01-01 Thread Jaegeuk Kim
t_lock); > if (__lookup_free_nid_list(nid, &nm_i->free_nid_list)) { > - spin_unlock(&nm_i->free_nid_list_lock); > kmem_cache_free(free_nid_slab, i); > + spin_unlock(&nm_i->free_nid_list_lock); > return 0; > } >

Re: [PATCH -next] f2fs: add missing #include

2012-12-19 Thread Jaegeuk Kim
Merged. Thank you very much. -- Jaegeuk Kim Samsung 2012-12-19 (수), 22:19 +0100, Geert Uytterhoeven: > m68k allmodconfig: > > fs/f2fs/data.c: In function ‘read_end_io’: > fs/f2fs/data.c:311: error: implicit declaration of function ‘prefetchw’ > > fs/f2fs/segm

[PATCH] f2fs: add MAINTAINERS entry

2012-12-20 Thread Jaegeuk Kim
This patch adds myself to MAINTAINERS entry for the f2fs file system. Signed-off-by: Jaegeuk Kim --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9386a63..f15d168 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3204,6 +3204,16 @@ F

Re: [PATCH 2/2] f2fs: add REQ_META about metadata requests for submit bio

2013-04-21 Thread Jaegeuk Kim
>= META_FLUSH) > rw = WRITE_FLUSH_FUA; > > + if (type == META) Should be if (btype == META). Thanks, > + rw |= REQ_META; > + > if (sbi->bio[btype]) { > struct bio_private *p = sbi->bio[btype]->bi_private; >

Re: [PATCH v4 0/7] f2fs: Add tracepoints support in f2fs filesystem

2013-04-23 Thread Jaegeuk Kim
em for tracing the filesystem > operations for information/debugging purpose if needed. All the > tracepoints are clubbed with respect to functionalities. > > Change Log: > v4: Modified the tracepoints as per the review comments of > Jaegeuk Kim. Follo

Re: [PATCH v4 1/7] f2fs: add tracepoints for sync & Inode operations

2013-04-23 Thread Jaegeuk Kim
gned-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Acked-by: Steven Rostedt [Jaegeuk: combine and modify the tracepoint structures] Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 7 +- fs/f2fs/inode.c | 13 ++- fs/f2fs/namei.c | 3 + fs/f2fs/sup

Re: [PATCH v4 2/7] f2fs: add tracepoints for truncate operation

2013-04-23 Thread Jaegeuk Kim
geuk: combine and modify the tracepoint structures] Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 9 +++ fs/f2fs/node.c | 20 - include/trace/events/f2fs.h | 176 3 files changed, 203 insertions(+), 2 deletions(-) diff --g

Re: [PATCH v4 3/7] f2fs: add tracepoint for tracing the page i/o operations

2013-04-23 Thread Jaegeuk Kim
Add tracepoints for page i/o operations and block allocation tracing during page read operation. Signed-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Acked-by: Steven Rostedt [Jaegeuk: combine and modify the tracepoint structures] Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c

Re: [PATCH v4 4/7] f2fs: add tracepoints for GC threads

2013-04-23 Thread Jaegeuk Kim
tracepoints for tracing the garbage collector threads in f2fs with status of collection & type. Signed-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Acked-by: Steven Rostedt [Jaegeuk: modify slightly to show information] Signed-off-by: Jaegeuk Kim --- fs/f2fs/gc.c

Re: [PATCH v4 5/7] f2fs: add tracepoints to debug the block allocation & fallocate

2013-04-23 Thread Jaegeuk Kim
...@lists.sourceforge.net Add tracepoints to debug the block allocation & fallocate. Signed-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Acked-by: Steven Rostedt [Jaegeuk: enhance information] Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 2 ++ fs/f2fs/file.c | 1 + inc

Re: [PATCH v4 6/7] f2fs: add tracepoints for write page operations

2013-04-23 Thread Jaegeuk Kim
...@lists.sourceforge.net Add tracepoints to debug the various page write operation like data pages, meta pages. Signed-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Acked-by: Steven Rostedt [Jaegeuk: remove unnecessary tracepoints] Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 5 include

Re: [PATCH v4 7/7] f2fs: add tracepoints to debug checkpoint request

2013-04-23 Thread Jaegeuk Kim
...@lists.sourceforge.net Add tracepoints to debug checkpoint request. Signed-off-by: Namjae Jeon Signed-off-by: Pankaj Kumar Acked-by: Steven Rostedt [Jaegeuk: change expressions] Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c| 7 +++ include/trace/events/f2fs.h | 24 2

[PATCH] f2fs: recover wrong pino after checkpoint during fsync

2013-06-17 Thread Jaegeuk Kim
fsync performance significatly. Signed-off-by: Jaegeuk Kim --- fs/f2fs/dir.c | 2 +- fs/f2fs/f2fs.h| 2 +- fs/f2fs/file.c| 31 ++- fs/f2fs/namei.c | 2 +- fs/f2fs/node.h| 15 +++ fs/f2fs/segment.c | 2 +- 6 files changed, 45 insertions

Re: [RFC 0/5] Enable f2fs support inline data

2013-06-05 Thread Jaegeuk Kim
creation performance test. > > 3. file look-up performance test. > > 4. other performance tools 's result. > > > > Thanks. > > > > 2013/6/4 Jaegeuk Kim : > > > Hi, > > > > > > This feature is one of my todo items. ;)

[PATCH 1/2] f2fs: fix iget/iput of dir during recovery

2013-06-06 Thread Jaegeuk Kim
done only when set_page_dirty() is called. So let's add this newly got inode into the list explicitly, and put it at the end of the recovery routine. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 55 +--- fs/f2fs/f2fs.h | 1 + fs/f2f

[PATCH 2/2] f2fs: support xattr security labels

2013-06-06 Thread Jaegeuk Kim
This patch adds the support of security labels for f2fs, which will be used by SElinux. Signed-off-by: Jaegeuk Kim --- fs/f2fs/Kconfig | 9 + fs/f2fs/dir.c | 5 + fs/f2fs/xattr.c | 59 +++-- fs/f2fs/xattr.h | 12 +++- 4

[PATCH] f2fs: fix i_blocks translation on various types of files

2013-06-07 Thread Jaegeuk Kim
ver, previously f2fs_file_inode_operations only has this, so this patch adds it to all the types of inode_operations. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 1 + fs/f2fs/file.c | 2 +- fs/f2fs/namei.c | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b

Re: [PATCH 2/2 v2] f2fs: support xattr security labels

2013-06-07 Thread Jaegeuk Kim
Change log from v1: o fix a bug From 901aea226653e26aa3556edd88ca1e48fa89eb5f Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Mon, 3 Jun 2013 19:46:19 +0900 Subject: [PATCH 2/2] f2fs: support xattr security labels Cc: linux-fsde...@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-de

Re: [RFC 0/5] Enable f2fs support inline data

2013-06-03 Thread Jaegeuk Kim
> 9 files changed, 402 insertions(+), 4 deletions(-) > create mode 100644 fs/f2fs/inline.c > -- Jaegeuk Kim Samsung signature.asc Description: This is a digitally signed message part

[PATCH] f2fs: fix an endian conversion bug detected by sparse

2013-06-23 Thread Jaegeuk Kim
pes) fs/f2fs/recovery.c:238:33:expected unsigned int [unsigned] ofs_in_node fs/f2fs/recovery.c:238:33:got restricted __le16 [assigned] [usertype] ofs_in_node Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: f2fs tests

2013-06-24 Thread Jaegeuk Kim
G 3. untar:7.8G794M6.6G So, after untar the kernel source, you're able to discover that the available sizes are not much different between F2FS and EXT4. Thanks, > > Pavel -- Jaegeuk Kim Samsung -- To u

Re: [PATCH 2/2] f2fs: add sysfs support for controlling the gc_thread

2013-06-24 Thread Jaegeuk Kim
namically instead > > of the user decision? > Yes, I thought such idea before. It might be useful if gc thread can > dynamically control own gc times with different partition size and > available size. > But I think there is a limitation that f2fs don't predict when user access

Re: [PATCH 2/2 v2] f2fs: support xattr security labels

2013-06-07 Thread Jaegeuk Kim
2013-06-07 (금), 19:50 +0900, Namjae Jeon: > 2013/6/7, Jaegeuk Kim : > > Change log from v1: > > o fix a bug > > > > From 901aea226653e26aa3556edd88ca1e48fa89eb5f Mon Sep 17 00:00:00 2001 > > From: Jaegeuk Kim > > Date: Mon, 3 Jun 2013 19:46:19 +0900 >

Re: [PATCH 2/2] f2fs: support xattr security labels

2013-06-07 Thread Jaegeuk Kim
Hi, Thank you for the review. I agreed all, and will submit v3. Thanks, 2013-06-07 (금), 15:13 -0700, Casey Schaufler: > On 6/6/2013 10:55 PM, Jaegeuk Kim wrote: > > This patch adds the support of security labels for f2fs, which will be used > > by SElinux. > > Please b

Re: [PATCH 2/2 v2] f2fs: support xattr security labels

2013-06-07 Thread Jaegeuk Kim
Change log from v2: o fix description and simplify a code line (commented by Casey Schaufler) Change log from v1: o fix a bug From 9f889afcd74a58d9a538fa02f4af31d11eb17c54 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Mon, 3 Jun 2013 19:46:19 +0900 Subject: [PATCH] f2fs: support xattr

Re: [RFC 0/5] Enable f2fs support inline data

2013-06-09 Thread Jaegeuk Kim
Hi, 2013-06-08 (토), 15:25 +0800, Huajun Li: > > Hi Jaegeuk, > Thanks for your suggestion. > On Wed, Jun 5, 2013 at 3:13 PM, Jaegeuk Kim > wrote: > Hi Haicheng, > 2013-06-04 (화), 14:01 +0800, Haicheng Li: > > Hi Jaegeuk & Namjae, >

[PATCH] f2fs: sync dir->i_size with its block allocation

2013-06-09 Thread Jaegeuk Kim
) - f2fs_write_data_page - skip to write the last dentry block due to index < i_size In the above flow, new_i_size is not updated to its inode block so that the last dentry block will be lost accordingly. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 2 ++ fs/f2fs/dir.c | 9 - fs/f

Re: [PATCH 2/2 v4] f2fs: support xattr security labels

2013-06-10 Thread Jaegeuk Kim
: Jaegeuk Kim Date: Mon, 3 Jun 2013 19:46:19 +0900 Subject: [PATCH] f2fs: support xattr security labels Cc: linux-fsde...@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-de...@lists.sourceforge.net This patch adds the support of security labels for f2fs, which will be used by Linus Security

[PATCH] f2fs: avoid freqeunt write_inode calls

2013-06-10 Thread Jaegeuk Kim
If update_inode is called, we don't need to do write_inode. So, let's use a *dirty* flag for each inode. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 1 + fs/f2fs/file.c | 1 + fs/f2fs/inode.c | 4 fs/f2fs/super.c | 12 4 files changed, 18 insertions(+) di

Re: [PATCH v2] f2fs: avoid freqeunt write_inode calls

2013-06-11 Thread Jaegeuk Kim
Change log from v1: o declare *static* to f2fs_dirty_inode (reported by kbuild-test-robot) From 6b523242fa7b301653e83496fb065d5c0cbe7968 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Mon, 10 Jun 2013 09:17:01 +0900 Subject: [PATCH] f2fs: avoid freqeunt write_inode calls Cc: linux-fsde

[GIT PULL] f2fs updates for v3.11

2013-07-01 Thread Jaegeuk Kim
t; from __add_sum_entry() f2fs: make locate_dirty_segment() as static f2fs: optimize do_write_data_page() Jaegeuk Kim (35): f2fs: fix inconsistency of block count during recovery f2fs: fix the inconsistent state of data pages f2fs: remove redundant assignment f2fs:

[GIT PULL] f2fs updates for v3.11

2013-07-01 Thread Jaegeuk Kim
t; from __add_sum_entry() f2fs: make locate_dirty_segment() as static f2fs: optimize do_write_data_page() Jaegeuk Kim (35): f2fs: fix inconsistency of block count during recovery f2fs: fix the inconsistent state of data pages f2fs: remove redundant assignment f2fs:

[PATCH] f2fs: recover date requested by fdatasync

2013-07-04 Thread Jaegeuk Kim
tence of any fsync mark'ed node blocks. Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index d2d2b7d..157a635 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -147,9 +147

[PATCH] f2fs: fix readdir incorrectness

2013-07-04 Thread Jaegeuk Kim
a size = 4, name length = 6, total files = 4096, nproc=1 4097 files created This bug is due to the misupdate of directory position in ctx. So, this patch fixes this. CC: Al Viro Signed-off-by: Jaegeuk Kim --- fs/f2fs/dir.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2] f2fs: fix readdir incorrectness

2013-07-05 Thread Jaegeuk Kim
Chang log from v1: o fix another scenario >From 2ee3c8144187ab230d0f47f9b95e5406af87ada8 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Fri, 5 Jul 2013 14:06:04 +0900 Subject: [PATCH] f2fs: fix readdir incorrectness Cc: linux-fsde...@vger.kernel.org, linux-kernel@vger.kernel.org, linux-f

[PATCH] f2fs: add proc entry to monitor current usage of segments

2013-07-05 Thread Jaegeuk Kim
You can monitor valid block counts of whole segments in: /proc/fs/f2fs/sdb1/segment_info. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 1 + fs/f2fs/super.c | 46 ++ 2 files changed, 47 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h

[PATCH 2/2] f2fs: fix to recover i_size from roll-forward

2013-06-26 Thread Jaegeuk Kim
newly updated data index excluding inode metadata updates. So, this patch introduces write_end in which updates inode block too when the i_size is changed. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/fs

[PATCH 1/2] f2fs: remove reusing any prefree segments

2013-06-26 Thread Jaegeuk Kim
segments such as y or y+1, we lost the old node blocks so that f2fs even cannot start roll-forward recovery. Therefore, I suggest that we should remove reusing prefree segments. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 56 +-- 1 file ch

Re: [PATCH 2/2] f2fs: add sysfs support for controlling the gc_thread

2013-06-26 Thread Jaegeuk Kim
Hi, 2013-06-26 (수), 14:10 +0900, Namjae Jeon: > 2013/6/25, Jaegeuk Kim : > >> > - any priority scheme for cleaning? > >> Could you plz tell me a little more detail ? > > > > I meant, as well as the GC times, user also gives a kind of status like: > >

[PATCH 2/4] f2fs: do not skip writing file meta during fsync

2013-03-24 Thread Jaegeuk Kim
x27;s remove this condition check and hope that user triggers in right manner. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 3 --- fs/f2fs/f2fs.h | 1 - fs/f2fs/file.c | 10 -- fs/f2fs/inode.c | 1 - 4 files changed, 15 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c

[PATCH 3/4] f2fs: remain nat cache entries for further free nid allocation

2013-03-24 Thread Jaegeuk Kim
x27;t need to drop the nat cache entry at this moment. Signed-off-by: Jaegeuk Kim --- fs/f2fs/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index f7b03ba..0177f94 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -1621,11 +16

[PATCH 4/4] f2fs: fix to give correct parent inode number for roll forward

2013-03-24 Thread Jaegeuk Kim
nly normal files can be recovered by roll-forward. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 +- fs/f2fs/file.c | 22 ++ fs/f2fs/namei.c | 14 ++ fs/f2fs/node.h | 15 +++ 4 files changed, 28 insertions(+), 25 deletions(-) diff --git a/fs/f

[PATCH 1/4] f2fs: fix the recovery flow to handle errors correctly

2013-03-24 Thread Jaegeuk Kim
We should handle errors during the recovery flow correctly. For example, if we get -ENOMEM, we should report a mount failure instead of conducting the remained mount procedure. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 +- fs/f2fs/recovery.c | 46

Re: [PATCH 1/4] f2fs: fix the recovery flow to handle errors correctly

2013-03-25 Thread Jaegeuk Kim
2013-03-25 (월), 15:30 +0900, Namjae Jeon: > 2013/3/25, Jaegeuk Kim : > > We should handle errors during the recovery flow correctly. > > For example, if we get -ENOMEM, we should report a mount failure instead of > > conducting the remained mount procedure. > > >

[PATCH] f2fs: update file name in the inode block during f2fs_rename

2013-07-18 Thread Jaegeuk Kim
The error is reproducible by: After this, when we retrieve the inode->i_name of test2 by dump.f2fs, we get test1 instead of test2. This is because f2fs didn't update the file name during the f2fs_rename. So, this patch fixes that. Signed-off-by: Jaegeuk Kim --- fs/f2fs/dir.

Re: [PATCH] f2fs: add a wait step when submit bio with {READ,WRITE}_SYNC

2013-07-30 Thread Jaegeuk Kim
break; > > diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c > index 9b74ae2..bcd19db 100644 > --- a/fs/f2fs/segment.c > +++ b/fs/f2fs/segment.c > @@ -639,7 +639,7 @@ static void do_submit_bio(struct f2fs_sb_info *sbi, > > trace_f2fs_do_submit_bio(sbi->sb, btype, sync, sbi->bio[btype]

Re: [PATCH] f2fs: add a wait step when submit bio with {READ,WRITE}_SYNC

2013-07-31 Thread Jaegeuk Kim
2013-07-31 (수), 09:59 +0800, Gu Zheng: > Hi Kim, > > On 07/30/2013 08:29 PM, Jaegeuk Kim wrote: > > > Hi Gu, > > > > The original read flow was to avoid redandunt lock/unlock_page() calls. > > Right, this can gain better read performance. But is the wa

[PATCH] f2fs: fix handling orphan inodes

2013-08-01 Thread Jaegeuk Kim
ure of add_orphan_inode(). So, let's increment sbi->n_orphans virtually prior to the actual orphan inode stuffs. After that, let's release sbi->n_orphans by calling release_orphan_inode or remove_orphan_inode. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 13 ++--- fs/f2fs/di

[PATCH] libf2fs: check more conditions on mounted filesystem

2013-08-02 Thread Jaegeuk Kim
In the case of lazy umount, "umount -l", some processes are able to use the file system even if its mountpoint was disconnected. At this moment, we should not allow mkfs.f2fs. This patch adds this condition check. Signed-off-by: Jaegeuk Kim --- fsck/main.c| 2 +- include

[PATCH] f2fs: fix wrong BUG_ON condition

2013-08-20 Thread Jaegeuk Kim
s not uptodated. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index ea3cb29..6b328de 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -259,8 +259,17 @@ repeat: if (PageUpt

Re: [PATCH] f2fs: fix a deadlock in fsync

2013-08-06 Thread Jaegeuk Kim
blocked when attempt to write data pages for the same inode. At the same time, f2fs_gc thread does not notice the situation and could not help. Even the sync syscall gets blocked. To fix it, we could submit the cached bio first before waiting on a inode page that is being written back. Signed-off-b

Re: [PATCH 1/3] f2fs: add sysfs support for controlling the gc_thread

2013-08-06 Thread Jaegeuk Kim
const char *fmt, > ...) > { > struct va_format vaf; > @@ -243,6 +352,8 @@ static void f2fs_put_super(struct super_block *sb) > destroy_segment_manager(sbi); > > kfree(sbi->ckpt); > + kobject_del(&sbi->s_kobj); > + wait_for_completio

Re: [PATCH] f2fs: fix a deadlock in fsync

2013-08-07 Thread Jaegeuk Kim
fsync calls can also consume all the fs_lock too. Thanks, -- Jaegeuk Kim Samsung -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC 0/5] Enable f2fs support inline data

2013-08-07 Thread Jaegeuk Kim
o start to design it from the scatch. Thanks, 2013-06-08, 15:25 +0800, Huajun Li: > > Hi Jaegeuk, > Thanks for your suggestion. > > > On Wed, Jun 5, 2013 at 3:13 PM, Jaegeuk Kim > wrote: > Hi Haicheng, > > 2013-06-04 (화), 14:01 +0800, Haic

[PATCH] f2fs: fix a build failure due to missing the kobject header

2013-08-08 Thread Jaegeuk Kim
sing the kobject header file in dir.c. So, this patch move the header file to the right location, f2fs.h. CC: Namjae Jeon Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 1 + fs/f2fs/super.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 1

[PATCH 3/3] f2fs: introduce cur_cp_versioin function to reduce code size

2013-08-08 Thread Jaegeuk Kim
This patch introduces a new inline function, cur_cp_version, to reduce redundant codes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 6 +++--- fs/f2fs/f2fs.h | 7 ++- fs/f2fs/file.c | 3 +-- fs/f2fs/recovery.c | 4 ++-- fs/f2fs/xattr.c | 2 +- 5 files changed, 13

<    1   2   3   4   5   6   7   8   9   10   >