diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-04-07 01:40:57 +0200 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-04-07 18:40:17 +0200 |
commit | 035a571120ddbe4f92b91bbe46f3eff05b6e43eb (patch) | |
tree | 4531b51dab77f7c715b61b74d69e78093b38e16c /fs/ocfs2 | |
parent | nilfs2: support nanosecond timestamp (diff) | |
download | linux-035a571120ddbe4f92b91bbe46f3eff05b6e43eb.tar.xz linux-035a571120ddbe4f92b91bbe46f3eff05b6e43eb.zip |
ocfs2: Reserve 1 more cluster in expanding_inline_dir for indexed dir.
In ocfs2_expand_inline_dir, we calculate whether we need 1 extra
cluster if we can't store the dx inline the root and save it in
dx_alloc. So add it when we call ocfs2_reserve_clusters.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c index e71160cda110..07d89204f0d3 100644 --- a/fs/ocfs2/dir.c +++ b/fs/ocfs2/dir.c @@ -2934,7 +2934,7 @@ static int ocfs2_expand_inline_dir(struct inode *dir, struct buffer_head *di_bh, */ BUG_ON(alloc > 2); - ret = ocfs2_reserve_clusters(osb, alloc, &data_ac); + ret = ocfs2_reserve_clusters(osb, alloc + dx_alloc, &data_ac); if (ret) { mlog_errno(ret); goto out; |