{
struct buffer_head *bh;
+ cond_resched();
+
*bhp = bh = sb_bread(s, secno);
if (bh != NULL)
return bh->b_data;
struct buffer_head *bh;
/*return hpfs_map_sector(s, secno, bhp, 0);*/
+ cond_resched();
+
if ((*bhp = bh = sb_getblk(s, secno)) != NULL) {
if (!buffer_uptodate(bh)) wait_on_buffer(bh);
set_buffer_uptodate(bh);
struct buffer_head *bh;
char *data;
+ cond_resched();
+
if (secno & 3) {
printk("HPFS: hpfs_map_4sectors: unaligned read\n");
- return 0;
+ return NULL;
}
- qbh->data = data = (char *)kmalloc(2048, GFP_NOFS);
+ qbh->data = data = kmalloc(2048, GFP_NOFS);
if (!data) {
printk("HPFS: hpfs_map_4sectors: out of memory\n");
goto bail;
void *hpfs_get_4sectors(struct super_block *s, unsigned secno,
struct quad_buffer_head *qbh)
{
+ cond_resched();
+
if (secno & 3) {
printk("HPFS: hpfs_get_4sectors: unaligned read\n");
- return 0;
+ return NULL;
}
/*return hpfs_map_4sectors(s, secno, qbh, 0);*/