Searched refs:policy (Results 1 – 4 of 4) sorted by relevance
101 unsigned int policy = 0; in blk_flush_policy() local104 policy |= REQ_FSEQ_DATA; in blk_flush_policy()108 policy |= REQ_FSEQ_PREFLUSH; in blk_flush_policy()111 policy |= REQ_FSEQ_POSTFLUSH; in blk_flush_policy()113 return policy; in blk_flush_policy()389 unsigned int policy = blk_flush_policy(fflags, rq); in blk_insert_flush() local413 if (!policy) { in blk_insert_flush()425 if ((policy & REQ_FSEQ_DATA) && in blk_insert_flush()426 !(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) { in blk_insert_flush()443 blk_flush_complete_seq(rq, fq, REQ_FSEQ_ACTIONS & ~policy, 0); in blk_insert_flush()
1852 bdev->bd_part->policy = flag; in set_device_ro()1862 if (disk->part0.policy != flag) { in set_disk_ro()1864 disk->part0.policy = flag; in set_disk_ro()1869 part->policy = flag; in set_disk_ro()1879 return bdev->bd_part->policy; in bdev_read_only()
710 if (part->policy && op_is_write(op)) { in bio_check_ro()
195 return sprintf(buf, "%d\n", p->policy ? 1 : 0); in part_ro_show()424 p->policy = get_disk_ro(disk); in add_partition()