Re: kernel BUG at fs/erofs/inode.c:LINE!

2020-09-28 Thread Chao Yu
Hi syzbot administrator, CONFIG_EROFS_DEBUG was introduced for debug purpose during development, this should not be enabled on release version. Can you please turn off this config, and retest with erofs module? Thanks, On 2020/9/29 4:36, Gao Xiang wrote: Hi, On Mon, Sep 28, 2020 at 12:27:24A

Re: [PATCH 10/10] errno.h: Provide EFSCORRUPTED for everybody

2019-11-04 Thread Chao Yu
by: Theodore Ts'o > fs/erofs/internal.h | 2 -- > fs/f2fs/f2fs.h | 1 - Acked-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 00/25] erofs: patchset addressing Christoph's comments

2019-09-03 Thread Chao Yu
> most deleted code are from erofs specific fault injection, which was > followed f2fs and previously discussed in earlier topic [1], but > let's follow what Christoph's said now. Reviewed-by: Chao Yu Thanks, > > Comments and suggestions are welcome... > >

Re: [PATCH v8 11/24] erofs: introduce xattr & posixacl support

2019-09-02 Thread Chao Yu
On 2019/9/2 22:20, David Sterba wrote: > Oh right, I think the reasons are historical and that we can remove the > options nowadays. From the compatibility POV this should be safe, with > ACLs compiled out, no tool would use them, and no harm done when the > code is present but not used. > > There

Re: [PATCH v8 11/24] erofs: introduce xattr & posixacl support

2019-09-02 Thread Chao Yu
On 2019-9-2 21:06, David Sterba wrote: > On Mon, Sep 02, 2019 at 05:57:11AM -0700, Christoph Hellwig wrote: >>> +config EROFS_FS_XATTR >>> + bool "EROFS extended attributes" >>> + depends on EROFS_FS >>> + default y >>> + help >>> + Extended attributes are name:value pairs associated wi

Re: [PATCH] staging: exfat: add exfat filesystem code to staging

2019-08-30 Thread Chao Yu
On 2019/8/30 19:51, David Sterba wrote: > On Fri, Aug 30, 2019 at 10:06:25AM +0800, Chao Yu wrote: >> On 2019/8/29 23:43, Dan Carpenter wrote: >>>> p.s. There are 2947 (un)likely places in fs/ directory. >>> >>> I was complaining about you adding new poin

Re: [PATCH v8 00/24] erofs: promote erofs from staging v8

2019-08-30 Thread Chao Yu
ession filesystem, I think it will enrich diversity of compression filesystem, and bring healthy competition there. I do believe this is the right time to promote erofs to fs/ directory, let it be the formal member of filesystem clubhouse. Acked-by: Chao Yu Thanks > > Thank you in a

Re: [PATCH v3 6/7] erofs: remove all likely/unlikely annotations

2019-08-29 Thread Chao Yu
Xiang, the code itself looks clean to me. Reviewed-by: Chao Yu Thanks, On 2019/8/30 14:31, Gao Xiang wrote: > Hi Chao, > > On Fri, Aug 30, 2019 at 02:25:13PM +0800, Chao Yu wrote: >> On 2019/8/30 11:36, Gao Xiang wrote: >>> As Dan Carpenter suggested [1], I have to rem

Re: [PATCH v3 7/7] erofs: redundant assignment in __erofs_get_meta_page()

2019-08-29 Thread Chao Yu
; if (bio_add_page(bio, page, PAGE_SIZE, 0) != PAGE_SIZE) { > err = -EFAULT; > goto err_out; > } > > [1] > https://lore.kernel.org/r/74c4784319b40deabfbaea92468f7e3ef44f1c96.ca...@perches.com/ > Reporte

Re: [PATCH v3 6/7] erofs: remove all likely/unlikely annotations

2019-08-29 Thread Chao Yu
On 2019/8/30 11:36, Gao Xiang wrote: > As Dan Carpenter suggested [1], I have to remove > all erofs likely/unlikely annotations. > > [1] https://lore.kernel.org/linux-fsdevel/20190829154346.GK23584@kadam/ > Reported-by: Dan Carpenter > Signed-off-by: Gao Xiang I suggest we can modify this by fo

Re: [PATCH v3 5/7] erofs: kill erofs_{init,exit}_inode_cache

2019-08-29 Thread Chao Yu
ion, add a "rcu_barrier()" when exit_fs(); > > [1] https://lore.kernel.org/r/20190829101545.gc20...@infradead.org/ > Reported-by: Christoph Hellwig > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___

Re: [PATCH v3 4/7] erofs: kill __packed for on-disk structures

2019-08-29 Thread Chao Yu
urally aligned. > > [1] https://lore.kernel.org/lkml/20190829095954.gb20...@infradead.org/ > Reported-by: Christoph Hellwig > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http:

Re: [PATCH v3 2/7] erofs: some macros are much more readable as a function

2019-08-29 Thread Chao Yu
On 2019/8/30 11:36, Gao Xiang wrote: > As Christoph suggested [1], these marcos are much > more readable as a function. > > [1] https://lore.kernel.org/r/20190829095954.gb20...@infradead.org/ > Reported-by: Christoph Hellwig > Signed-off-by: Gao Xiang Reviewed-by

Re: [PATCH v2 3/7] erofs: use a better form for complicated on-disk fields

2019-08-29 Thread Chao Yu
ome lines >have to exceed 80 characters. > [1] > https://lore.kernel.org/r/67d6efbbc9ac6db23215660cb970b7ef29dc0c1d.ca...@perches.com/ > Reported-by: Joe Perches > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___

Re: [PATCH v2 1/7] erofs: on-disk format should have explicitly assigned numbers

2019-08-29 Thread Chao Yu
On 2019/8/30 11:00, Gao Xiang wrote: > As Christoph claimed [1], on-disk format should have > explicitly assigned numbers. I have to change it. > > [1] https://lore.kernel.org/r/20190829095954.gb20...@infradead.org/ > Reported-by: Christoph Hellwig > Signed-off-by: Gao Xiang

Re: [PATCH] staging: exfat: add exfat filesystem code to staging

2019-08-29 Thread Chao Yu
On 2019/8/29 23:43, Dan Carpenter wrote: >> p.s. There are 2947 (un)likely places in fs/ directory. > > I was complaining about you adding new pointless ones, not existing > ones. The likely/unlikely annotations are supposed to be functional and > not decorative. I explained this very clearly. >

Re: [PATCH RESEND] erofs: fix compile warnings when moving out include/trace/events/erofs.h

2019-08-26 Thread Chao Yu
> > Anyway, let's fix these issues for KERNEL_HEADER_TEST feature instead > of adding to blacklist... > > [1] https://lore.kernel.org/lkml/20190826162432.11100...@canb.auug.org.au/ > Reported-by: Stephen Rothwell > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 5/6] staging: erofs: detect potential multiref due to corrupted images

2019-08-21 Thread Chao Yu
Cc: # 4.19+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] erofs: move erofs out of staging

2019-08-20 Thread Chao Yu
On 2019/8/20 16:46, Qu Wenruo wrote: > [...] >> >> Yeah, it looks like we need searching more levels mapping to find the final >> physical block address of inode/node/data in btrfs. >> >> IMO, in a little lazy way, we can reform and reuse existed function in >> btrfs-progs which can find the mappin

Re: [PATCH] erofs: move erofs out of staging

2019-08-20 Thread Chao Yu
On 2019/8/21 9:48, Darrick J. Wong wrote: > On Wed, Aug 21, 2019 at 09:34:02AM +0800, Chao Yu wrote: >> On 2019/8/20 23:56, Theodore Y. Ts'o wrote: >>> The reason why there needs to be at least some file system specific >>> code for fuzz testing is because for e

Re: [PATCH] erofs: move erofs out of staging

2019-08-20 Thread Chao Yu
o rewrite whole generic fwk for each filesystem, because existed filesystem userspace tool should has included above callback's detail codes... > On Tue, Aug 20, 2019 at 10:24:11AM +0800, Chao Yu wrote: >> filesystem fill the tool's callback to seek a node/block and supported fields &

Re: [PATCH] erofs: move erofs out of staging

2019-08-20 Thread Chao Yu
On 2019/8/20 10:38, Qu Wenruo wrote: > > > On 2019/8/20 上午10:24, Chao Yu wrote: >> On 2019/8/20 8:55, Qu Wenruo wrote: >>> [...] >>>>>> I have made a simple fuzzer to inject messy in inode metadata, >>>>>> dir data, compressed indexes

Re: [PATCH] erofs: move erofs out of staging

2019-08-19 Thread Chao Yu
On 2019/8/20 8:55, Qu Wenruo wrote: > [...] I have made a simple fuzzer to inject messy in inode metadata, dir data, compressed indexes and super block, https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/commit/?h=experimental-fuzzer I am testing with som

