diff options
Diffstat (limited to 'fs/adfs/inode.c')
-rw-r--r-- | fs/adfs/inode.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c index 7e7a04be1278..e647200262a2 100644 --- a/fs/adfs/inode.c +++ b/fs/adfs/inode.c | |||
@@ -61,10 +61,14 @@ static int adfs_readpage(struct file *file, struct page *page) | |||
61 | return block_read_full_page(page, adfs_get_block); | 61 | return block_read_full_page(page, adfs_get_block); |
62 | } | 62 | } |
63 | 63 | ||
64 | static int adfs_prepare_write(struct file *file, struct page *page, unsigned int from, unsigned int to) | 64 | static int adfs_write_begin(struct file *file, struct address_space *mapping, |
65 | loff_t pos, unsigned len, unsigned flags, | ||
66 | struct page **pagep, void **fsdata) | ||
65 | { | 67 | { |
66 | return cont_prepare_write(page, from, to, adfs_get_block, | 68 | *pagep = NULL; |
67 | &ADFS_I(page->mapping->host)->mmu_private); | 69 | return cont_write_begin(file, mapping, pos, len, flags, pagep, fsdata, |
70 | adfs_get_block, | ||
71 | &ADFS_I(mapping->host)->mmu_private); | ||
68 | } | 72 | } |
69 | 73 | ||
70 | static sector_t _adfs_bmap(struct address_space *mapping, sector_t block) | 74 | static sector_t _adfs_bmap(struct address_space *mapping, sector_t block) |
@@ -76,8 +80,8 @@ static const struct address_space_operations adfs_aops = { | |||
76 | .readpage = adfs_readpage, | 80 | .readpage = adfs_readpage, |
77 | .writepage = adfs_writepage, | 81 | .writepage = adfs_writepage, |
78 | .sync_page = block_sync_page, | 82 | .sync_page = block_sync_page, |
79 | .prepare_write = adfs_prepare_write, | 83 | .write_begin = adfs_write_begin, |
80 | .commit_write = generic_commit_write, | 84 | .write_end = generic_write_end, |
81 | .bmap = _adfs_bmap | 85 | .bmap = _adfs_bmap |
82 | }; | 86 | }; |
83 | 87 | ||