From: Tao Ma Date: Mon, 21 Feb 2011 03:18:30 +0000 (+0800) Subject: ocfs2: Little refactoring against ocfs2_iget. X-Git-Tag: v2.6.39-rc1~26^2~1^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6218b90e7669d83cb8ad744f3400205d260597f2;p=pandora-kernel.git ocfs2: Little refactoring against ocfs2_iget. ocfs2_iget is used to get/create inode. Only iget5_locked will give us an inode = NULL. So move this check ahead of ocfs2_read_locked_inode so that we don't need to check inode before we read and unlock inode. This is also helpful for trace event(see the next patch). Signed-off-by: Tao Ma --- Reading git-diff-tree failed