mm: emit tracepoint when rss watermark is hit
[GitHub/MotorolaMobilityLLC/kernel-slsi.git] / block / blk-mq-tag.h
index 63497423c5cd32fb50542cf626590693c5f929e7..c190165d92ea3fda4a24efca107be007f9787051 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 #ifndef INT_BLK_MQ_TAG_H
 #define INT_BLK_MQ_TAG_H
 
@@ -85,4 +86,10 @@ static inline void blk_mq_tag_set_rq(struct blk_mq_hw_ctx *hctx,
        hctx->tags->rqs[tag] = rq;
 }
 
+static inline bool blk_mq_tag_is_reserved(struct blk_mq_tags *tags,
+                                         unsigned int tag)
+{
+       return tag < tags->nr_reserved_tags;
+}
+
 #endif