ocfs2: clean up bh null checks
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 24 Jan 2008 02:35:31 +0000 (18:35 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 25 Jan 2008 23:05:48 +0000 (15:05 -0800)
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 <mark.fasheh@oracle.com>

No differences found