login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Zach Brown <zab@...>, Linus Torvalds <torvalds@...>
Cc: <dhowells@...>, Christoph Hellwig <hch@...>, <viro@...>, <akpm@...>, <linux-kernel@...>, <linux-fsdevel@...>
Date: Tuesday, October 2, 2007 - 8: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, 9:09 am)
[PATCH 18/30] IGET: Stop ISOFS from using read_inode(), David Howells, (Mon Oct 1, 9:10 am)
Re: [PATCH 07/30] IGET: Stop BEFS from using iget() and read..., David Howells, (Tue Oct 2, 8:32 am)
[PATCH 03/30] IGET: Use iget_failed() in GFS2, David Howells, (Mon Oct 1, 9:09 am)
[PATCH 02/30] IGET: Use iget_failed() in AFS, David Howells, (Mon Oct 1, 9:09 am)
speck-geostationary