summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>2020-06-02 06:48:03 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-02 19:59:08 +0200
commit7b59435a2afed12dc9b2ec1b930efa2e94f1c397 (patch)
treecafdfccb5e1d719e43142f77c1af5ad7a61e7cc4 /include
parentorangefs: use attach/detach_page_private (diff)
downloadlinux-7b59435a2afed12dc9b2ec1b930efa2e94f1c397.tar.xz
linux-7b59435a2afed12dc9b2ec1b930efa2e94f1c397.zip
buffer_head.h: remove attach_page_buffers
All the callers have replaced attach_page_buffers with the new function attach_page_private, so remove it. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Roman Gushchin <guro@fb.com> Cc: Andreas Dilger <adilger@dilger.ca> Link: http://lkml.kernel.org/r/20200517214718.468-10-guoqing.jiang@cloud.ionos.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/buffer_head.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h
index 15b765a181b8..22fb11e2d2e0 100644
--- a/include/linux/buffer_head.h
+++ b/include/linux/buffer_head.h
@@ -272,14 +272,6 @@ void buffer_init(void);
* inline definitions
*/
-static inline void attach_page_buffers(struct page *page,
- struct buffer_head *head)
-{
- get_page(page);
- SetPagePrivate(page);
- set_page_private(page, (unsigned long)head);
-}
-
static inline void get_bh(struct buffer_head *bh)
{
atomic_inc(&bh->b_count);