From patchwork Tue Sep 24 02:31:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Youling Tang X-Patchwork-Id: 13810053 Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A80E1B85DF for ; Tue, 24 Sep 2024 02:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727145129; cv=none; b=caeGF8fIH9X5BeXTIZ4yPnFfNtlo4A165geG0Mx8ws41fttY9EangcoxMgZpDqtqm4JLvNrZ923jpQx4hDYwWxTw8jUyhcBQ3IdAoVuU0QBD9VsoBHVPfpRqzvw0gyBuXC8qUFPjW0eGHiwvsqbk9W+sT9TGnoptGFYLAfeSI6s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727145129; c=relaxed/simple; bh=J8MmfqvgO9L7wwIGqVVVe+B6hrA4KxtYoSQ2jQGcXEo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=g1qiAus2Z2K52fn6DGX2mknCXU73DFp2ZZ/CCoJ/6OLX//lJ/SxO8wDZn0tsxNc31/QNGO+4KeRGC74jJ11lkVu1jaaai7PoKEO7N7rgHR3+1lh+b9gZwOkX/6gEZWXzHPLdW6Kpa2oRq+S62YwtLWTL5Lmp/rECPyqlHMKywaE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Ur7VKnPg; arc=none smtp.client-ip=95.215.58.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Ur7VKnPg" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1727145124; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7MGOpr+w9lQCY9L6X+aU90icJEyeUObMC6TBwToVX3k=; b=Ur7VKnPga49Q1updQc8xwUFLlD2VYiRB9g5ysBqIgg1BgCrVGRd1BSqnFkXFjgjxD6atCB Z0i1VrCyTXSo8igiBX03HocHyL+EkuGNdol6SY8I76diGuCZt1Sum/D3ITHk0kG1r4qgke fnlK6E0vkTWiDdLZQzdImnhUPcpJzgc= From: Youling Tang To: Chris Mason , Josef Bacik , David Sterba Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, youling.tang@linux.dev, Youling Tang Subject: [PATCH] btrfs: Remove unused page_to_{inode,fs_info} macros Date: Tue, 24 Sep 2024 10:31:35 +0800 Message-Id: <20240924023135.3861974-1-youling.tang@linux.dev> Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT From: Youling Tang This macro is no longer used after the "btrfs: Cleaned up folio->page conversion" series patch [1] was applied, so remove it. [1]: https://patchwork.kernel.org/project/linux-btrfs/cover/20240828182908.3735344-1-lizetao1@huawei.com/ Signed-off-by: Youling Tang Reviewed-by: Neal Gompa --- fs/btrfs/fs.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/btrfs/fs.h b/fs/btrfs/fs.h index 79f64e383edd..82169cbd99e1 100644 --- a/fs/btrfs/fs.h +++ b/fs/btrfs/fs.h @@ -876,12 +876,9 @@ struct btrfs_fs_info { #endif }; -#define page_to_inode(_page) (BTRFS_I(_Generic((_page), \ - struct page *: (_page))->mapping->host)) #define folio_to_inode(_folio) (BTRFS_I(_Generic((_folio), \ struct folio *: (_folio))->mapping->host)) -#define page_to_fs_info(_page) (page_to_inode(_page)->root->fs_info) #define folio_to_fs_info(_folio) (folio_to_inode(_folio)->root->fs_info) #define inode_to_fs_info(_inode) (BTRFS_I(_Generic((_inode), \