From: Mark Fasheh Date: Thu, 24 Jan 2008 02:35:31 +0000 (-0800) Subject: ocfs2: clean up bh null checks X-Git-Tag: v2.6.25-rc1~1232^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fe5c1d7eb88830b09c863a4b5b3279dc120f3af;p=pandora-kernel.git ocfs2: clean up bh null checks If we know a buffer_head is non-null, then brelse() is unnecessary and put_bh() can be used instead. Also, an explicit check for NULL is unnecessary when using brelse(). This patch only covers buffer_head_io.c and resize.c, which have recently added code which exhibits this problem. Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed