From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753560AbbJUGkE (ORCPT ); Wed, 21 Oct 2015 02:40:04 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:45069 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752150AbbJUGkC (ORCPT ); Wed, 21 Oct 2015 02:40:02 -0400 X-Sasl-enc: JCdC3VTNv1KZRR7lTbOtM/C5JY3gqa1+4MUj9pqQZae8 1445409601 Message-ID: <1445409598.5025.17.camel@themaw.net> Subject: [RFC] A couple of questions about the paged I/O sub system From: Ian Kent To: linux-kernel@vger.kernel.org Date: Wed, 21 Oct 2015 14:39:58 +0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 (3.16.5-3.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I've been looking through some of the page reclaim code and at truncate_inode_pages(). I'm not familiar with the code and I'm struggling to understand it. One thing that is puzzling me right now is, if a file has pages that have been modified and are swapped out when pagevec_lookup_entries() is called will they be found? If not then how does truncate_inode_pages(_range)() handle waiting for these pages to be swapped back in to perform the writeback and truncation? Anyone, please? Ian