Skip to content
Commit 2fe5c1d7 authored by Mark Fasheh's avatar Mark Fasheh
Browse files

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: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 7ec373cf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment