aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-05-09 18:16:19 -0400
committerMark Fasheh <mark.fasheh@oracle.com>2007-07-10 20:31:51 -0400
commit7307de80510a70e5e5aa98de1e80ccbb7d90a3a8 (patch)
treeba45bef3e0b875feb67b97aebe8295159852ef97 /fs/ocfs2/file.c
parent607d44aa3fa6f40b0facaf1028886ed362b92682 (diff)
ocfs2: shared writeable mmap
Implement cluster consistent shared writeable mappings using the ->page_mkwrite() callback. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r--fs/ocfs2/file.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 4c850d00c269..a80f31776d94 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -1001,6 +1001,13 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
1001 goto bail_unlock; 1001 goto bail_unlock;
1002 } 1002 }
1003 1003
1004 /*
1005 * This will intentionally not wind up calling vmtruncate(),
1006 * since all the work for a size change has been done above.
1007 * Otherwise, we could get into problems with truncate as
1008 * ip_alloc_sem is used there to protect against i_size
1009 * changes.
1010 */
1004 status = inode_setattr(inode, attr); 1011 status = inode_setattr(inode, attr);
1005 if (status < 0) { 1012 if (status < 0) {
1006 mlog_errno(status); 1013 mlog_errno(status);