From: Boojin Kim Date: Wed, 24 Jan 2018 08:06:16 +0000 (+0900) Subject: [COMMON] fs: support REQ_AUX_PRIV for diskcipher X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1dc75433a8e8a007f41d725c6cae34ccb5af80b2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fs: support REQ_AUX_PRIV for diskcipher Change-Id: Id154b3d819fd7dd706370e106452ee1e25be984c Signed-off-by: Boojin Kim --- 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; }