diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-06-25 08:47:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-25 13:01:04 -0400 |
commit | 138bb68ac9d49b0ea7eeecb3a245dc4e20f181da (patch) | |
tree | 5918b8b5e8fa13a85879b48b4201e716c16c0e05 | |
parent | 098d5af7be694c66af44093f7217da3d22af1057 (diff) |
[PATCH] fs/ufs/inode.c: make 2 functions static
Make two needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | fs/ufs/inode.c | 9 | ||||
-rw-r--r-- | include/linux/ufs_fs.h | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 01c5f19cbabe..f2dbdf5a8769 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c | |||
@@ -41,6 +41,8 @@ | |||
41 | #include "swab.h" | 41 | #include "swab.h" |
42 | #include "util.h" | 42 | #include "util.h" |
43 | 43 | ||
44 | static u64 ufs_frag_map(struct inode *inode, sector_t frag); | ||
45 | |||
44 | static int ufs_block_to_path(struct inode *inode, sector_t i_block, sector_t offsets[4]) | 46 | static int ufs_block_to_path(struct inode *inode, sector_t i_block, sector_t offsets[4]) |
45 | { | 47 | { |
46 | struct ufs_sb_private_info *uspi = UFS_SB(inode->i_sb)->s_uspi; | 48 | struct ufs_sb_private_info *uspi = UFS_SB(inode->i_sb)->s_uspi; |
@@ -80,7 +82,7 @@ static int ufs_block_to_path(struct inode *inode, sector_t i_block, sector_t off | |||
80 | * the begining of the filesystem. | 82 | * the begining of the filesystem. |
81 | */ | 83 | */ |
82 | 84 | ||
83 | u64 ufs_frag_map(struct inode *inode, sector_t frag) | 85 | static u64 ufs_frag_map(struct inode *inode, sector_t frag) |
84 | { | 86 | { |
85 | struct ufs_inode_info *ufsi = UFS_I(inode); | 87 | struct ufs_inode_info *ufsi = UFS_I(inode); |
86 | struct super_block *sb = inode->i_sb; | 88 | struct super_block *sb = inode->i_sb; |
@@ -514,8 +516,9 @@ abort_too_big: | |||
514 | goto abort; | 516 | goto abort; |
515 | } | 517 | } |
516 | 518 | ||
517 | struct buffer_head *ufs_getfrag(struct inode *inode, unsigned int fragment, | 519 | static struct buffer_head *ufs_getfrag(struct inode *inode, |
518 | int create, int *err) | 520 | unsigned int fragment, |
521 | int create, int *err) | ||
519 | { | 522 | { |
520 | struct buffer_head dummy; | 523 | struct buffer_head dummy; |
521 | int error; | 524 | int error; |
diff --git a/include/linux/ufs_fs.h b/include/linux/ufs_fs.h index 9a7f9b26564d..914f911325be 100644 --- a/include/linux/ufs_fs.h +++ b/include/linux/ufs_fs.h | |||
@@ -973,13 +973,11 @@ extern void ufs_free_inode (struct inode *inode); | |||
973 | extern struct inode * ufs_new_inode (struct inode *, int); | 973 | extern struct inode * ufs_new_inode (struct inode *, int); |
974 | 974 | ||
975 | /* inode.c */ | 975 | /* inode.c */ |
976 | extern u64 ufs_frag_map (struct inode *, sector_t); | ||
977 | extern void ufs_read_inode (struct inode *); | 976 | extern void ufs_read_inode (struct inode *); |
978 | extern void ufs_put_inode (struct inode *); | 977 | extern void ufs_put_inode (struct inode *); |
979 | extern int ufs_write_inode (struct inode *, int); | 978 | extern int ufs_write_inode (struct inode *, int); |
980 | extern int ufs_sync_inode (struct inode *); | 979 | extern int ufs_sync_inode (struct inode *); |
981 | extern void ufs_delete_inode (struct inode *); | 980 | extern void ufs_delete_inode (struct inode *); |
982 | extern struct buffer_head * ufs_getfrag (struct inode *, unsigned, int, int *); | ||
983 | extern struct buffer_head * ufs_bread (struct inode *, unsigned, int, int *); | 981 | extern struct buffer_head * ufs_bread (struct inode *, unsigned, int, int *); |
984 | extern int ufs_getfrag_block (struct inode *inode, sector_t fragment, struct buffer_head *bh_result, int create); | 982 | extern int ufs_getfrag_block (struct inode *inode, sector_t fragment, struct buffer_head *bh_result, int create); |
985 | 983 | ||