Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4513913ybz; Tue, 21 Apr 2020 01:55:22 -0700 (PDT) X-Google-Smtp-Source: APiQypKqskslb5QyRbdoVJpwWozgoDE9l12v5IX6WQVcHY4qMZfdrgwHiL6PNECV4IJUwm0eC+lf X-Received: by 2002:a17:906:ca49:: with SMTP id jx9mr19311628ejb.246.1587459321860; Tue, 21 Apr 2020 01:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587459321; cv=none; d=google.com; s=arc-20160816; b=HspuGqve6iFXGh5FbVspkB8DhAnX3GTqhp2eoGoFhW/avH3dJIArilFGOhIvdv2uBC QQfdLG3EISZVPo2SHr6mGp0HqO6A/XO+Gq5wfvl0/7xmClafXMublQHYbvLvJUi/Wk/a vxvtrN+tYnYwMz1a7qdreFEV+w63IYv9pgPWYY+LwtkJey+vIhxYgQYHfjAKJ3e99nk9 SNkSMugDm+v+1/ij0WiR83QJJACt9cejR//Rm1haaJdIe1pZG9UlbKuDuvpW3JYsri+/ 3ekjnRGufEpRXr8cAGKEOstRx0VuAfoqqtNrU+sztKal2mhCne6aRDmHgDgPX6Q9nB+H w8Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=TRtsP1U9U9oEjiISykh0YhhBw20nW4HXnHHcb914Dm0=; b=hvUpQqf5peR4wIFWJsJ5NtfZq0r8P/3lCCr6OjOcQUnJj+tth/g8GYXuQSzoCelx2Y EUEgMmAvzhByXPNRDukW2hLDWCnGB5xU5+fYnZW2scUXBqwm1oKxeTaAal3up8Ou5apP h3s7X6LnXC0b6lWcTAUNPZOXv0Yx99I9HPJ09Ss6rkskQhfWMUK46IHQhUnyGyUmESvE NKhXVbRzum62B8bYV7ziO/Xz4BImt8UWMc0YwFzYdg/7flFpbV2B26YDm+HamM+ziQqF 2C9WcpmtvaHkKgn8heBVl+zEXDiUh2nk5Km2SrxzHVOfnB7YA2oUEi/SGu8wcIWMuZho Gbpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h64si1248989edd.10.2020.04.21.01.54.55; Tue, 21 Apr 2020 01:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726600AbgDUIyu (ORCPT + 99 others); Tue, 21 Apr 2020 04:54:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:41492 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgDUIyu (ORCPT ); Tue, 21 Apr 2020 04:54:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C9BE5ACAE; Tue, 21 Apr 2020 08:54:47 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 35A851E1233; Tue, 21 Apr 2020 10:54:48 +0200 (CEST) From: Jan Kara To: Ted Tso Cc: , , Eric Sandeen , Jan Kara Subject: [PATCH 2/3] writeback: Export inode_io_list_del() Date: Tue, 21 Apr 2020 10:54:44 +0200 Message-Id: <20200421085445.5731-3-jack@suse.cz> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200421085445.5731-1-jack@suse.cz> References: <20200421085445.5731-1-jack@suse.cz> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Ext4 needs to remove inode from writeback lists after it is out of visibility of its journalling machinery (which can still dirty the inode). Export inode_io_list_del() for it. Signed-off-by: Jan Kara --- fs/fs-writeback.c | 1 + fs/internal.h | 2 -- include/linux/writeback.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 76ac9c7d32ec..e58bd5f758d0 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -1126,6 +1126,7 @@ void inode_io_list_del(struct inode *inode) inode_io_list_del_locked(inode, wb); spin_unlock(&wb->list_lock); } +EXPORT_SYMBOL(inode_io_list_del); /* * mark an inode as under writeback on the sb diff --git a/fs/internal.h b/fs/internal.h index aa5d45524e87..8819d0d58b03 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -143,8 +143,6 @@ extern int dentry_needs_remove_privs(struct dentry *dentry); /* * fs-writeback.c */ -extern void inode_io_list_del(struct inode *inode); - extern long get_nr_dirty_inodes(void); extern int invalidate_inodes(struct super_block *, bool); diff --git a/include/linux/writeback.h b/include/linux/writeback.h index a19d845dd7eb..902aa317621b 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -197,6 +197,7 @@ void wakeup_flusher_threads(enum wb_reason reason); void wakeup_flusher_threads_bdi(struct backing_dev_info *bdi, enum wb_reason reason); void inode_wait_for_writeback(struct inode *inode); +void inode_io_list_del(struct inode *inode); /* writeback.h requires fs.h; it, too, is not included from here. */ static inline void wait_on_inode(struct inode *inode) -- 2.16.4