[f2fs-dev] [PATCH] f2fs: fix wrong number of max_nid when init

2014-04-16 Thread Chao Yu
Since max_nid value was minus three in previous commit: 'b63da15e8b475245026bdf2096853683f189706b', Our last three nids could not be used ever, but 0/node nid/meta nid is still occupied. And also our ra_meta_pages() could not readahead the last block of NAT. Let's fix the wrong calculation of this

[f2fs-dev] [PATCH] f2fs: introduce raw_nat_from_node_info() to simplfy codes

2014-04-16 Thread Chao Yu
This patch introduce raw_nat_from_node_info() to simplfy some codes, and also use exist function node_info_from_raw_nat() to do the same job. Signed-off-by: Chao Yu --- fs/f2fs/node.c | 15 +++ fs/f2fs/node.h |8 2 files changed, 11 insertions(+), 12 deletions(-) diff

Re: [f2fs-dev] f2fs: BUG_ON() is triggered when mount valid f2fs filesystem

2014-04-16 Thread Alexey Khoroshilov
Hi, But would not ability to trigger BUG_ON by mounting a crafted image considered as an issue having security implications? Regards, Alexey On 16.04.2014 16:35, Jaegeuk Kim wrote: > Hi, > > 2014-04-16 (수), 13:11 +0400, Andrey Tsyvarev: >> Hi, >> >> With this patch mounting of the image continu

Re: [f2fs-dev] f2fs: BUG_ON() is triggered when mount valid f2fs filesystem

2014-04-16 Thread Jaegeuk Kim
Hi, 2014-04-16 (수), 13:11 +0400, Andrey Tsyvarev: > Hi, > > With this patch mounting of the image continues to fail (with similar > BUG_ON). > But when image is formatted again (and steps mentioned in the previous > message are performed), > mounting of it is now succeed. > > Is this is a true

[f2fs-dev] [PATCH] f2fs: fix to unlock f2fs_lock at the omitted error case

2014-04-16 Thread Jaegeuk Kim
If it occurs an error, we should call f2fs_unlock_op. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inline.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index 383db1f..3258c7c 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2fs/inline.c

[f2fs-dev] Poly-silicon industry, power supply manufactuer to linux-f2fs-devel@lists.sourceforge.net

2014-04-16 Thread minde electric
TO: linux-f2fs-devel@lists.sourceforge.net How are you? We get your email address from internet, hope you are our target customer and hope we didn't disturb you. We write this email to you as we want to find a way to build business relationship with you. This time, we want to introduce our produc

Re: [f2fs-dev] f2fs: BUG_ON() is triggered when mount valid f2fs filesystem

2014-04-16 Thread Andrey Tsyvarev
Hi, With this patch mounting of the image continues to fail (with similar BUG_ON). But when image is formatted again (and steps mentioned in the previous message are performed), mounting of it is now succeed. Is this is a true purpose of the patch? 15.04.2014 15:04, Jaegeuk Kim пишет: > Hi, >