Re: [PATCH 7/5] Optimise d_find_alias()

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

 



Andrew Morton <[email protected]> wrote:

> How can we get away without a barrier?

Is this what you're thinking of:

	struct dentry * d_find_alias(struct inode *inode)
	{
		struct dentry *de = NULL;

		smp_rb();
		if (!list_empty(&inode->i_dentry)) {
			spin_lock(&dcache_lock);
			de = __d_find_alias(inode, 0);
			spin_unlock(&dcache_lock);
		}
		return de;
	}


David
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux