ocfs2: Commit transactions in error cases -v2
authorWengang Wang <wen.gang.wang@oracle.com>
Wed, 12 Oct 2011 07:22:15 +0000 (15:22 +0800)
committerJoel Becker <jlbec@evilplan.org>
Thu, 17 Nov 2011 09:46:47 +0000 (01:46 -0800)
commitb8a0ae579fb8d9b21008ac386be08b9428902455
treecab8d712ee687c26bd2e1ce8ba7b069be4a7e92a
parent8298524803339a9a8df053ebdfebc2975ec55be9
ocfs2: Commit transactions in error cases -v2

There are three cases found that in error cases, journal transactions are not
committed nor aborted. We should take care of these case by committing the
transactions. Otherwise, there would left a journal handle which will lead to
, in same process context, the comming ocfs2_start_trans() gets wrong credits.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/alloc.c
fs/ocfs2/ioctl.c
fs/ocfs2/xattr.c