瀏覽代碼

GFS2: make function gfs2_page_add_databufs static

This patch makes function gfs2_page_add_databufs static.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Bob Peterson 13 年之前
父節點
當前提交
b120193e36
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 2 2
      fs/gfs2/aops.c
  2. 0 2
      fs/gfs2/inode.h

+ 2 - 2
fs/gfs2/aops.c

@@ -36,8 +36,8 @@
 #include "glops.h"
 #include "glops.h"
 
 
 
 
-void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page,
-			    unsigned int from, unsigned int to)
+static void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page,
+				   unsigned int from, unsigned int to)
 {
 {
 	struct buffer_head *head = page_buffers(page);
 	struct buffer_head *head = page_buffers(page);
 	unsigned int bsize = head->b_size;
 	unsigned int bsize = head->b_size;

+ 0 - 2
fs/gfs2/inode.h

@@ -19,8 +19,6 @@ extern int gfs2_releasepage(struct page *page, gfp_t gfp_mask);
 extern int gfs2_internal_read(struct gfs2_inode *ip,
 extern int gfs2_internal_read(struct gfs2_inode *ip,
 			      struct file_ra_state *ra_state,
 			      struct file_ra_state *ra_state,
 			      char *buf, loff_t *pos, unsigned size);
 			      char *buf, loff_t *pos, unsigned size);
-extern void gfs2_page_add_databufs(struct gfs2_inode *ip, struct page *page,
-				   unsigned int from, unsigned int to);
 extern void gfs2_set_aops(struct inode *inode);
 extern void gfs2_set_aops(struct inode *inode);
 
 
 static inline int gfs2_is_stuffed(const struct gfs2_inode *ip)
 static inline int gfs2_is_stuffed(const struct gfs2_inode *ip)