diff options
author | Dave Chinner <david@fromorbit.com> | 2014-05-14 19:36:35 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-05-14 19:36:35 -0400 |
commit | fdd3a2ae2e48310491e605c46201c95629dd450b (patch) | |
tree | 2a9361017d5fad1b39e77b8bb5eb1fd45cea0597 /fs/xfs/xfs_buf.c | |
parent | ee4eec478be4677b93775d17bc079efb5922b276 (diff) | |
parent | 5e06d148949bb79af429c46afb4b81bc31308f6e (diff) |
Merge branch 'xfs-unused-args-cleanup' into for-next
Diffstat (limited to 'fs/xfs/xfs_buf.c')
-rw-r--r-- | fs/xfs/xfs_buf.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index cb10a0aaab3a..7a34a1ae6552 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c | |||
@@ -216,8 +216,7 @@ _xfs_buf_alloc( | |||
216 | STATIC int | 216 | STATIC int |
217 | _xfs_buf_get_pages( | 217 | _xfs_buf_get_pages( |
218 | xfs_buf_t *bp, | 218 | xfs_buf_t *bp, |
219 | int page_count, | 219 | int page_count) |
220 | xfs_buf_flags_t flags) | ||
221 | { | 220 | { |
222 | /* Make sure that we have a page list */ | 221 | /* Make sure that we have a page list */ |
223 | if (bp->b_pages == NULL) { | 222 | if (bp->b_pages == NULL) { |
@@ -330,7 +329,7 @@ use_alloc_page: | |||
330 | end = (BBTOB(bp->b_maps[0].bm_bn + bp->b_length) + PAGE_SIZE - 1) | 329 | end = (BBTOB(bp->b_maps[0].bm_bn + bp->b_length) + PAGE_SIZE - 1) |
331 | >> PAGE_SHIFT; | 330 | >> PAGE_SHIFT; |
332 | page_count = end - start; | 331 | page_count = end - start; |
333 | error = _xfs_buf_get_pages(bp, page_count, flags); | 332 | error = _xfs_buf_get_pages(bp, page_count); |
334 | if (unlikely(error)) | 333 | if (unlikely(error)) |
335 | return error; | 334 | return error; |
336 | 335 | ||
@@ -778,7 +777,7 @@ xfs_buf_associate_memory( | |||
778 | bp->b_pages = NULL; | 777 | bp->b_pages = NULL; |
779 | bp->b_addr = mem; | 778 | bp->b_addr = mem; |
780 | 779 | ||
781 | rval = _xfs_buf_get_pages(bp, page_count, 0); | 780 | rval = _xfs_buf_get_pages(bp, page_count); |
782 | if (rval) | 781 | if (rval) |
783 | return rval; | 782 | return rval; |
784 | 783 | ||
@@ -811,7 +810,7 @@ xfs_buf_get_uncached( | |||
811 | goto fail; | 810 | goto fail; |
812 | 811 | ||
813 | page_count = PAGE_ALIGN(numblks << BBSHIFT) >> PAGE_SHIFT; | 812 | page_count = PAGE_ALIGN(numblks << BBSHIFT) >> PAGE_SHIFT; |
814 | error = _xfs_buf_get_pages(bp, page_count, 0); | 813 | error = _xfs_buf_get_pages(bp, page_count); |
815 | if (error) | 814 | if (error) |
816 | goto fail_free_buf; | 815 | goto fail_free_buf; |
817 | 816 | ||
@@ -1615,7 +1614,6 @@ xfs_free_buftarg( | |||
1615 | int | 1614 | int |
1616 | xfs_setsize_buftarg( | 1615 | xfs_setsize_buftarg( |
1617 | xfs_buftarg_t *btp, | 1616 | xfs_buftarg_t *btp, |
1618 | unsigned int blocksize, | ||
1619 | unsigned int sectorsize) | 1617 | unsigned int sectorsize) |
1620 | { | 1618 | { |
1621 | /* Set up metadata sector size info */ | 1619 | /* Set up metadata sector size info */ |
@@ -1650,16 +1648,13 @@ xfs_setsize_buftarg_early( | |||
1650 | xfs_buftarg_t *btp, | 1648 | xfs_buftarg_t *btp, |
1651 | struct block_device *bdev) | 1649 | struct block_device *bdev) |
1652 | { | 1650 | { |
1653 | return xfs_setsize_buftarg(btp, PAGE_SIZE, | 1651 | return xfs_setsize_buftarg(btp, bdev_logical_block_size(bdev)); |
1654 | bdev_logical_block_size(bdev)); | ||
1655 | } | 1652 | } |
1656 | 1653 | ||
1657 | xfs_buftarg_t * | 1654 | xfs_buftarg_t * |
1658 | xfs_alloc_buftarg( | 1655 | xfs_alloc_buftarg( |
1659 | struct xfs_mount *mp, | 1656 | struct xfs_mount *mp, |
1660 | struct block_device *bdev, | 1657 | struct block_device *bdev) |
1661 | int external, | ||
1662 | const char *fsname) | ||
1663 | { | 1658 | { |
1664 | xfs_buftarg_t *btp; | 1659 | xfs_buftarg_t *btp; |
1665 | 1660 | ||