Skip to content
  • Mark Fasheh's avatar
    ocfs2: clean up bh null checks · 2fe5c1d7
    Mark Fasheh authored
    
    
    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>
    2fe5c1d7