diff options
| author | Nick Piggin <npiggin@suse.de> | 2007-10-16 04:25:23 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:42:57 -0400 |
| commit | b4585729f0b616c95aacafb8c8cb5e1af0d4242f (patch) | |
| tree | d87045fed9cf165dca1e3e41802f5c2f7e2bbf09 /fs/adfs | |
| parent | d5c5f84ba9b9138b03ba90f1b7f83a379cfaea6a (diff) | |
fs: adfs convert to new aops
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/adfs')
| -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 7e7a04be127..e647200262a 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 | ||
