File tree 2 files changed +4
-1
lines changed 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 {
156
156
157
157
/* Runtime variables */
158
158
u32 blockoffset ;
159
+ u32 min_io_size ;
159
160
sector_t part_start ;
160
161
sector_t sect_count ;
161
162
int fs_shift ;
@@ -307,7 +308,7 @@ struct hfsplus_readdir_data {
307
308
*/
308
309
static inline unsigned short hfsplus_min_io_size (struct super_block * sb )
309
310
{
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 ,
311
312
HFSPLUS_SECTOR_SIZE );
312
313
}
313
314
Original file line number Diff line number Diff line change @@ -172,6 +172,8 @@ int hfsplus_read_wrapper(struct super_block *sb)
172
172
if (!blocksize )
173
173
goto out ;
174
174
175
+ sbi -> min_io_size = blocksize ;
176
+
175
177
if (hfsplus_get_last_session (sb , & part_start , & part_size ))
176
178
goto out ;
177
179
You can’t perform that action at this time.
0 commit comments