ocfs2: Fix estimate of necessary credits for mkdir
commit705773a6656bba66f2a80a44ddaacf9620df8a59
authorJan Kara <jack@suse.cz>
Thu, 3 Feb 2011 13:16:19 +0000 (3 14:16 +0100)
committerJoel Becker <jlbec@evilplan.org>
Sun, 20 Feb 2011 10:33:32 +0000 (20 02:33 -0800)
tree8fc55763274643daa997dbed87f728a59f5b6b4a
parent0cc9d5257857608ba85885b75fcada13d359b5d1
ocfs2: Fix estimate of necessary credits for mkdir

In the rare case that INLINE_DATA, INDEX_DIR, QUOTA, XATTR features are
disabled and both the allocation of the directory inode and the allocation
of the first directory block need to relink allocation group, there need
not be enough credits reserved in a transaction. Fix the estimate.

CC: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/journal.h