* [PATCH] btrfs: Remove unused page_to_{inode,fs_info} macros
@ 2024-09-24 2:31 Youling Tang
2024-09-24 3:55 ` Neal Gompa
2024-10-01 15:46 ` David Sterba
0 siblings, 2 replies; 3+ messages in thread
From: Youling Tang @ 2024-09-24 2:31 UTC (permalink / raw)
To: Chris Mason, Josef Bacik, David Sterba
Cc: linux-btrfs, linux-kernel, youling.tang, Youling Tang
From: Youling Tang <tangyouling@kylinos.cn>
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 <tangyouling@kylinos.cn>
---
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), \
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: Remove unused page_to_{inode,fs_info} macros
2024-09-24 2:31 [PATCH] btrfs: Remove unused page_to_{inode,fs_info} macros Youling Tang
@ 2024-09-24 3:55 ` Neal Gompa
2024-10-01 15:46 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: Neal Gompa @ 2024-09-24 3:55 UTC (permalink / raw)
To: Youling Tang
Cc: Chris Mason, Josef Bacik, David Sterba, linux-btrfs,
linux-kernel, Youling Tang
On Mon, Sep 23, 2024 at 10:32 PM Youling Tang <youling.tang@linux.dev> wrote:
>
> From: Youling Tang <tangyouling@kylinos.cn>
>
> 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 <tangyouling@kylinos.cn>
> ---
> 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), \
> --
> 2.34.1
>
>
Patch looks good to me.
Reviewed-by: Neal Gompa <neal@gompa.dev>
--
真実はいつも一つ!/ Always, there's only one truth!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: Remove unused page_to_{inode,fs_info} macros
2024-09-24 2:31 [PATCH] btrfs: Remove unused page_to_{inode,fs_info} macros Youling Tang
2024-09-24 3:55 ` Neal Gompa
@ 2024-10-01 15:46 ` David Sterba
1 sibling, 0 replies; 3+ messages in thread
From: David Sterba @ 2024-10-01 15:46 UTC (permalink / raw)
To: Youling Tang
Cc: Chris Mason, Josef Bacik, David Sterba, linux-btrfs,
linux-kernel, Youling Tang
On Tue, Sep 24, 2024 at 10:31:35AM +0800, Youling Tang wrote:
> From: Youling Tang <tangyouling@kylinos.cn>
>
> 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 <tangyouling@kylinos.cn>
Added to for-next thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-01 15:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-24 2:31 [PATCH] btrfs: Remove unused page_to_{inode,fs_info} macros Youling Tang
2024-09-24 3:55 ` Neal Gompa
2024-10-01 15:46 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®