diff options
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r-- | fs/ocfs2/aops.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index bbe3f8b2d0e2..44ea5eb3fdc4 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -1278,7 +1278,8 @@ static int ocfs2_write_cluster(struct address_space *mapping, | |||
1278 | } else if (unwritten) { | 1278 | } else if (unwritten) { |
1279 | ret = ocfs2_mark_extent_written(inode, wc->w_di_bh, | 1279 | ret = ocfs2_mark_extent_written(inode, wc->w_di_bh, |
1280 | wc->w_handle, cpos, 1, phys, | 1280 | wc->w_handle, cpos, 1, phys, |
1281 | meta_ac, &wc->w_dealloc); | 1281 | meta_ac, &wc->w_dealloc, |
1282 | OCFS2_DINODE_EXTENT); | ||
1282 | if (ret < 0) { | 1283 | if (ret < 0) { |
1283 | mlog_errno(ret); | 1284 | mlog_errno(ret); |
1284 | goto out; | 1285 | goto out; |
@@ -1712,7 +1713,13 @@ int ocfs2_write_begin_nolock(struct address_space *mapping, | |||
1712 | * ocfs2_lock_allocators(). It greatly over-estimates | 1713 | * ocfs2_lock_allocators(). It greatly over-estimates |
1713 | * the work to be done. | 1714 | * the work to be done. |
1714 | */ | 1715 | */ |
1715 | ret = ocfs2_lock_allocators(inode, wc->w_di_bh, | 1716 | mlog(0, "extend inode %llu, i_size = %lld, di->i_clusters = %u," |
1717 | " clusters_to_add = %u, extents_to_split = %u\n", | ||
1718 | (unsigned long long)OCFS2_I(inode)->ip_blkno, | ||
1719 | (long long)i_size_read(inode), le32_to_cpu(di->i_clusters), | ||
1720 | clusters_to_alloc, extents_to_split); | ||
1721 | |||
1722 | ret = ocfs2_lock_allocators(inode, wc->w_di_bh, &di->id2.i_list, | ||
1716 | clusters_to_alloc, extents_to_split, | 1723 | clusters_to_alloc, extents_to_split, |
1717 | &data_ac, &meta_ac); | 1724 | &data_ac, &meta_ac); |
1718 | if (ret) { | 1725 | if (ret) { |