Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4541387rwb; Mon, 31 Jul 2023 08:21:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfBpXbxcO7elPCvZvsUe/nC8w2sR6l9Yf2Ho2izs5EDP7uXR2HCdG+C/kBMhPa2MQkGYFp X-Received: by 2002:a05:6808:150d:b0:3a7:3988:87ee with SMTP id u13-20020a056808150d00b003a7398887eemr2811549oiw.58.1690816904903; Mon, 31 Jul 2023 08:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690816904; cv=none; d=google.com; s=arc-20160816; b=cZSgDyb9MjXPh+jojBRAOvLgwsMieZodj7naI3ls7fVnoD8UPRg4C4Bt6lp+i0CdTu quBCMpzG8tvqTZlmB1ejAEZDo6KQSLeH+tWI9NMWou4sJZl8UKrA4Fy4/C4M2LMJ/iXG uuv4yj6xoXMfbevP2oj+ypyHWHYq/wl4/ITPfvi5BrU1m27HLsVxYjrBY4qt52GG9q3z A+UsNBOx9FYU7bW7jcZ/LBNw7bNkUisEvKMXU5/0xNbPN5ck5c8OohPJQJ1MPKd/PKre KPgHQnK1sIB0Plt9Rrnh/qPxGdo/Y53RWIHYREa6L+VbKNhDECnoJAnDmlIyNPWipAq9 ++6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=XPdIQm6lw+iMDcuyergAy0WqRBg61RsIM13C6k5yY04=; fh=cyCIkvK3NvfJBb5hiIJQFx1HPcPkRqCRer95KgtmmR8=; b=xTZJsObTHWfBebxCHH/4qP4LAsBbk8B+ZknFmccTn8FvzusJcX9Nh/j+DSnmD3y029 moJVmTLsV5DvxCHhaUKe5xuV19C3cL1B2c6grg6n2DTRQuNxnvo42irgIEGoFima4e/4 4YL+QsPz0HSM94N+/xnVx+ECXTt9GlWLOLrJT27zA8dDnE66wXz2lLrfqIBL6G9iDoLF 0d8/GttBoTMBpHyhtdYndHofrzhtEfglY3Z64YoUNEugSCiTVVK7NvzbI1CZvicMHXZW NhgnllJ1jakyCrpLASFJ6V+XQNXndSLmuZltLh7sr6c5OkEeAAnIo7txTnng0t6GbV4I WMtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=OgD+1tFL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a17090a748c00b0024e47fae466si3514551pjk.180.2023.07.31.08.21.30; Mon, 31 Jul 2023 08:21:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=OgD+1tFL; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230147AbjGaOqH (ORCPT + 99 others); Mon, 31 Jul 2023 10:46:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbjGaOqG (ORCPT ); Mon, 31 Jul 2023 10:46:06 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A665B6; Mon, 31 Jul 2023 07:46:05 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 199CF1F854; Mon, 31 Jul 2023 14:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1690814764; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XPdIQm6lw+iMDcuyergAy0WqRBg61RsIM13C6k5yY04=; b=OgD+1tFLQbf02OGazL3QZNSeqvVKobiVUeaL6F12nJxNVpRJClI4G+JKgIJ4NZVHGZtuM0 tIUuNWKsvNT8Uxu2ljZVUnpw7ZwXldyObS8XKIEmXlKA5sMP6R/aUEla258P0RxKiiUY2K Th3bdJ97Q25pNBw4heNtI8BgtKuUQDk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1690814764; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XPdIQm6lw+iMDcuyergAy0WqRBg61RsIM13C6k5yY04=; b=v0B6MyyuwFONgjvOCUy4haXJjwH9hbPB01oPAIkQx6V7OojJxIGkazXChJfeQXSLXp0mTx SKO/f3jSZWcflAAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0AACE133F7; Mon, 31 Jul 2023 14:46:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id z7+PAizJx2TBYAAAMHmgww (envelope-from ); Mon, 31 Jul 2023 14:46:04 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 94121A069C; Mon, 31 Jul 2023 16:46:03 +0200 (CEST) Date: Mon, 31 Jul 2023 16:46:03 +0200 From: Jan Kara To: "Matthew Wilcox (Oracle)" Cc: Andrew Morton , David Sterba , linux-fsdevel@vger.kernel.org, Pankaj Raghav , Konstantin Komarov , ntfs3@lists.linux.dev, Theodore Tso , Jan Kara , linux-ext4@vger.kernel.org Subject: Re: [PATCH 7/7] buffer: Remove set_bh_page() Message-ID: <20230731144603.4ehtpamxbhhd7fv5@quack3> References: <20230713035512.4139457-1-willy@infradead.org> <20230713035512.4139457-8-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230713035512.4139457-8-willy@infradead.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu 13-07-23 04:55:12, Matthew Wilcox (Oracle) wrote: > With all users converted to folio_set_bh(), remove this function. > > Signed-off-by: Matthew Wilcox (Oracle) Sure. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/buffer.c | 15 --------------- > include/linux/buffer_head.h | 2 -- > 2 files changed, 17 deletions(-) > > diff --git a/fs/buffer.c b/fs/buffer.c > index 587e4d4af9de..f0563ebae75f 100644 > --- a/fs/buffer.c > +++ b/fs/buffer.c > @@ -1539,21 +1539,6 @@ void invalidate_bh_lrus_cpu(void) > bh_lru_unlock(); > } > > -void set_bh_page(struct buffer_head *bh, > - struct page *page, unsigned long offset) > -{ > - bh->b_page = page; > - BUG_ON(offset >= PAGE_SIZE); > - if (PageHighMem(page)) > - /* > - * This catches illegal uses and preserves the offset: > - */ > - bh->b_data = (char *)(0 + offset); > - else > - bh->b_data = page_address(page) + offset; > -} > -EXPORT_SYMBOL(set_bh_page); > - > void folio_set_bh(struct buffer_head *bh, struct folio *folio, > unsigned long offset) > { > diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h > index a7377877ff4e..06566aee94ca 100644 > --- a/include/linux/buffer_head.h > +++ b/include/linux/buffer_head.h > @@ -194,8 +194,6 @@ void buffer_check_dirty_writeback(struct folio *folio, > void mark_buffer_dirty(struct buffer_head *bh); > void mark_buffer_write_io_error(struct buffer_head *bh); > void touch_buffer(struct buffer_head *bh); > -void set_bh_page(struct buffer_head *bh, > - struct page *page, unsigned long offset); > void folio_set_bh(struct buffer_head *bh, struct folio *folio, > unsigned long offset); > bool try_to_free_buffers(struct folio *); > -- > 2.39.2 > -- Jan Kara SUSE Labs, CR