static int sync_buffer(void *word) { struct block_device *bd;
struct buffer_head *bh = container_of(word, struct buffer_head, b_state);
smp_mb();
bd = bh->b_bdev; if (bd) blk_run_address_space(bd->bd_inode->i_mapping);
io_schedule();
return 0; }
メニュー編集
新規作成用