diff options
Diffstat (limited to 'include/linux/buffer_head.h')
-rw-r--r-- | include/linux/buffer_head.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index c67f052cc5e5..d48daa3f6f20 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
@@ -43,7 +43,7 @@ enum bh_state_bits { | |||
43 | */ | 43 | */ |
44 | }; | 44 | }; |
45 | 45 | ||
46 | #define MAX_BUF_PER_PAGE (PAGE_CACHE_SIZE / 512) | 46 | #define MAX_BUF_PER_PAGE (PAGE_SIZE / 512) |
47 | 47 | ||
48 | struct page; | 48 | struct page; |
49 | struct buffer_head; | 49 | struct buffer_head; |
@@ -263,7 +263,7 @@ void buffer_init(void); | |||
263 | static inline void attach_page_buffers(struct page *page, | 263 | static inline void attach_page_buffers(struct page *page, |
264 | struct buffer_head *head) | 264 | struct buffer_head *head) |
265 | { | 265 | { |
266 | page_cache_get(page); | 266 | get_page(page); |
267 | SetPagePrivate(page); | 267 | SetPagePrivate(page); |
268 | set_page_private(page, (unsigned long)head); | 268 | set_page_private(page, (unsigned long)head); |
269 | } | 269 | } |