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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Monday, October 1, 2007 - 11:19 am

On Mon, 1 Oct 2007, Christoph Hellwig wrote:

Ahh, ok. Then it actually makes sense. Although I'd prefer it if people 
planned on writing code like that more along the lines of

	error = PTR_ERR(inode);
	if (IS_ERR(inode)
		return ERR_PTR(error);

because let's face it, the compiler can turn this into nice code, and 
humans can read it much better even if it's got an "unnecessary" extra 
variable etc..

			Linus
-
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 ..., Linus Torvalds, (Mon Oct 1, 11:19 am)