File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ struct hfsplus_sb_info {
156156
157157 /* Runtime variables */
158158 u32 blockoffset ;
159+ u32 min_io_size ;
159160 sector_t part_start ;
160161 sector_t sect_count ;
161162 int fs_shift ;
@@ -307,7 +308,7 @@ struct hfsplus_readdir_data {
307308 */
308309static inline unsigned short hfsplus_min_io_size (struct super_block * sb )
309310{
310- return max_t (unsigned short , bdev_logical_block_size (sb -> s_bdev ) ,
311+ return max_t (unsigned short , HFSPLUS_SB (sb ) -> min_io_size ,
311312 HFSPLUS_SECTOR_SIZE );
312313}
313314
Original file line number Diff line number Diff line change @@ -172,6 +172,8 @@ int hfsplus_read_wrapper(struct super_block *sb)
172172 if (!blocksize )
173173 goto out ;
174174
175+ sbi -> min_io_size = blocksize ;
176+
175177 if (hfsplus_get_last_session (sb , & part_start , & part_size ))
176178 goto out ;
177179
You can’t perform that action at this time.
0 commit comments