[COMMON] fs: support REQ_AUX_PRIV for diskcipher
authorBoojin Kim <boojin.kim@samsung.com>
Wed, 24 Jan 2018 08:06:16 +0000 (17:06 +0900)
committerJaeHun Jung <jh0801.jung@samsung.com>
Tue, 8 May 2018 08:21:01 +0000 (17:21 +0900)
Change-Id: Id154b3d819fd7dd706370e106452ee1e25be984c
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
fs/buffer.c

index b96f3b98a6ef9f8fc9a3ac22d1e60996eabf4d50..81434292082e603cfbc861feb26043dec86442c6 100644 (file)
@@ -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;
 }