ocfs2: take ip_alloc_sem during entire truncate
authorMark Fasheh <mark.fasheh@oracle.com>
Wed, 9 May 2007 20:40:18 +0000 (13:40 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 11 Jul 2007 00:19:57 +0000 (17:19 -0700)
commit2e89b2e48e1da09ed483f195968c9172aa95b5e2
tree3e81f49c13134ebcbf4572474ad47b65e5ecffba
parentbaf4661a8225d3a39622b795a8db0e6aa845c1ec
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>
fs/ocfs2/alloc.c
fs/ocfs2/file.c