[Ocfs2-devel] [PATCH 2/3] Ocfs2: Add a new code 'OCFS2_INFO_FREEINODE' for o2info ioctl.

Joel Becker Joel.Becker at oracle.com
Mon Dec 6 17:07:46 PST 2010


On Tue, Nov 16, 2010 at 06:13:41PM +0800, Tristan Ye wrote:
> +	if (inode_alloc)
> +		iput(inode_alloc);

	Do the iput up in the calling function where it matches the
get_system_file_inode() call.  This just makes it easier to spot the
get/put pair.

Joel

-- 

"Under capitalism, man exploits man.  Under Communism, it's just 
   the opposite."
				 - John Kenneth Galbraith

Joel Becker
Senior Development Manager
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list