diff options
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index a79b84f8b55c..c02f7c5b7462 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -1319,12 +1319,12 @@ STATIC int | |||
1319 | xfs_get_blocks_direct( | 1319 | xfs_get_blocks_direct( |
1320 | struct inode *inode, | 1320 | struct inode *inode, |
1321 | sector_t iblock, | 1321 | sector_t iblock, |
1322 | unsigned long max_blocks, | ||
1323 | struct buffer_head *bh_result, | 1322 | struct buffer_head *bh_result, |
1324 | int create) | 1323 | int create) |
1325 | { | 1324 | { |
1326 | return __xfs_get_block(inode, iblock, max_blocks, bh_result, | 1325 | return __xfs_get_block(inode, iblock, |
1327 | create, 1, BMAPI_WRITE|BMAPI_DIRECT); | 1326 | bh_result->b_size >> inode->i_blkbits, |
1327 | bh_result, create, 1, BMAPI_WRITE|BMAPI_DIRECT); | ||
1328 | } | 1328 | } |
1329 | 1329 | ||
1330 | STATIC void | 1330 | STATIC void |