blk-merge.c (1ac731c529cd4d6adbce134754b51ff7d822b145) blk-merge.c (e5d98cc3311fba46646782c913557322afdb1f32)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Functions related to segment and merge handling
4 */
5#include <linux/kernel.h>
6#include <linux/module.h>
7#include <linux/bio.h>
8#include <linux/blkdev.h>

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

778 }
779}
780
781static void blk_account_io_merge_request(struct request *req)
782{
783 if (blk_do_io_stat(req)) {
784 part_stat_lock();
785 part_stat_inc(req->part, merges[op_stat_group(req_op(req))]);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Functions related to segment and merge handling
4 */
5#include <linux/kernel.h>
6#include <linux/module.h>
7#include <linux/bio.h>
8#include <linux/blkdev.h>

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

778 }
779}
780
781static void blk_account_io_merge_request(struct request *req)
782{
783 if (blk_do_io_stat(req)) {
784 part_stat_lock();
785 part_stat_inc(req->part, merges[op_stat_group(req_op(req))]);
786 part_stat_local_dec(req->part,
787 in_flight[op_is_write(req_op(req))]);
786 part_stat_unlock();
787 }
788}
789
790static enum elv_merge blk_try_req_merge(struct request *req,
791 struct request *next)
792{
793 if (blk_discard_mergable(req))

--- 397 unchanged lines hidden ---
788 part_stat_unlock();
789 }
790}
791
792static enum elv_merge blk_try_req_merge(struct request *req,
793 struct request *next)
794{
795 if (blk_discard_mergable(req))

--- 397 unchanged lines hidden ---