diff options
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/ops_fstype.c | 4 | ||||
-rw-r--r-- | fs/gfs2/rgrp.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/ops_fstype.c b/fs/gfs2/ops_fstype.c index f234aba36fb8..cc34f271b3e7 100644 --- a/fs/gfs2/ops_fstype.c +++ b/fs/gfs2/ops_fstype.c | |||
@@ -525,11 +525,11 @@ static int init_sb(struct gfs2_sbd *sdp, int silent) | |||
525 | } | 525 | } |
526 | 526 | ||
527 | /* Set up the buffer cache and SB for real */ | 527 | /* Set up the buffer cache and SB for real */ |
528 | if (sdp->sd_sb.sb_bsize < bdev_hardsect_size(sb->s_bdev)) { | 528 | if (sdp->sd_sb.sb_bsize < bdev_logical_block_size(sb->s_bdev)) { |
529 | ret = -EINVAL; | 529 | ret = -EINVAL; |
530 | fs_err(sdp, "FS block size (%u) is too small for device " | 530 | fs_err(sdp, "FS block size (%u) is too small for device " |
531 | "block size (%u)\n", | 531 | "block size (%u)\n", |
532 | sdp->sd_sb.sb_bsize, bdev_hardsect_size(sb->s_bdev)); | 532 | sdp->sd_sb.sb_bsize, bdev_logical_block_size(sb->s_bdev)); |
533 | goto out; | 533 | goto out; |
534 | } | 534 | } |
535 | if (sdp->sd_sb.sb_bsize > PAGE_SIZE) { | 535 | if (sdp->sd_sb.sb_bsize > PAGE_SIZE) { |
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 6122c7ee3648..de3239731db8 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -842,7 +842,7 @@ static void gfs2_rgrp_send_discards(struct gfs2_sbd *sdp, u64 offset, | |||
842 | struct super_block *sb = sdp->sd_vfs; | 842 | struct super_block *sb = sdp->sd_vfs; |
843 | struct block_device *bdev = sb->s_bdev; | 843 | struct block_device *bdev = sb->s_bdev; |
844 | const unsigned int sects_per_blk = sdp->sd_sb.sb_bsize / | 844 | const unsigned int sects_per_blk = sdp->sd_sb.sb_bsize / |
845 | bdev_hardsect_size(sb->s_bdev); | 845 | bdev_logical_block_size(sb->s_bdev); |
846 | u64 blk; | 846 | u64 blk; |
847 | sector_t start = 0; | 847 | sector_t start = 0; |
848 | sector_t nr_sects = 0; | 848 | sector_t nr_sects = 0; |