Skip to content

Commit

Permalink
fs: exfat: workaround unexported blk_flush_plug()
Browse files Browse the repository at this point in the history
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
Change-Id: Ida4d18c2ff29ddbdd664c8900137e483c449f28b
  • Loading branch information
arter97 authored and Khusika Dhamar Gusti committed Oct 9, 2019
1 parent 8c4083c commit 2cee93a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fs/exfat/blkdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,15 @@ s32 bdev_readahead(struct super_block *sb, u64 secno, u64 num_secs)

blk_start_plug(&plug);
for (i = 0; i < num_secs; i++) {
if (i && !(i & (sects_per_page - 1)))
if (i && !(i & (sects_per_page - 1))) {
#ifdef MODULE
/* TODO: fix this by using proper APIs */
blk_finish_plug(&plug);
blk_start_plug(&plug);
#else
blk_flush_plug(current);
#endif
}
sb_breadahead(sb, (sector_t)(secno + i));
}
blk_finish_plug(&plug);
Expand Down

0 comments on commit 2cee93a

Please sign in to comment.