From 760b8a24a226866ea6466f97dd68b0cf4fadebc3 Mon Sep 17 00:00:00 2001 From: Hirofumi Ogawa Date: Wed, 9 Mar 2005 17:03:57 -0800 Subject: [PATCH] FAT: make the fat_get_entry()/fat__get_entry() static Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/msdos_fs.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'include/linux/msdos_fs.h') diff --git a/include/linux/msdos_fs.h b/include/linux/msdos_fs.h index 8438a909a661..9a3d27257984 100644 --- a/include/linux/msdos_fs.h +++ b/include/linux/msdos_fs.h @@ -405,23 +405,6 @@ extern void fat_clusters_flush(struct super_block *sb); extern int fat_chain_add(struct inode *inode, int new_dclus, int nr_cluster); extern int date_dos2unix(unsigned short time, unsigned short date); extern void fat_date_unix2dos(int unix_date, __le16 *time, __le16 *date); -extern int fat__get_entry(struct inode *dir, loff_t *pos, - struct buffer_head **bh, - struct msdos_dir_entry **de, loff_t *i_pos); -static __inline__ int fat_get_entry(struct inode *dir, loff_t *pos, - struct buffer_head **bh, - struct msdos_dir_entry **de, loff_t *i_pos) -{ - /* Fast stuff first */ - if (*bh && *de && - (*de - (struct msdos_dir_entry *)(*bh)->b_data) < MSDOS_SB(dir->i_sb)->dir_per_block - 1) { - *pos += sizeof(struct msdos_dir_entry); - (*de)++; - (*i_pos)++; - return 0; - } - return fat__get_entry(dir, pos, bh, de, i_pos); -} extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs); #endif /* __KERNEL__ */ -- cgit v1.2.3