mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
4c42be38c2
commit
7b59435a2a
1 changed files with 0 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue