introduce __block_write_begin
[deliverable/linux.git] / fs / nilfs2 / dir.c
index fc2bcfa599a35bd477d84363332229a820d1b99f..d14e3b94d81fb4f58376dfa0a08b09f769fa136d 100644 (file)
@@ -83,8 +83,7 @@ static unsigned nilfs_last_byte(struct inode *inode, unsigned long page_nr)
 static int nilfs_prepare_chunk(struct page *page, unsigned from, unsigned to)
 {
        loff_t pos = page_offset(page) + from;
-       return block_write_begin_newtrunc(NULL, page->mapping, pos, to - from,
-                                         0, &page, NULL, nilfs_get_block);
+       return __block_write_begin(page, pos, to - from, nilfs_get_block);
 }
 
 static void nilfs_commit_chunk(struct page *page,
This page took 0.024755 seconds and 5 git commands to generate.