blk.h (c900529f3d9161bfde5cca0754f83b4d3c3e0220) blk.h (e5d98cc3311fba46646782c913557322afdb1f32)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BLK_INTERNAL_H
3#define BLK_INTERNAL_H
4
5#include <linux/blk-crypto.h>
6#include <linux/memblock.h> /* for max_pfn/max_low_pfn */
7#include <xen/xen.h>
8#include "blk-crypto-internal.h"

--- 330 unchanged lines hidden (view full) ---

339 * b) the queue had IO stats enabled when this request was started
340 */
341static inline bool blk_do_io_stat(struct request *rq)
342{
343 return (rq->rq_flags & RQF_IO_STAT) && !blk_rq_is_passthrough(rq);
344}
345
346void update_io_ticks(struct block_device *part, unsigned long now, bool end);
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef BLK_INTERNAL_H
3#define BLK_INTERNAL_H
4
5#include <linux/blk-crypto.h>
6#include <linux/memblock.h> /* for max_pfn/max_low_pfn */
7#include <xen/xen.h>
8#include "blk-crypto-internal.h"

--- 330 unchanged lines hidden (view full) ---

339 * b) the queue had IO stats enabled when this request was started
340 */
341static inline bool blk_do_io_stat(struct request *rq)
342{
343 return (rq->rq_flags & RQF_IO_STAT) && !blk_rq_is_passthrough(rq);
344}
345
346void update_io_ticks(struct block_device *part, unsigned long now, bool end);
347unsigned int part_in_flight(struct block_device *part);
347
348static inline void req_set_nomerge(struct request_queue *q, struct request *req)
349{
350 req->cmd_flags |= REQ_NOMERGE;
351 if (req == q->last_merge)
352 q->last_merge = NULL;
353}
354

--- 167 unchanged lines hidden ---
348
349static inline void req_set_nomerge(struct request_queue *q, struct request *req)
350{
351 req->cmd_flags |= REQ_NOMERGE;
352 if (req == q->last_merge)
353 q->last_merge = NULL;
354}
355

--- 167 unchanged lines hidden ---