Messages in this thread Patch in this message | | | Date | Fri, 23 Jun 2006 12:55:33 +0200 | From | Adrian Bunk <> | Subject | [-mm patch] fs/ufs/inode.c: make 2 functions static |
| |
This patch makes two needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
fs/ufs/inode.c | 9 ++++++--- include/linux/ufs_fs.h | 2 -- 2 files changed, 6 insertions(+), 5 deletions(-)
--- linux-2.6.17-mm1-full/include/linux/ufs_fs.h.old 2006-06-22 16:52:18.000000000 +0200 +++ linux-2.6.17-mm1-full/include/linux/ufs_fs.h 2006-06-22 16:53:11.000000000 +0200 @@ -973,13 +973,11 @@ extern struct inode * ufs_new_inode (struct inode *, int); /* inode.c */ -extern u64 ufs_frag_map (struct inode *, sector_t); extern void ufs_read_inode (struct inode *); extern void ufs_put_inode (struct inode *); extern int ufs_write_inode (struct inode *, int); extern int ufs_sync_inode (struct inode *); extern void ufs_delete_inode (struct inode *); -extern struct buffer_head * ufs_getfrag (struct inode *, unsigned, int, int *); extern struct buffer_head * ufs_bread (struct inode *, unsigned, int, int *); extern int ufs_getfrag_block (struct inode *inode, sector_t fragment, struct buffer_head *bh_result, int create); --- linux-2.6.17-mm1-full/fs/ufs/inode.c.old 2006-06-22 16:52:31.000000000 +0200 +++ linux-2.6.17-mm1-full/fs/ufs/inode.c 2006-06-22 16:55:15.000000000 +0200 @@ -41,6 +41,8 @@ #include "swab.h" #include "util.h" +static u64 ufs_frag_map(struct inode *inode, sector_t frag); + static int ufs_block_to_path(struct inode *inode, sector_t i_block, sector_t offsets[4]) { struct ufs_sb_private_info *uspi = UFS_SB(inode->i_sb)->s_uspi; @@ -80,7 +82,7 @@ * the begining of the filesystem. */ -u64 ufs_frag_map(struct inode *inode, sector_t frag) +static u64 ufs_frag_map(struct inode *inode, sector_t frag) { struct ufs_inode_info *ufsi = UFS_I(inode); struct super_block *sb = inode->i_sb; @@ -514,8 +516,9 @@ goto abort; } -struct buffer_head *ufs_getfrag(struct inode *inode, unsigned int fragment, - int create, int *err) +static struct buffer_head *ufs_getfrag(struct inode *inode, + unsigned int fragment, + int create, int *err) { struct buffer_head dummy; int error; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |