aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-05-09 16:40:18 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2007-07-10 20:19:57 -0400
commit2e89b2e48e1da09ed483f195968c9172aa95b5e2 (patch)
tree3e81f49c13134ebcbf4572474ad47b65e5ecffba /fs/ocfs2/alloc.c
parentbaf4661a8225d3a39622b795a8db0e6aa845c1ec (diff)
ocfs2: take ip_alloc_sem during entire truncate
Use of the alloc sem during truncate was too narrow - we want to protect the i_size change and page truncation against mmap now. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r--fs/ocfs2/alloc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 19712a7d145f..02b6e7af8edb 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -3631,8 +3631,6 @@ int ocfs2_commit_truncate(struct ocfs2_super *osb,
3631 3631
3632 mlog_entry_void(); 3632 mlog_entry_void();
3633 3633
3634 down_write(&OCFS2_I(inode)->ip_alloc_sem);
3635
3636 new_highest_cpos = ocfs2_clusters_for_bytes(osb->sb, 3634 new_highest_cpos = ocfs2_clusters_for_bytes(osb->sb,
3637 i_size_read(inode)); 3635 i_size_read(inode));
3638 3636
@@ -3754,7 +3752,6 @@ start:
3754 goto start; 3752 goto start;
3755 3753
3756bail: 3754bail:
3757 up_write(&OCFS2_I(inode)->ip_alloc_sem);
3758 3755
3759 ocfs2_schedule_truncate_log_flush(osb, 1); 3756 ocfs2_schedule_truncate_log_flush(osb, 1);
3760 3757