diff options
Diffstat (limited to 'fs/nilfs2/dir.c')
-rw-r--r-- | fs/nilfs2/dir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nilfs2/dir.c b/fs/nilfs2/dir.c index fc2bcfa599a3..d14e3b94d81f 100644 --- a/fs/nilfs2/dir.c +++ b/fs/nilfs2/dir.c | |||
@@ -83,8 +83,7 @@ static unsigned nilfs_last_byte(struct inode *inode, unsigned long page_nr) | |||
83 | static int nilfs_prepare_chunk(struct page *page, unsigned from, unsigned to) | 83 | static int nilfs_prepare_chunk(struct page *page, unsigned from, unsigned to) |
84 | { | 84 | { |
85 | loff_t pos = page_offset(page) + from; | 85 | loff_t pos = page_offset(page) + from; |
86 | return block_write_begin_newtrunc(NULL, page->mapping, pos, to - from, | 86 | return __block_write_begin(page, pos, to - from, nilfs_get_block); |
87 | 0, &page, NULL, nilfs_get_block); | ||
88 | } | 87 | } |
89 | 88 | ||
90 | static void nilfs_commit_chunk(struct page *page, | 89 | static void nilfs_commit_chunk(struct page *page, |