Re: [PATCH 6/6] staging: erofs: avoid endless loop of invalid lookback distance 0

2019-08-19 Thread Chao Yu
+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 5/6] staging: erofs: detect potential multiref due to corrupted images

2019-08-19 Thread Chao Yu
On 2019-8-19 18:34, Gao Xiang wrote: > As reported by erofs-utils fuzzer, currently, multiref > (ondisk deduplication) hasn't been supported for now, > we should forbid it properly. > > Fixes: 3883a79abd02 ("staging: erofs: introduce VLE decompression support") > Cc: # 4.19+ > Signed-off-by: Gao

Re: [PATCH 4/6] staging: erofs: avoid loop in submit chains

2019-08-19 Thread Chao Yu
gain (will trigger tail merging) >| > 1 2 3 1 2 -> 1 2 3 1 > |_ tail end of the chain\___/ (unexpected behavior) > Let's detect and avoid them now. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, _

Re: [PATCH 2/6] staging: erofs: cannot set EROFS_V_Z_INITED_BIT if fill_inode_lazy fails

2019-08-19 Thread Chao Yu
333a5895 ("staging: erofs: add compacted compression indexes > support") > Cc: # 5.3+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 3/6] staging: erofs: add two missing erofs_workgroup_put for corrupted images

2019-08-19 Thread Chao Yu
; > Fixes: 3883a79abd02 ("staging: erofs: introduce VLE decompression support") > Cc: # 4.19+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/6] staging: erofs: some compressed cluster should be submitted for corrupted images

2019-08-19 Thread Chao Yu
o keep the page > working properly (page unlocked with PG_error set, PG_uptodate > not set). > > Let's fix it now. > > Fixes: 3883a79abd02 ("staging: erofs: introduce VLE decompression support") > Cc: # 4.19+ > Si

Re: [PATCH 1/6] staging: erofs: some compressed cluster should be submitted for corrupted images

2019-08-19 Thread Chao Yu
o keep the page > working properly (page unlocked with PG_error set, PG_uptodate > not set). > > Let's fix it now. > > Fixes: 3883a79abd02 ("staging: erofs: introduce VLE decompression support") > Cc: # 4.19+ > Si

Re: [PATCH] staging: erofs: refuse to mount images with malformed volume name

2019-08-18 Thread Chao Yu
n the future. > > [1] > https://lore.kernel.org/r/1133002215.69049.1566119033047.javamail.zim...@nod.at/ > > Reported-by: Richard Weinberger > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ dev

Re: [PATCH v3 RESEND] staging: erofs: fix an error handling in erofs_readdir()

2019-08-18 Thread Chao Yu
245.javamail.zim...@nod.at/ > > Reported-by: Richard Weinberger > Fixes: 3aa8ec716e52 ("staging: erofs: add directory operations") > Cc: # 4.19+ > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing lis

Re: [PATCH v2] staging: erofs: fix an error handling in erofs_readdir()

2019-08-18 Thread Chao Yu
Hi Xiang, On 2019-8-18 18:52, Gao Xiang wrote: > Hi Chao, > > On Sun, Aug 18, 2019 at 06:39:52PM +0800, Chao Yu wrote: >> On 2019-8-18 10:53, Matthew Wilcox wrote: >>> On Sun, Aug 18, 2019 at 10:32:45AM +0800, Gao Xiang wrote: >>>> On Sat, Aug 17, 2019 at 07

Re: [PATCH v2] staging: erofs: fix an error handling in erofs_readdir()

2019-08-18 Thread Chao Yu
On 2019-8-18 10:53, Matthew Wilcox wrote: > On Sun, Aug 18, 2019 at 10:32:45AM +0800, Gao Xiang wrote: >> On Sat, Aug 17, 2019 at 07:20:55PM -0700, Matthew Wilcox wrote: >>> On Sun, Aug 18, 2019 at 09:56:31AM +0800, Gao Xiang wrote: @@ -82,8 +82,12 @@ static int erofs_readdir(struct file *f, s

Re: [PATCH] erofs: move erofs out of staging

2019-08-18 Thread Chao Yu
Hi Richard, On 2019-8-18 17:21, Richard Weinberger wrote: > For normal use I see no problem at all. > I fear distros that try to mount anything you plug into your USB. > > At least SUSE already blacklists erofs: > https://github.com/openSUSE/suse-module-tools/blob/master/suse-module-tools.spec#L2

Re: [PATCH] staging: erofs: use common file type conversion

2019-08-16 Thread Chao Yu
type conversion"). > > [1] > https://lore.kernel.org/r/CAHk-=wiUs+b=ivkm3mvooxgvk7cmmc67ktmnaul0cd_cmmv...@mail.gmail.com/ > > Reported-by: Linus Torvalds > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ de

Re: [PATCH v2 3/3] staging: erofs: correct all misused ENOTSUPP

2019-08-14 Thread Chao Yu
On 2019/8/14 18:37, Gao Xiang wrote: > As Chao pointed out [1], ENOTSUPP is used for NFS > protocol only, we should use EOPNOTSUPP instead... > > [1] > https://lore.kernel.org/lkml/108ee2f9-75dd-b8ab-8da7-b81c17baf...@huawei.com/ > > Reported-by: Chao Yu > Signed-off-

Re: [PATCH RESEND 2/2] staging: erofs: differentiate unsupported on-disk format

2019-08-14 Thread Chao Yu
On 2019/8/14 12:32, Gao Xiang wrote: > For some specific fields, use ENOTSUPP instead of EIO > for values which look sane but aren't supported right now. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu > + return -ENOTSUPP; A little bit confused about

Re: [PATCH RESEND 1/2] staging: erofs: introduce EFSCORRUPTED and more logs

2019-08-14 Thread Chao Yu
by: Pavel Machek > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: erofs: removing an extra call to iloc() in fill_inode()

2019-08-13 Thread Chao Yu
On 2019/8/14 11:52, Pratik Shinde wrote: > Yes.since we already have a function with same name (and we are using it in > same > context). > 'inode_loc' was the most meaningful name I could come up with :) [snip] On Wed, Aug 14, 2019 at 7:37 AM Gao Xiang wrote: > iloc is the name of static inlin

Re: [PATCH] staging: erofs: removing an extra call to iloc() in fill_inode()

2019-08-13 Thread Chao Yu
bjection of this patch, but I'd like to > hear Chao/Greg's idea about this... It looks more clean. :) Nitpick, maybe change 'inode_loc' to shorter 'iloc' will be better. Reviewed-by: Chao Yu Thanks, > > Thanks, > Gao Xiang > >> --- >

Re: [PATCH 3/3] staging: erofs: xattr.c: avoid BUG_ON

2019-08-12 Thread Chao Yu
Hi Xiang, On 2019/8/13 11:57, Gao Xiang wrote: > Hi Chao, > > On Tue, Aug 13, 2019 at 11:20:22AM +0800, Chao Yu wrote: >> On 2019/8/13 10:30, Gao Xiang wrote: >>> Kill all the remaining BUG_ON in EROFS: >>> - one BUG_ON was used to detect xattr on-disk corrupt

Re: [PATCH 3/3] staging: erofs: xattr.c: avoid BUG_ON

2019-08-12 Thread Chao Yu
ON only in (eng) debugging version. BTW, do we need add WARN_ON() into DBG_BUGON() to show some details function or call stack in where we encounter the issue? > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@l

Re: [PATCH 2/3] staging: erofs: remove incomplete cleancache

2019-08-12 Thread Chao Yu
y: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 1/3] staging: erofs: inline erofs_inode_is_data_compressed()

2019-08-12 Thread Chao Yu
On 2019/8/13 10:30, Gao Xiang wrote: > As a helper in erofs_fs.h, erofs_inode_is_data_compressed() > should be inlined. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproj

Re: [PATCH v2 12/22] staging: erofs: drop __GFP_NOFAIL for managed inode

2019-07-31 Thread Chao Yu
On 2019/7/31 23:57, Gao Xiang wrote: > For historical reasons, __GFP_NOFAIL was set for managed inode. > It's no need using that since EROFS can handle it properly. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ deve

Re: [PATCH v2 08/22] staging: erofs: kill CONFIG_EROFS_FS_IO_MAX_RETRIES

2019-07-31 Thread Chao Yu
sted-by: David Sterba > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 07/22] staging: erofs: remove redundant #include "internal.h"

2019-07-31 Thread Chao Yu
On 2019/7/31 23:57, Gao Xiang wrote: > Because #include "internal.h" is included in xattr.h > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriver

Re: [PATCH 07/22] staging: erofs: remove redundant #include "internal.h"

2019-07-31 Thread Chao Yu
On 2019/7/31 20:54, Gao Xiang wrote: > > > On 2019/7/31 20:07, Chao Yu wrote: >> Hi Xiang, >> >> On 2019/7/31 15:08, Gao Xiang wrote: >>> Hi Chao, >>> >>> On 2019/7/31 15:03, Chao Yu wrote: >>>> On 2019/7/29 14:51, Gao Xiang

Re: [PATCH 08/22] staging: erofs: kill CONFIG_EROFS_FS_IO_MAX_RETRIES

2019-07-31 Thread Chao Yu
Hi Xiang, On 2019/7/31 15:11, Gao Xiang wrote: > Hi Chao, > > On 2019/7/31 15:05, Chao Yu wrote: >> On 2019/7/29 14:51, Gao Xiang wrote: >>> CONFIG_EROFS_FS_IO_MAX_RETRIES seems a runtime setting >>> and users have no idea about the change in behaviour. >>&

Re: [PATCH 07/22] staging: erofs: remove redundant #include "internal.h"

2019-07-31 Thread Chao Yu
Hi Xiang, On 2019/7/31 15:08, Gao Xiang wrote: > Hi Chao, > > On 2019/7/31 15:03, Chao Yu wrote: >> On 2019/7/29 14:51, Gao Xiang wrote: >>> Because #include "internal.h" is included in xattr.h >> >> I think it would be better to remove "interna

Re: [PATCH 22/22] staging: erofs: update Kconfig

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > Keep in line with erofs-outofstaging patchset: > - turn on CONFIG_EROFS_FS_ZIP by default; > - turn on CONFIG_EROFS_FS_SECURITY by default suggested by David; > - update Kconfig description. > > Signed-off-by: Gao Xiang Reviewed-by

Re: [PATCH 21/22] staging: erofs: update super.c

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > Keep in line with erofs-outofstaging patchset: > - "Chao Yu" is most commonly used in Linux community; Either is okay to me, anyway, thanks for the correction. :) BTW, I notice that .mailmap can map different email or name to single one on

Re: [PATCH 20/22] staging: erofs: tidy up internal.h

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > keep in line with erofs-outofstaging patchset: > - remove an extra #ifdef CONFIG_EROFS_FS_ZIP; > - add tags at the end of #endif acrossing several lines. > > Signed-off-by: Gao Xiang Reviewed-by: C

Re: [PATCH 19/22] staging: erofs: tidy up utils.c

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > keep in line with erofs-outofstaging patchset: > - Update comments in erofs_try_to_release_workgroup; > - code style cleanup. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ dev

Re: [PATCH 18/22] staging: erofs: turn cache strategies into mount options

2019-07-31 Thread Chao Yu
will be fallen out > over time, which can be refined in the later version if some > requirement is needed. Update related document as well. > > Suggested-by: Theodore Ts'o > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,

Re: [PATCH 17/22] staging: erofs: remove clusterbits in sbi

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > clustersize can now be set on per-file basis > rather than per-filesystem basis. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproj

Re: [PATCH 16/22] staging: erofs: tidy up decompression frontend

2019-07-31 Thread Chao Yu
scription. > > Signed-off-by: Gao Xiang I hope I don't miss anything, since this is so huge cleanup... Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 15/22] staging: erofs: remove redundant braces in inode.c

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > Remove redundant braces in inode.c since > these are all single statements. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproj

Re: [PATCH 14/22] staging: erofs: tidy up zpvec.h

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > - use shorter function names: > z_erofs_pagevec_enqueue and z_erofs_pagevec_dequeue; > - minor code cleanup. > > In order to keep in line with erofs-outofstaging patchset. > > Signed-off-by: Gao Xiang Reviewed

Re: [PATCH 13/22] staging: erofs: kill CONFIG_EROFS_FS_USE_VM_MAP_RAM

2019-07-31 Thread Chao Yu
/* retry two more times (totally 3 times) */ > - if (addr || ++i >= 3) > - return addr; > - vm_unmap_aliases(); > + if (!use_vmap) { Minor thing. if (use_vmap) return vmap(pages, count, VM_MAP, PAGE_KERNEL); while (

Re: [PATCH 12/22] staging: erofs: refine erofs_allocpage()

2019-07-31 Thread Chao Yu
lder) > static inline struct page *__stagingpage_alloc(struct list_head *pagepool, > gfp_t gfp) > { > - struct page *page = erofs_allocpage(pagepool, gfp); > + struct page *page = erofs_allocpage(pagepool, gfp, true); > > if (unlik

Re: [PATCH 11/22] staging: erofs: kill all failure handling in fill_super()

2019-07-31 Thread Chao Yu
mapping->a_ops = &managed_cache_aops; > mapping_set_gfp_mask(inode->i_mapping, > - GFP_NOFS | __GFP_HIGHMEM | > - __GFP_MOVABLE | __GFP_NOFAIL); > - return inode; > + GFP_NOFS | __GFP_HIGHMEM

Re: [PATCH 10/22] staging: erofs: kill sbi->dev_name

2019-07-31 Thread Chao Yu
r our debugging use and it's > better to just use s_id in community and delete > the whole erofs_mount_private stuff. > > Suggested-by: Al Viro > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___

Re: [PATCH 09/22] staging: erofs: clean up shrinker stuffs

2019-07-31 Thread Chao Yu
n; > - localize erofs_shrinker_info by introducing > erofs_init_shrinker and erofs_exit_shrinker. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverp

Re: [PATCH 08/22] staging: erofs: kill CONFIG_EROFS_FS_IO_MAX_RETRIES

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > CONFIG_EROFS_FS_IO_MAX_RETRIES seems a runtime setting > and users have no idea about the change in behaviour. > > Let's remove the setting currently and fold it into code, > turn it into a module parameter if it's really needed. > > Suggested-by: David Ster

Re: [PATCH 07/22] staging: erofs: remove redundant #include "internal.h"

2019-07-31 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > Because #include "internal.h" is included in xattr.h I think it would be better to remove "internal.h" in xattr.h, and include them both in .c file in where we need xattr definition. Thanks, ___ devel mailing list

Re: [PATCH 06/22] staging: erofs: clean up internal.h

2019-07-30 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > Tidy up relative order of variables / declarations in internal.h, > and moving some local static functions out to other files. > > No logic change. > > Signed-off-by: Gao Xiang Reviewed-by

Re: [PATCH 05/22] staging: erofs: sunset erofs_workstn_{lock,unlock}

2019-07-30 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > It was used for Linux backward compatibility, and no use > for upstream kernel. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproj

Re: [PATCH 04/22] staging: erofs: keep up erofs_fs.h with erofs-outofstaging patchset

2019-07-30 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > The main change is to reserve all checksums except for superblock, > since it's more useful to do block-based verity for read-only fs. > > Some comments change as well, which is minor. > > Signed-off-by: Gao Xiang Review

Re: [PATCH 03/22] staging: erofs: fix dummy functions erofs_{get, list}xattr

2019-07-30 Thread Chao Yu
"] > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 02/22] staging: erofs: rename source files for better understanding

2019-07-30 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > Keep in line with erofs-outofstaging patchset as well, see > https://lore.kernel.org/linux-fsdevel/20190725095658.155779-1-gaoxian...@huawei.com/ > > Signed-off-by: Gao Xiang Reviewed-by: Chao

Re: [PATCH 01/22] staging: erofs: update source file headers

2019-07-30 Thread Chao Yu
On 2019/7/29 14:51, Gao Xiang wrote: > - Use the correct style for all SPDX License Identifiers; > - Get rid of the unnecessary license boilerplate; > - Use "GPL-2.0-only" instead of "GPL-2.0" suggested-by Stephen. > > Signed-off-by: Gao Xi

Re: [PATCH] v3: staging: erofs: fix typo

2019-07-18 Thread Chao Yu
On 2019/7/18 4:11, Karen Palacio wrote: > Fix typo in Kconfig > > Signed-off-by: Karen Palacio Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH v2] staging: erofs: avoid opened loop codes

2019-07-16 Thread Chao Yu
Use __GFP_NOFAIL to avoid opened loop codes in z_erofs_vle_unzip(). Signed-off-by: Chao Yu --- v2: - change variable name from 'flags' to 'gfp_flags' to avoid common name. drivers/staging/erofs/unzip_vle.c | 16 1 file changed, 8 insertions(+), 8 deleti

[PATCH v3] staging: erofs: support bmap

2019-07-16 Thread Chao Yu
Add erofs_bmap() to support FIBMAP ioctl on flatmode inode. Reviewed-by: Gao Xiang Signed-off-by: Chao Yu --- v3: - use erofs_blk_t instead of unsigned int. - simply judgment condition. drivers/staging/erofs/data.c | 33 + 1 file changed, 33 insertions(+) diff

Re: [PATCH] staging: erofs: avoid opened loop codes

2019-07-16 Thread Chao Yu
Hi Xiang, On 2019/7/16 17:12, Gao Xiang wrote: > Hi Chao, > > On 2019/7/16 16:52, Chao Yu wrote: >> Use __GFP_NOFAIL to avoid opened loop codes in z_erofs_vle_unzip(). >> >> Signed-off-by: Chao Yu >> --- >> drivers/staging/erofs/unzip_vle.c | 17

Re: [PATCH v2] staging: erofs: support bmap

2019-07-16 Thread Chao Yu
Hi Xiang, On 2019/7/16 17:01, Gao Xiang wrote: > Hi Chao, > > Cc lkml mailing list? Oh, no problem, let me update my default cc list. > > On 2019/7/16 16:46, Chao Yu wrote: >> Add erofs_bmap() to support FIBMAP ioctl on flatmode inode. >> >> Signed-off-by: Ch

Re: [PATCH] staging: erofs: support bmap

2019-07-16 Thread Chao Yu
On 2019/7/16 15:37, Gao Xiang wrote: > > > On 2019/7/16 15:35, Chao Yu wrote: >> Hi Xiang, >> >> On 2019/7/16 15:19, Gao Xiang wrote: >>> Hi Chao, >>> >>> On 2019/7/16 15:05, Chao Yu wrote: >>>> Add erofs_bmap() to suppor

[PATCH] staging: erofs: avoid opened loop codes

2019-07-16 Thread Chao Yu
Use __GFP_NOFAIL to avoid opened loop codes in z_erofs_vle_unzip(). Signed-off-by: Chao Yu --- drivers/staging/erofs/unzip_vle.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c index

[PATCH v2] staging: erofs: support bmap

2019-07-16 Thread Chao Yu
Add erofs_bmap() to support FIBMAP ioctl on flatmode inode. Signed-off-by: Chao Yu --- v2: - support mapping normal blocks for inline inode suggested by Xiang - rebase to linux-next drivers/staging/erofs/data.c | 33 + 1 file changed, 33 insertions(+) diff --git

Re: [PATCH] staging: erofs: support bmap

2019-07-16 Thread Chao Yu
Hi Xiang, On 2019/7/16 15:19, Gao Xiang wrote: > Hi Chao, > > On 2019/7/16 15:05, Chao Yu wrote: >> Add erofs_bmap() to support FIBMAP ioctl on flatmode inode. >> >> Signed-off-by: Chao Yu >> --- >> drivers/staging/erofs/data.c | 29 +

[PATCH] staging: erofs: support bmap

2019-07-16 Thread Chao Yu
Add erofs_bmap() to support FIBMAP ioctl on flatmode inode. Signed-off-by: Chao Yu --- drivers/staging/erofs/data.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/staging/erofs/data.c b/drivers/staging/erofs/data.c index fbce71403d87..03da57f04347

Re: [PATCH] staging: erofs: Remove function erofs_kill_sb()

2019-07-12 Thread Chao Yu
On 2019/7/12 15:12, Nishka Dasgupta wrote: > Remove function erofs_kill_sb as all it does is call kill_block_super. > Modify references to the former to point to the latter. > Issue found with Coccinelle. > > Signed-off-by: Nishka Dasgupta Reviewed-by: C

Re: [PATCH] staging: erofs: fix LZ4 limited bounced page mis-reuse

2019-07-02 Thread Chao Yu
Hi xiang, On 2019/7/3 14:06, Gao Xiang wrote: > Hi Chao, > > On 2019/7/3 10:09, Gao Xiang wrote: >> >> >> On 2019/7/3 9:50, Chao Yu wrote: >>> On 2019/7/1 2:58, Gao Xiang wrote: >>>> From: Gao Xiang >>>> >>>> Like all lz7

Re: [PATCH] staging: erofs: fix LZ4 limited bounced page mis-reuse

2019-07-02 Thread Chao Yu
ANCE_PAGES); > + DBG_BUGON(top >= LZ4_MAX_DISTANCE_PAGES); > + availables[top++] = rq->out[i - LZ4_MAX_DISTANCE_PAGES]; Maybe we can change 'i - LZ4_MAX_DISTANCE_PAGES' to 'j' directly for better readability. Otherwise

Re: [PATCH] staging: erofs: don't check special inode layout

2019-06-29 Thread Chao Yu
: > erofs_err("inode[%s] file_type error =%d", > d->i_fullpath, > ``` > > No special inode layout operations, so this change should be fine. > > Thx. > >> >> I think that is fine in priciple, however, in case

Re: [PATCH] staging: erofs: Replace kzalloc(struct ..) with kzalloc(*ptr)

2019-06-27 Thread Chao Yu
On 2019/6/27 13:31, Shobhit Kukreti wrote: > Resolve checkpatch warning: > Prefer kzalloc(sizeof(*ptr)...) over kzalloc(sizeof(struct ..) > > Signed-off-by: Shobhit Kukreti Reviewed-by: Chao Yu Thanks, ___ devel mai

Re: [PATCH RESEND] staging: erofs: return the error value if fill_inline_data() fails

2019-06-26 Thread Chao Yu
; fill_inline_data() to stand for successful filling. > > Signed-off-by: Yue Hu Reviewed-by: Chao Yu Thanks, ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH RESEND] staging: erofs: remove unsupported ->datamode check in fill_inline_data()

2019-06-26 Thread Chao Yu
On 2019/6/26 11:28, Yue Hu wrote: > From: Yue Hu > > Already check if ->datamode is supported in read_inode(), no need to check > again in the next fill_inline_data() only called by fill_inode(). > > Signed-off-by: Yue Hu Reviewed

Re: [PATCH v2 5/8] staging: erofs: introduce generic decompression backend

2019-06-24 Thread Chao Yu
On 2019/6/21 18:42, Gao Xiang wrote: > Hi Chao, > > On 2019/6/21 17:46, Chao Yu wrote: >> On 2019/6/21 0:07, Gao Xiang wrote: >>> This patch adds a new generic decompression framework >>> in order to replace the old LZ4-specific decompression code. >>

Re: [PATCH v3 0/8] staging: erofs: decompression inplace approach

2019-06-24 Thread Chao Yu
On 2019/6/24 15:22, Gao Xiang wrote: > This is patch v3 of erofs decompression inplace approach, which is sent > out by my personal email since I'm out of office to attend Open Source > Summit China 2019 these days. No major change from PATCH v2 since no > noticeable issue raised from landing to ou

Re: [PATCH v3 3/8] staging: erofs: move per-CPU buffers implementation to utils.c

2019-06-24 Thread Chao Yu
further, but obvious > performanace regression (about 2% for sequential read) was > observed. > > Therefore let's leave it as it is instead, just move > to utils.c and I'll try to dig into the root cause later. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, _

Re: [PATCH v2 7/8] staging: erofs: switch to new decompression backend

2019-06-21 Thread Chao Yu
ssion > backend is used. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 8/8] staging: erofs: integrate decompression inplace

2019-06-21 Thread Chao Yu
on inplace > is enabled. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 6/8] staging: erofs: introduce LZ4 decompression inplace

2019-06-21 Thread Chao Yu
2be29dd48c8e8c > https://github.com/lz4/lz4/commit/5997e139f53169fa3a1c1b4418d2452a90b01602 > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v2 5/8] staging: erofs: introduce generic decompression backend

2019-06-21 Thread Chao Yu
el(&availables[j]->lru); > + DBG_BUGON(page_ref_count(availables[j]) != 1); > + } else { > + availables[j] = alloc_pages(GFP_KERNEL, 0); > + if (!availables[j]) > +

Re: [PATCH v2 4/8] staging: erofs: move stagingpage operations to compress.h

2019-06-21 Thread Chao Yu
On 2019/6/21 0:07, Gao Xiang wrote: > stagingpages are behaved as bounce pages for temporary use. > Move to compress.h since the upcoming decompressor will > allocate stagingpages as well. > > Signed-off-by: Gao Xiang Reviewed-by: C

Re: [PATCH v2 3/8] staging: erofs: move per-CPU buffers implementation to utils.c

2019-06-21 Thread Chao Yu
On 2019/6/21 0:07, Gao Xiang wrote: > +static inline void *erofs_get_pcpubuf(unsigned int pagenr) > +{ > + return ERR_PTR(-ENOTSUPP); > +} [snip] > + percpu_data = erofs_get_pcpubuf(0); If erofs_get_pcpubuf may return error once EROFS_PCPUBUF_NR_PAGES equals to zero, we'd better to check

Re: [PATCH v2 2/8] staging: erofs: add compacted compression indexes support

2019-06-21 Thread Chao Yu
/s) on enwik9 dataset if compacted 2B > feature is enabled. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu > +static int vle_legacy_load_cluster_from_disk(struct z_erofs_maprecorder *m, > + unsigned long lcn) > +{ >

  1   2   3   >