Re: [PATCH v3 1/2] vfs: add rcu-based find_inode variants for iget ops

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

 



On Tue, Jun 11, 2024 at 12:50:11PM +0200, Jan Kara wrote:
> On Tue 11-06-24 12:16:31, Mateusz Guzik wrote:
> > +/**
> > + * ilookup5 - search for an inode in the inode cache
>       ^^^ ilookup5_rcu
> 

fixed in my branch

> > + * @sb:		super block of file system to search
> > + * @hashval:	hash value (usually inode number) to search for
> > + * @test:	callback used for comparisons between inodes
> > + * @data:	opaque data pointer to pass to @test
> > + *
> > + * This is equivalent to ilookup5, except the @test callback must
> > + * tolerate the inode not being stable, including being mid-teardown.
> > + */
> ...
> > +struct inode *ilookup5_nowait_rcu(struct super_block *sb, unsigned long hashval,
> > +		int (*test)(struct inode *, void *), void *data);
> 
> I'd prefer wrapping the above so that it fits into 80 columns.
> 

the last comma is precisely at 80, but i can wrap it if you insist

> Otherwise feel free to add:
> 
> Reviewed-by: Jan Kara <jack@xxxxxxx>
> 

thanks

I'm going to wait for more feedback, tweak the commit message to stress
that this goes from 2 hash lock acquires to 1, maybe fix some typos and
submit a v4.

past that if people want something faster they are welcome to implement
or carry it over the finish line themselves.

> 									Honza
> -- 
> Jan Kara <jack@xxxxxxxx>
> SUSE Labs, CR




[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