Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934171AbcJ2INC (ORCPT ); Sat, 29 Oct 2016 04:13:02 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34315 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933122AbcJ2IM5 (ORCPT ); Sat, 29 Oct 2016 04:12:57 -0400 From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , "Kirill A . Shutemov" , Ming Lei , Philipp Reisner , Lars Ellenberg , drbd-dev@lists.linbit.com (open list:DRBD DRIVER) Subject: [PATCH 14/60] block: drbd: comment on direct access bvec table Date: Sat, 29 Oct 2016 16:08:13 +0800 Message-Id: <1477728600-12938-15-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> References: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 694 Lines: 19 Signed-off-by: Ming Lei --- drivers/block/drbd/drbd_bitmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c index ab62b81c2ca7..ce9506da30ad 100644 --- a/drivers/block/drbd/drbd_bitmap.c +++ b/drivers/block/drbd/drbd_bitmap.c @@ -953,6 +953,7 @@ static void drbd_bm_endio(struct bio *bio) struct drbd_bm_aio_ctx *ctx = bio->bi_private; struct drbd_device *device = ctx->device; struct drbd_bitmap *b = device->bitmap; + /* single page bio, safe for multipage bvec */ unsigned int idx = bm_page_to_idx(bio->bi_io_vec[0].bv_page); if ((ctx->flags & BM_AIO_COPY_PAGES) == 0 && -- 2.7.4