From 8ac7f42cfda493f8a4af6d0a6467b5738a085546 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Tue, 11 May 2010 17:04:14 +0200 Subject: [PATCH] --- yaml --- r: 196259 b: refs/heads/master c: 832d09cf1438bd172f69478bde74f20f05ec0115 h: refs/heads/master i: 196257: 40f454a978fe6544afeb3c310e0fff2dc23ce5ce 196255: 368235305fbfb583a9b5e7df7d0d7dce4aa13711 v: v3 --- [refs] | 2 +- trunk/fs/ocfs2/quota_global.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index e7de680cb066..31565de5b8e0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fb8dd8d780140a3f0e9074831a59054fec6cc451 +refs/heads/master: 832d09cf1438bd172f69478bde74f20f05ec0115 diff --git a/trunk/fs/ocfs2/quota_global.c b/trunk/fs/ocfs2/quota_global.c index 1e3e0d5b3ae7..734995823740 100644 --- a/trunk/fs/ocfs2/quota_global.c +++ b/trunk/fs/ocfs2/quota_global.c @@ -468,9 +468,10 @@ static int ocfs2_global_qinit_alloc(struct super_block *sb, int type) static int ocfs2_calc_global_qinit_credits(struct super_block *sb, int type) { - /* We modify all the allocated blocks, tree root, and info block */ + /* We modify all the allocated blocks, tree root, info block and + * the inode */ return (ocfs2_global_qinit_alloc(sb, type) + 2) * - OCFS2_QUOTA_BLOCK_UPDATE_CREDITS; + OCFS2_QUOTA_BLOCK_UPDATE_CREDITS + 1; } /* Sync local information about quota modifications with global quota file.