]> Git Repo - linux.git/commitdiff
buffer_head.h: remove attach_page_buffers
authorGuoqing Jiang <[email protected]>
Tue, 2 Jun 2020 04:48:03 +0000 (21:48 -0700)
committerLinus Torvalds <[email protected]>
Tue, 2 Jun 2020 17:59:08 +0000 (10:59 -0700)
All the callers have replaced attach_page_buffers with the new function
attach_page_private, so remove it.

Signed-off-by: Guoqing Jiang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Sebastian Andrzej Siewior <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Andreas Dilger <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/buffer_head.h

index 15b765a181b8504f10ba7b827f9cbe3ddbbfae28..22fb11e2d2e04d93312441c2c680c29033f94034 100644 (file)
@@ -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);
This page took 0.045051 seconds and 4 git commands to generate.