diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 97fc056130eb..c02f7c5b7462 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -1310,20 +1310,21 @@ xfs_get_block( | |||
1310 | struct buffer_head *bh_result, | 1310 | struct buffer_head *bh_result, |
1311 | int create) | 1311 | int create) |
1312 | { | 1312 | { |
1313 | return __xfs_get_block(inode, iblock, 0, bh_result, | 1313 | return __xfs_get_block(inode, iblock, |
1314 | create, 0, BMAPI_WRITE); | 1314 | bh_result->b_size >> inode->i_blkbits, |
1315 | bh_result, create, 0, BMAPI_WRITE); | ||
1315 | } | 1316 | } |
1316 | 1317 | ||
1317 | STATIC int | 1318 | STATIC int |
1318 | xfs_get_blocks_direct( | 1319 | xfs_get_blocks_direct( |
1319 | struct inode *inode, | 1320 | struct inode *inode, |
1320 | sector_t iblock, | 1321 | sector_t iblock, |
1321 | unsigned long max_blocks, | ||
1322 | struct buffer_head *bh_result, | 1322 | struct buffer_head *bh_result, |
1323 | int create) | 1323 | int create) |
1324 | { | 1324 | { |
1325 | return __xfs_get_block(inode, iblock, max_blocks, bh_result, | 1325 | return __xfs_get_block(inode, iblock, |
1326 | create, 1, BMAPI_WRITE|BMAPI_DIRECT); | 1326 | bh_result->b_size >> inode->i_blkbits, |
1327 | bh_result, create, 1, BMAPI_WRITE|BMAPI_DIRECT); | ||
1327 | } | 1328 | } |
1328 | 1329 | ||
1329 | STATIC void | 1330 | STATIC void |
@@ -1442,14 +1443,14 @@ xfs_vm_readpages( | |||
1442 | return mpage_readpages(mapping, pages, nr_pages, xfs_get_block); | 1443 | return mpage_readpages(mapping, pages, nr_pages, xfs_get_block); |
1443 | } | 1444 | } |
1444 | 1445 | ||
1445 | STATIC int | 1446 | STATIC void |
1446 | xfs_vm_invalidatepage( | 1447 | xfs_vm_invalidatepage( |
1447 | struct page *page, | 1448 | struct page *page, |
1448 | unsigned long offset) | 1449 | unsigned long offset) |
1449 | { | 1450 | { |
1450 | xfs_page_trace(XFS_INVALIDPAGE_ENTER, | 1451 | xfs_page_trace(XFS_INVALIDPAGE_ENTER, |
1451 | page->mapping->host, page, offset); | 1452 | page->mapping->host, page, offset); |
1452 | return block_invalidatepage(page, offset); | 1453 | block_invalidatepage(page, offset); |
1453 | } | 1454 | } |
1454 | 1455 | ||
1455 | struct address_space_operations xfs_address_space_operations = { | 1456 | struct address_space_operations xfs_address_space_operations = { |