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 ;
@@ -306,7 +307,7 @@ struct hfsplus_readdir_data {
306307 */
307308static inline unsigned short hfsplus_min_io_size (struct super_block * sb )
308309{
309- return max_t (unsigned short , bdev_logical_block_size (sb -> s_bdev ) ,
310+ return max_t (unsigned short , HFSPLUS_SB (sb ) -> min_io_size ,
310311 HFSPLUS_SECTOR_SIZE );
311312}
312313
Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ int hfsplus_read_wrapper(struct super_block *sb)
171171 if (!blocksize )
172172 goto out ;
173173
174+ sbi -> min_io_size = blocksize ;
175+
174176 if (hfsplus_get_last_session (sb , & part_start , & part_size ))
175177 goto out ;
176178
You can’t perform that action at this time.
0 commit comments