Re: [PATCH 07/30] IGET: Stop BEFS from using iget() and read_inode()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Howells
Date: Tuesday, October 2, 2007 - 5:32 am

Zach Brown <zab@zabbo.net> wrote:


How about ERR_CAST() instead?  Or maybe CAST_ERR()?

	struct dentry *blah(...)
	{
		struct inode *inode;

		inode = thing(...);
		if (IS_ERR(inode))
			return ERR_CAST(inode);
	}

Where ERR_CAST is defined as:

	static inline void *ERR_CAST(const void *error)
	{
		return (void *) x;
	}

David
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/30] Remove iget() and read_inode(), David Howells, (Mon Oct 1, 6:09 am)
[PATCH 02/30] IGET: Use iget_failed() in AFS, David Howells, (Mon Oct 1, 6:09 am)
[PATCH 03/30] IGET: Use iget_failed() in GFS2, David Howells, (Mon Oct 1, 6:09 am)
[PATCH 18/30] IGET: Stop ISOFS from using read_inode(), David Howells, (Mon Oct 1, 6:10 am)
Re: [PATCH 07/30] IGET: Stop BEFS from using iget() and re ..., Christoph Hellwig, (Mon Oct 1, 11:06 am)
Re: [PATCH 07/30] IGET: Stop BEFS from using iget() and re ..., David Howells, (Tue Oct 2, 5:32 am)