From 1dc75433a8e8a007f41d725c6cae34ccb5af80b2 Mon Sep 17 00:00:00 2001 From: Boojin Kim Date: Wed, 24 Jan 2018 17:06:16 +0900 Subject: [PATCH] [COMMON] fs: support REQ_AUX_PRIV for diskcipher Change-Id: Id154b3d819fd7dd706370e106452ee1e25be984c Signed-off-by: Boojin Kim --- fs/buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/buffer.c b/fs/buffer.c index b96f3b98a6ef..81434292082e 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -3141,6 +3141,8 @@ static int submit_bh_wbc(int op, int op_flags, struct buffer_head *bh, op_flags |= REQ_PRIO; bio_set_op_attrs(bio, op, op_flags); + if (bio->bi_opf & REQ_AUX_PRIV) + bio->bi_aux_private = bh->b_private; submit_bio(bio); return 0; } -- 2.20.1