]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ocfs2/mmap.c
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / fs / ocfs2 / mmap.c
index 9581d190f6e12346e70226c93458df0a1791abe0..a88707a0f4da57b1309876837e9bf4470ee53dea 100644 (file)
@@ -104,8 +104,8 @@ static int __ocfs2_page_mkwrite(struct file *file, struct buffer_head *di_bh,
        if (page->index == last_index)
                len = ((size - 1) & ~PAGE_CACHE_MASK) + 1;
 
-       ret = ocfs2_write_begin_nolock(file, mapping, pos, len, 0, &locked_page,
-                                      &fsdata, di_bh, page);
+       ret = ocfs2_write_begin_nolock(mapping, pos, len, OCFS2_WRITE_MMAP,
+                                      &locked_page, &fsdata, di_bh, page);
        if (ret) {
                if (ret != -ENOSPC)
                        mlog_errno(ret);