From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f46.google.com ([209.85.214.46]:34365 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033435AbeEXQDB (ORCPT ); Thu, 24 May 2018 12:03:01 -0400 Received: by mail-it0-f46.google.com with SMTP id c5-v6so17679633itj.1 for ; Thu, 24 May 2018 09:03:01 -0700 (PDT) From: Jens Axboe To: linux-fsdevel@vger.kernel.org Cc: viro@zeniv.linux.org.uk, akpm@linux-foundation.org Subject: [PATCHSET 0/3] Submit ->readpages() IO as read-ahead Date: Thu, 24 May 2018 10:02:51 -0600 Message-Id: <1527177774-21414-1-git-send-email-axboe@kernel.dk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: The only caller of ->readpages() is from read-ahead, yet we don't submit IO flagged with REQ_RAHEAD. This means we don't see it in blktrace, for instance, which is a shame. We already make assumptions about ->readpages() just being for read-ahead in the mpage implementation, using readahead_gfp_mask(mapping) as out GFP mask of choice. This small series fixes up mpage_readpages() to submit with REQ_RAHEAD, which takes care of file systems using mpage_readpages(). The last two fixup ext4 and btrfs. -- Jens Axboe