]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Fix estimate of necessary credits for mkdir
authorJan Kara <jack@suse.cz>
Thu, 3 Feb 2011 13:16:19 +0000 (14:16 +0100)
committerJoel Becker <jlbec@evilplan.org>
Sun, 20 Feb 2011 10:33:32 +0000 (02:33 -0800)
commitfc235e20049d367e6121a69f4d6d3e686a7dfce3
tree8fc55763274643daa997dbed87f728a59f5b6b4a
parent654dadd9c4040ca4f52b54c14f96eb4d42784a2a
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