Commit dac8a2f1 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] fs/hugetlbfs/inode.c: make 4 functions static

The patch below makes four needlessly global functions static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Acked-by: default avatarWilliam Irwin <wli@holomorphy.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 21553e72
...@@ -168,7 +168,7 @@ static int hugetlbfs_commit_write(struct file *file, ...@@ -168,7 +168,7 @@ static int hugetlbfs_commit_write(struct file *file,
return -EINVAL; return -EINVAL;
} }
void huge_pagevec_release(struct pagevec *pvec) static void huge_pagevec_release(struct pagevec *pvec)
{ {
int i; int i;
...@@ -178,7 +178,7 @@ void huge_pagevec_release(struct pagevec *pvec) ...@@ -178,7 +178,7 @@ void huge_pagevec_release(struct pagevec *pvec)
pagevec_reinit(pvec); pagevec_reinit(pvec);
} }
void truncate_huge_page(struct page *page) static void truncate_huge_page(struct page *page)
{ {
clear_page_dirty(page); clear_page_dirty(page);
ClearPageUptodate(page); ClearPageUptodate(page);
...@@ -186,7 +186,7 @@ void truncate_huge_page(struct page *page) ...@@ -186,7 +186,7 @@ void truncate_huge_page(struct page *page)
put_page(page); put_page(page);
} }
void truncate_hugepages(struct address_space *mapping, loff_t lstart) static void truncate_hugepages(struct address_space *mapping, loff_t lstart)
{ {
const pgoff_t start = lstart >> HPAGE_SHIFT; const pgoff_t start = lstart >> HPAGE_SHIFT;
struct pagevec pvec; struct pagevec pvec;
...@@ -495,7 +495,7 @@ static int hugetlbfs_symlink(struct inode *dir, ...@@ -495,7 +495,7 @@ static int hugetlbfs_symlink(struct inode *dir,
/* /*
* For direct-IO reads into hugetlb pages * For direct-IO reads into hugetlb pages
*/ */
int hugetlbfs_set_page_dirty(struct page *page) static int hugetlbfs_set_page_dirty(struct page *page)
{ {
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment