Re: [f2fs-dev] [PATCH] f2fs: avoid selinux denial on CAP_SYS_RESOURCE

2018-03-09 Thread Jaegeuk Kim
On 03/09, Chao Yu wrote: > On 2018/3/9 12:49, Jaegeuk Kim wrote: > > This fixes CAP_SYS_RESOURCE denial of selinux when using resgid. > > A little confusion, if capable(CAP_SYS_RESOURCE) is false, we still have > chance > to return true for below resuid & resgid cases, right? I didn't dig it

[f2fs-dev] [PATCH] f2fs: align memory boundary for bitops

2018-03-09 Thread Jaegeuk Kim
For example, in arm64, free_nid_bitmap should be aligned to word size in order to use bit operations. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 +- fs/f2fs/node.c | 20 +--- include/linux/f2fs_fs.h | 4 3 files changed, 22

[f2fs-dev] [PATCH v2] f2fs: introduce a method to make nat journal more fresh

2018-03-09 Thread Yunlei He
This patch introduce a method to make nat journal more fresh: i. sort set list using dirty entry number and cp version average value. ii. if meet with cache hit, update average version valus with current cp version. With this patch, newly modified nat set will flush to journal, and flush

[f2fs-dev] [PATCH v3] f2fs: check blkaddr more accuratly before issue a bio

2018-03-09 Thread Yunlei He
This patch check blkaddr more accuratly before issue a write or read bio. Signed-off-by: Yunlei He --- fs/f2fs/checkpoint.c | 2 ++ fs/f2fs/data.c | 5 +++-- fs/f2fs/f2fs.h | 1 + fs/f2fs/segment.h| 25 +++-- 4 files changed, 25

Re: [f2fs-dev] [PATCH v3] f2fs: check blkaddr more accuratly before issue a bio

2018-03-09 Thread heyunlei
>-Original Message- >From: heyunlei >Sent: Friday, March 09, 2018 5:52 PM >To: jaeg...@kernel.org; Yuchao (T); linux-f2fs-devel@lists.sourceforge.net >Cc: Wangbintian; Zhangdianfang (Euler); heyunlei >Subject: [f2fs-dev][PATCH v3] f2fs: check blkaddr more accuratly before issue >a bio >

Re: [f2fs-dev] [PATCH v6] f2fs: support in-memory inode checksum when checking consistency

2018-03-09 Thread Chao Yu
On 2018/3/9 23:10, Weichao Guo wrote: > Enable in-memory inode checksum to protect metadata blocks from > in-memory scribbles when checking consistency, which has no > performance requirements. > > Signed-off-by: Weichao Guo Reviewed-by: Chao Yu

Re: [f2fs-dev] [RFC PATCH v4 1/3] f2fs: introduce F2FS_FEATURE_LOST_FOUND feature

2018-03-09 Thread Chao Yu
On 2018/3/9 15:53, Sheng Yong wrote: > This patch introduces a new feature, F2FS_FEATURE_LOST_FOUND, which > is set by mkfs. mkfs creates a directory named lost+found, which saves > unreachable files. If fsck finds a file which has no parent, or its > parent is removed by fsck, the file will be

Re: [f2fs-dev] [RFC PATCH v4 2/3] f2fs: introduce a new mount option test_dummy_encryption

2018-03-09 Thread Chao Yu
On 2018/3/9 15:53, Sheng Yong wrote: > This patch introduces a new mount option `test_dummy_encryption' to > allow fscrypt to create a fake fscrypt context. This is used by xfstests. It needs to add doc for this new mount option. > > Signed-off-by: Sheng Yong > --- >

Re: [f2fs-dev] [PATCH v2] f2fs: introduce a method to make nat journal more fresh

2018-03-09 Thread Chao Yu
On 2018/3/9 17:53, Yunlei He wrote: > This patch introduce a method to make nat journal more fresh: > i. sort set list using dirty entry number and cp version > average value. > ii. if meet with cache hit, update average version valus with > current cp version. > > With this patch, newly