fs: sdfat: fix blk for build as module
This commit is contained in:
parent
4f65bdd301
commit
62f8daa4d2
8
blkdev.c
8
blkdev.c
|
|
@ -118,8 +118,14 @@ 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
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue