diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2013-08-14 16:27:46 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 08:15:51 -0400 |
commit | 171170c1c5625cab9687ecf6714e09e0c8a6ed3c (patch) | |
tree | ba753864755e002b0a33c532cc3ec956b10bfd0a /fs | |
parent | 35a3621beb3e2face3e7954eaee20a8fa0043fac (diff) |
btrfs: mark some local function as 'static'
Cc: Josef Bacik <jbacik@fusionio.com>
Cc: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ctree.h | 2 | ||||
-rw-r--r-- | fs/btrfs/disk-io.c | 4 | ||||
-rw-r--r-- | fs/btrfs/extent_io.c | 2 | ||||
-rw-r--r-- | fs/btrfs/extent_io.h | 1 | ||||
-rw-r--r-- | fs/btrfs/root-tree.c | 4 | ||||
-rw-r--r-- | fs/btrfs/transaction.c | 2 | ||||
-rw-r--r-- | fs/btrfs/transaction.h | 2 |
7 files changed, 6 insertions, 11 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 56f8c1b1016a..f697d00819b8 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -3471,8 +3471,6 @@ int __must_check btrfs_update_root(struct btrfs_trans_handle *trans, | |||
3471 | struct btrfs_root *root, | 3471 | struct btrfs_root *root, |
3472 | struct btrfs_key *key, | 3472 | struct btrfs_key *key, |
3473 | struct btrfs_root_item *item); | 3473 | struct btrfs_root_item *item); |
3474 | void btrfs_read_root_item(struct extent_buffer *eb, int slot, | ||
3475 | struct btrfs_root_item *item); | ||
3476 | int btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key, | 3474 | int btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key, |
3477 | struct btrfs_path *path, struct btrfs_root_item *root_item, | 3475 | struct btrfs_path *path, struct btrfs_root_item *root_item, |
3478 | struct btrfs_key *root_key); | 3476 | struct btrfs_key *root_key); |
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 77a9d46b5cdb..f96a237bb40a 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1534,8 +1534,8 @@ fail: | |||
1534 | return ret; | 1534 | return ret; |
1535 | } | 1535 | } |
1536 | 1536 | ||
1537 | struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, | 1537 | static struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, |
1538 | u64 root_id) | 1538 | u64 root_id) |
1539 | { | 1539 | { |
1540 | struct btrfs_root *root; | 1540 | struct btrfs_root *root; |
1541 | 1541 | ||
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 94362ad5dc49..3e7d604004f9 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -1791,7 +1791,7 @@ out: | |||
1791 | * set the private field for a given byte offset in the tree. If there isn't | 1791 | * set the private field for a given byte offset in the tree. If there isn't |
1792 | * an extent_state there already, this does nothing. | 1792 | * an extent_state there already, this does nothing. |
1793 | */ | 1793 | */ |
1794 | int set_state_private(struct extent_io_tree *tree, u64 start, u64 private) | 1794 | static int set_state_private(struct extent_io_tree *tree, u64 start, u64 private) |
1795 | { | 1795 | { |
1796 | struct rb_node *node; | 1796 | struct rb_node *node; |
1797 | struct extent_state *state; | 1797 | struct extent_state *state; |
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 3940a0386865..6dbc645f1f3d 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h | |||
@@ -263,7 +263,6 @@ int extent_readpages(struct extent_io_tree *tree, | |||
263 | get_extent_t get_extent); | 263 | get_extent_t get_extent); |
264 | int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, | 264 | int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, |
265 | __u64 start, __u64 len, get_extent_t *get_extent); | 265 | __u64 start, __u64 len, get_extent_t *get_extent); |
266 | int set_state_private(struct extent_io_tree *tree, u64 start, u64 private); | ||
267 | int get_state_private(struct extent_io_tree *tree, u64 start, u64 *private); | 266 | int get_state_private(struct extent_io_tree *tree, u64 start, u64 *private); |
268 | void set_page_extent_mapped(struct page *page); | 267 | void set_page_extent_mapped(struct page *page); |
269 | 268 | ||
diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 70193d0e7058..c67b432d867d 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c | |||
@@ -29,8 +29,8 @@ | |||
29 | * generation numbers as then we know the root was once mounted with an older | 29 | * generation numbers as then we know the root was once mounted with an older |
30 | * kernel that was not aware of the root item structure change. | 30 | * kernel that was not aware of the root item structure change. |
31 | */ | 31 | */ |
32 | void btrfs_read_root_item(struct extent_buffer *eb, int slot, | 32 | static void btrfs_read_root_item(struct extent_buffer *eb, int slot, |
33 | struct btrfs_root_item *item) | 33 | struct btrfs_root_item *item) |
34 | { | 34 | { |
35 | uuid_le uuid; | 35 | uuid_le uuid; |
36 | int len; | 36 | int len; |
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index ea8d52212d75..579efcc1de16 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c | |||
@@ -837,7 +837,7 @@ int btrfs_wait_marked_extents(struct btrfs_root *root, | |||
837 | * them in one of two extent_io trees. This is used to make sure all of | 837 | * them in one of two extent_io trees. This is used to make sure all of |
838 | * those extents are on disk for transaction or log commit | 838 | * those extents are on disk for transaction or log commit |
839 | */ | 839 | */ |
840 | int btrfs_write_and_wait_marked_extents(struct btrfs_root *root, | 840 | static int btrfs_write_and_wait_marked_extents(struct btrfs_root *root, |
841 | struct extent_io_tree *dirty_pages, int mark) | 841 | struct extent_io_tree *dirty_pages, int mark) |
842 | { | 842 | { |
843 | int ret; | 843 | int ret; |
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h index defbc4269897..5c2af8491621 100644 --- a/fs/btrfs/transaction.h +++ b/fs/btrfs/transaction.h | |||
@@ -160,8 +160,6 @@ int btrfs_should_end_transaction(struct btrfs_trans_handle *trans, | |||
160 | void btrfs_throttle(struct btrfs_root *root); | 160 | void btrfs_throttle(struct btrfs_root *root); |
161 | int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, | 161 | int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, |
162 | struct btrfs_root *root); | 162 | struct btrfs_root *root); |
163 | int btrfs_write_and_wait_marked_extents(struct btrfs_root *root, | ||
164 | struct extent_io_tree *dirty_pages, int mark); | ||
165 | int btrfs_write_marked_extents(struct btrfs_root *root, | 163 | int btrfs_write_marked_extents(struct btrfs_root *root, |
166 | struct extent_io_tree *dirty_pages, int mark); | 164 | struct extent_io_tree *dirty_pages, int mark); |
167 | int btrfs_wait_marked_extents(struct btrfs_root *root, | 165 | int btrfs_wait_marked_extents(struct btrfs_root *root, |