Commit a497f5c2 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] remove dead exports from fs/fat/

These were used by the defunct umsdos code only.
Signed-off-by: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 35a76403
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
static int fat_dir_ioctl(struct inode * inode, struct file * filp,
unsigned int cmd, unsigned long arg);
static int fat_readdir(struct file *filp, void *dirent, filldir_t filldir);
struct file_operations fat_dir_operations = { struct file_operations fat_dir_operations = {
.read = generic_read_dir, .read = generic_read_dir,
.readdir = fat_readdir, .readdir = fat_readdir,
...@@ -567,7 +571,7 @@ static int fat_readdirx(struct inode *inode, struct file *filp, void *dirent, ...@@ -567,7 +571,7 @@ static int fat_readdirx(struct inode *inode, struct file *filp, void *dirent,
return ret; return ret;
} }
int fat_readdir(struct file *filp, void *dirent, filldir_t filldir) static int fat_readdir(struct file *filp, void *dirent, filldir_t filldir)
{ {
struct inode *inode = filp->f_dentry->d_inode; struct inode *inode = filp->f_dentry->d_inode;
return fat_readdirx(inode, filp, dirent, filldir, 0, 0); return fat_readdirx(inode, filp, dirent, filldir, 0, 0);
...@@ -624,7 +628,7 @@ static int fat_ioctl_filldir(void *__buf, const char * name, int name_len, ...@@ -624,7 +628,7 @@ static int fat_ioctl_filldir(void *__buf, const char * name, int name_len,
return -EFAULT; return -EFAULT;
} }
int fat_dir_ioctl(struct inode * inode, struct file * filp, static int fat_dir_ioctl(struct inode * inode, struct file * filp,
unsigned int cmd, unsigned long arg) unsigned int cmd, unsigned long arg)
{ {
struct fat_ioctl_filldir_callback buf; struct fat_ioctl_filldir_callback buf;
......
...@@ -12,26 +12,17 @@ ...@@ -12,26 +12,17 @@
#include <linux/msdos_fs.h> #include <linux/msdos_fs.h>
EXPORT_SYMBOL(fat_new_dir); EXPORT_SYMBOL(fat_new_dir);
EXPORT_SYMBOL(fat_get_block);
EXPORT_SYMBOL(fat_clear_inode);
EXPORT_SYMBOL(fat_date_unix2dos); EXPORT_SYMBOL(fat_date_unix2dos);
EXPORT_SYMBOL(fat_delete_inode);
EXPORT_SYMBOL(fat__get_entry); EXPORT_SYMBOL(fat__get_entry);
EXPORT_SYMBOL(fat_notify_change); EXPORT_SYMBOL(fat_notify_change);
EXPORT_SYMBOL(fat_put_super);
EXPORT_SYMBOL(fat_attach); EXPORT_SYMBOL(fat_attach);
EXPORT_SYMBOL(fat_detach); EXPORT_SYMBOL(fat_detach);
EXPORT_SYMBOL(fat_build_inode); EXPORT_SYMBOL(fat_build_inode);
EXPORT_SYMBOL(fat_fill_super); EXPORT_SYMBOL(fat_fill_super);
EXPORT_SYMBOL(fat_search_long); EXPORT_SYMBOL(fat_search_long);
EXPORT_SYMBOL(fat_readdir);
EXPORT_SYMBOL(fat_scan); EXPORT_SYMBOL(fat_scan);
EXPORT_SYMBOL(fat_statfs);
EXPORT_SYMBOL(fat_write_inode);
EXPORT_SYMBOL(fat_dir_ioctl);
EXPORT_SYMBOL(fat_add_entries); EXPORT_SYMBOL(fat_add_entries);
EXPORT_SYMBOL(fat_dir_empty); EXPORT_SYMBOL(fat_dir_empty);
EXPORT_SYMBOL(fat_truncate);
int __init fat_init_inodecache(void); int __init fat_init_inodecache(void);
void __exit fat_destroy_inodecache(void); void __exit fat_destroy_inodecache(void);
......
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
static int fat_default_codepage = CONFIG_FAT_DEFAULT_CODEPAGE; static int fat_default_codepage = CONFIG_FAT_DEFAULT_CODEPAGE;
static char fat_default_iocharset[] = CONFIG_FAT_DEFAULT_IOCHARSET; static char fat_default_iocharset[] = CONFIG_FAT_DEFAULT_IOCHARSET;
static int fat_statfs(struct super_block *sb, struct kstatfs *buf);
static void fat_write_inode(struct inode *inode, int wait);
/* /*
* New FAT inode stuff. We do the following: * New FAT inode stuff. We do the following:
* a) i_ino is constant and has nothing with on-disk location. * a) i_ino is constant and has nothing with on-disk location.
...@@ -143,7 +146,7 @@ struct inode *fat_build_inode(struct super_block *sb, ...@@ -143,7 +146,7 @@ struct inode *fat_build_inode(struct super_block *sb,
return inode; return inode;
} }
void fat_delete_inode(struct inode *inode) static void fat_delete_inode(struct inode *inode)
{ {
if (!is_bad_inode(inode)) { if (!is_bad_inode(inode)) {
inode->i_size = 0; inode->i_size = 0;
...@@ -152,7 +155,7 @@ void fat_delete_inode(struct inode *inode) ...@@ -152,7 +155,7 @@ void fat_delete_inode(struct inode *inode)
clear_inode(inode); clear_inode(inode);
} }
void fat_clear_inode(struct inode *inode) static void fat_clear_inode(struct inode *inode)
{ {
if (is_bad_inode(inode)) if (is_bad_inode(inode))
return; return;
...@@ -164,7 +167,7 @@ void fat_clear_inode(struct inode *inode) ...@@ -164,7 +167,7 @@ void fat_clear_inode(struct inode *inode)
unlock_kernel(); unlock_kernel();
} }
void fat_put_super(struct super_block *sb) static void fat_put_super(struct super_block *sb)
{ {
struct msdos_sb_info *sbi = MSDOS_SB(sb); struct msdos_sb_info *sbi = MSDOS_SB(sb);
...@@ -1072,7 +1075,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, ...@@ -1072,7 +1075,7 @@ int fat_fill_super(struct super_block *sb, void *data, int silent,
return error; return error;
} }
int fat_statfs(struct super_block *sb, struct kstatfs *buf) static int fat_statfs(struct super_block *sb, struct kstatfs *buf)
{ {
int free, nr, ret; int free, nr, ret;
......
...@@ -244,9 +244,6 @@ extern struct file_operations fat_dir_operations; ...@@ -244,9 +244,6 @@ extern struct file_operations fat_dir_operations;
extern int fat_search_long(struct inode *inode, const unsigned char *name, extern int fat_search_long(struct inode *inode, const unsigned char *name,
int name_len, int anycase, int name_len, int anycase,
loff_t *spos, loff_t *lpos); loff_t *spos, loff_t *lpos);
extern int fat_readdir(struct file *filp, void *dirent, filldir_t filldir);
extern int fat_dir_ioctl(struct inode * inode, struct file * filp,
unsigned int cmd, unsigned long arg);
extern int fat_add_entries(struct inode *dir, int slots, struct buffer_head **bh, extern int fat_add_entries(struct inode *dir, int slots, struct buffer_head **bh,
struct msdos_dir_entry **de, loff_t *i_pos); struct msdos_dir_entry **de, loff_t *i_pos);
extern int fat_new_dir(struct inode *dir, struct inode *parent, int is_vfat); extern int fat_new_dir(struct inode *dir, struct inode *parent, int is_vfat);
...@@ -270,13 +267,8 @@ extern void fat_detach(struct inode *inode); ...@@ -270,13 +267,8 @@ extern void fat_detach(struct inode *inode);
extern struct inode *fat_iget(struct super_block *sb, loff_t i_pos); extern struct inode *fat_iget(struct super_block *sb, loff_t i_pos);
extern struct inode *fat_build_inode(struct super_block *sb, extern struct inode *fat_build_inode(struct super_block *sb,
struct msdos_dir_entry *de, loff_t i_pos, int *res); struct msdos_dir_entry *de, loff_t i_pos, int *res);
extern void fat_delete_inode(struct inode *inode);
extern void fat_clear_inode(struct inode *inode);
extern void fat_put_super(struct super_block *sb);
int fat_fill_super(struct super_block *sb, void *data, int silent, int fat_fill_super(struct super_block *sb, void *data, int silent,
struct inode_operations *fs_dir_inode_ops, int isvfat); struct inode_operations *fs_dir_inode_ops, int isvfat);
extern int fat_statfs(struct super_block *sb, struct kstatfs *buf);
extern int fat_write_inode(struct inode *inode, int wait);
extern int fat_notify_change(struct dentry * dentry, struct iattr * attr); extern int fat_notify_change(struct dentry * dentry, struct iattr * attr);
/* fat/misc.c */ /* fat/misc.c */
......
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