git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ocfs2: fix start offset to ocfs2_zero_range_for_truncate()
[pandora-kernel.git]
/
fs
/
ocfs2
/
journal.h
diff --git
a/fs/ocfs2/journal.h
b/fs/ocfs2/journal.h
index
68cf2f6
..
a3385b6
100644
(file)
--- a/
fs/ocfs2/journal.h
+++ b/
fs/ocfs2/journal.h
@@
-441,10
+441,11
@@
static inline int ocfs2_mknod_credits(struct super_block *sb, int is_dir,
#define OCFS2_SIMPLE_DIR_EXTEND_CREDITS (2)
/* file update (nlink, etc) + directory mtime/ctime + dir entry block + quota
#define OCFS2_SIMPLE_DIR_EXTEND_CREDITS (2)
/* file update (nlink, etc) + directory mtime/ctime + dir entry block + quota
- * update on dir + index leaf + dx root update for free list */
+ * update on dir + index leaf + dx root update for free list +
+ * previous dirblock update in the free list */
static inline int ocfs2_link_credits(struct super_block *sb)
{
static inline int ocfs2_link_credits(struct super_block *sb)
{
- return 2*OCFS2_INODE_UPDATE_CREDITS +
3
+
+ return 2*OCFS2_INODE_UPDATE_CREDITS +
4
+
ocfs2_quota_trans_credits(sb);
}
ocfs2_quota_trans_credits(sb);
}