Re: [PATCH 01/22] fs: Pass an iocb to generic_perform_write()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 22, 2022 at 10:51:39PM -0800, Christoph Hellwig wrote:
> > -extern ssize_t generic_perform_write(struct file *, struct iov_iter *, loff_t);
> > +extern ssize_t generic_perform_write(struct kiocb *, struct iov_iter *);
> 
> Please drop the extern and spell out the parameter names while you're at
> it.

I don't mind dropping the 'extern', but I don't see the value in
naming the parameters.  For something like 'int' or 'void *', you need
to know what kind of thing you're dealing with, but if you're passing
one kiocb, calling it 'iocb' gives no extra information.  If you're
passing two, then knowing which is 'src' and which is 'dest' is useful.

> Otherwise looks fine:
> 
> Reviewed-by: Christoph Hellwig <hch@xxxxxx>



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux