]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ocfs2: do not BUG if jbd2_journal_dirty_metadata fails
authorJoseph Qi <joseph.qi@huawei.com>
Wed, 24 Jun 2015 23:55:12 +0000 (16:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Jun 2015 00:49:39 +0000 (17:49 -0700)
commite272e7f0fbfbe4e6e5d89cd61064d6dddd73e81b
treec08cae5a726621119fcdb90d9798747d4e352497
parent099768b0c605f55167c0c211afbfeeeea79b56eb
ocfs2: do not BUG if jbd2_journal_dirty_metadata fails

jbd2_journal_dirty_metadata may fail.  Currently it cannot take care of
non zero return value and just BUG in ocfs2_journal_dirty.  This patch is
aborting the handle and journal instead of BUG.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: joyce.xue <xuejiufei@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/journal.c