Re: [PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-29 Thread zc
在 2020/10/29 上午10:42, Al Viro 写道: On Tue, Oct 20, 2020 at 02:30:07PM +0800, Zou Cao wrote: +ssize_t regfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) +{ + struct file *file = iocb->ki_filp; + struct inode *inode = file->f_mapping->host; + ssize_t ret; + +

Re: [PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-29 Thread zc
在 2020/10/29 上午10:44, Al Viro 写道: On Wed, Oct 28, 2020 at 02:27:20PM +0800, zc wrote: Hi viro:    have time for reviewing this? Start with removing unused boilerplate. When quite a chunk of the codebase is simply never used, filtering _that_ out is on the author, not reviewers. sorry, i

Re: [PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-29 Thread Al Viro
On Wed, Oct 28, 2020 at 02:27:20PM +0800, zc wrote: > Hi viro: > >    have time for reviewing this? Start with removing unused boilerplate. When quite a chunk of the codebase is simply never used, filtering _that_ out is on the author, not reviewers.

Re: [PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-28 Thread Al Viro
On Tue, Oct 20, 2020 at 02:30:07PM +0800, Zou Cao wrote: > +ssize_t regfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) > +{ > + struct file *file = iocb->ki_filp; > + struct inode *inode = file->f_mapping->host; > + ssize_t ret; > + > + inode_lock(inode); > + ret =

Re: [PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-27 Thread zc
pending ? 在 2020/10/23 上午10:57, zc 写道: Hi viro:   Through regfs is very sample and easy,  but i think it is a Interest ,  could give  some suggestions? Regards, zc 在 2020/10/20 下午2:30, Zou Cao 写道: register filesystem is mapping the register into file dentry, it will use the io readio to

Re: [PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-22 Thread zc
Hi viro:   Through regfs is very sample and easy,  but i think it is a Interest ,  could give  some suggestions? Regards, zc 在 2020/10/20 下午2:30, Zou Cao 写道: register filesystem is mapping the register into file dentry, it will use the io readio to get the register val. DBT file is use to

[PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-19 Thread Zou Cao
register filesystem is mapping the register into file dentry, it will use the io readio to get the register val. DBT file is use to decript the register tree, you can use it as follow: mount -t regfs -o dtb=test.dtb none /mnt test.dts: / { compatible = "hisilicon,