Commit 9bc5fe23 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by Linus Torvalds

o kernel/ksyms.c: move relevant EXPORT_SYMBOLs to fs/inode.c

parent 753d4a8b
...@@ -195,6 +195,8 @@ void inode_init_once(struct inode *inode) ...@@ -195,6 +195,8 @@ void inode_init_once(struct inode *inode)
i_size_ordered_init(inode); i_size_ordered_init(inode);
} }
EXPORT_SYMBOL(inode_init_once);
static void init_once(void * foo, kmem_cache_t * cachep, unsigned long flags) static void init_once(void * foo, kmem_cache_t * cachep, unsigned long flags)
{ {
struct inode * inode = (struct inode *) foo; struct inode * inode = (struct inode *) foo;
...@@ -229,7 +231,6 @@ void __iget(struct inode * inode) ...@@ -229,7 +231,6 @@ void __iget(struct inode * inode)
* that the inode is no longer useful. We just * that the inode is no longer useful. We just
* terminate it with extreme prejudice. * terminate it with extreme prejudice.
*/ */
void clear_inode(struct inode *inode) void clear_inode(struct inode *inode)
{ {
invalidate_inode_buffers(inode); invalidate_inode_buffers(inode);
...@@ -251,6 +252,8 @@ void clear_inode(struct inode *inode) ...@@ -251,6 +252,8 @@ void clear_inode(struct inode *inode)
inode->i_state = I_CLEAR; inode->i_state = I_CLEAR;
} }
EXPORT_SYMBOL(clear_inode);
/* /*
* Dispose-list gets a local list with local inodes in it, so it doesn't * Dispose-list gets a local list with local inodes in it, so it doesn't
* need to worry about list corruption and SMP locks. * need to worry about list corruption and SMP locks.
...@@ -327,7 +330,6 @@ static int invalidate_list(struct list_head *head, struct super_block * sb, stru ...@@ -327,7 +330,6 @@ static int invalidate_list(struct list_head *head, struct super_block * sb, stru
* fails because there are busy inodes then a non zero value is returned. * fails because there are busy inodes then a non zero value is returned.
* If the discard is successful all the inodes have been discarded. * If the discard is successful all the inodes have been discarded.
*/ */
int invalidate_inodes(struct super_block * sb) int invalidate_inodes(struct super_block * sb)
{ {
int busy; int busy;
...@@ -347,6 +349,8 @@ int invalidate_inodes(struct super_block * sb) ...@@ -347,6 +349,8 @@ int invalidate_inodes(struct super_block * sb)
return busy; return busy;
} }
EXPORT_SYMBOL(invalidate_inodes);
int __invalidate_device(struct block_device *bdev, int do_sync) int __invalidate_device(struct block_device *bdev, int do_sync)
{ {
struct super_block *sb; struct super_block *sb;
...@@ -372,6 +376,8 @@ int __invalidate_device(struct block_device *bdev, int do_sync) ...@@ -372,6 +376,8 @@ int __invalidate_device(struct block_device *bdev, int do_sync)
return res; return res;
} }
EXPORT_SYMBOL(__invalidate_device);
static int can_unuse(struct inode *inode) static int can_unuse(struct inode *inode)
{ {
if (inode->i_state) if (inode->i_state)
...@@ -532,7 +538,6 @@ static struct inode * find_inode_fast(struct super_block * sb, struct hlist_head ...@@ -532,7 +538,6 @@ static struct inode * find_inode_fast(struct super_block * sb, struct hlist_head
* *
* Allocates a new inode for given superblock. * Allocates a new inode for given superblock.
*/ */
struct inode *new_inode(struct super_block *sb) struct inode *new_inode(struct super_block *sb)
{ {
static unsigned long last_ino; static unsigned long last_ino;
...@@ -552,6 +557,8 @@ struct inode *new_inode(struct super_block *sb) ...@@ -552,6 +557,8 @@ struct inode *new_inode(struct super_block *sb)
return inode; return inode;
} }
EXPORT_SYMBOL(new_inode);
void unlock_new_inode(struct inode *inode) void unlock_new_inode(struct inode *inode)
{ {
/* /*
...@@ -565,6 +572,7 @@ void unlock_new_inode(struct inode *inode) ...@@ -565,6 +572,7 @@ void unlock_new_inode(struct inode *inode)
inode->i_state &= ~(I_LOCK|I_NEW); inode->i_state &= ~(I_LOCK|I_NEW);
wake_up_inode(inode); wake_up_inode(inode);
} }
EXPORT_SYMBOL(unlock_new_inode); EXPORT_SYMBOL(unlock_new_inode);
/* /*
...@@ -685,7 +693,6 @@ static inline unsigned long hash(struct super_block *sb, unsigned long hashval) ...@@ -685,7 +693,6 @@ static inline unsigned long hash(struct super_block *sb, unsigned long hashval)
* With a large number of inodes live on the file system this function * With a large number of inodes live on the file system this function
* currently becomes quite slow. * currently becomes quite slow.
*/ */
ino_t iunique(struct super_block *sb, ino_t max_reserved) ino_t iunique(struct super_block *sb, ino_t max_reserved)
{ {
static ino_t counter; static ino_t counter;
...@@ -709,6 +716,8 @@ ino_t iunique(struct super_block *sb, ino_t max_reserved) ...@@ -709,6 +716,8 @@ ino_t iunique(struct super_block *sb, ino_t max_reserved)
} }
EXPORT_SYMBOL(iunique);
struct inode *igrab(struct inode *inode) struct inode *igrab(struct inode *inode)
{ {
spin_lock(&inode_lock); spin_lock(&inode_lock);
...@@ -725,6 +734,8 @@ struct inode *igrab(struct inode *inode) ...@@ -725,6 +734,8 @@ struct inode *igrab(struct inode *inode)
return inode; return inode;
} }
EXPORT_SYMBOL(igrab);
/** /**
* ifind - internal function, you want ilookup5() or iget5(). * ifind - internal function, you want ilookup5() or iget5().
* @sb: super block of file system to search * @sb: super block of file system to search
...@@ -818,6 +829,7 @@ struct inode *ilookup5(struct super_block *sb, unsigned long hashval, ...@@ -818,6 +829,7 @@ struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
return ifind(sb, head, test, data); return ifind(sb, head, test, data);
} }
EXPORT_SYMBOL(ilookup5); EXPORT_SYMBOL(ilookup5);
/** /**
...@@ -840,6 +852,7 @@ struct inode *ilookup(struct super_block *sb, unsigned long ino) ...@@ -840,6 +852,7 @@ struct inode *ilookup(struct super_block *sb, unsigned long ino)
return ifind_fast(sb, head, ino); return ifind_fast(sb, head, ino);
} }
EXPORT_SYMBOL(ilookup); EXPORT_SYMBOL(ilookup);
/** /**
...@@ -880,6 +893,7 @@ struct inode *iget5_locked(struct super_block *sb, unsigned long hashval, ...@@ -880,6 +893,7 @@ struct inode *iget5_locked(struct super_block *sb, unsigned long hashval,
*/ */
return get_new_inode(sb, head, test, set, data); return get_new_inode(sb, head, test, set, data);
} }
EXPORT_SYMBOL(iget5_locked); EXPORT_SYMBOL(iget5_locked);
/** /**
...@@ -913,6 +927,7 @@ struct inode *iget_locked(struct super_block *sb, unsigned long ino) ...@@ -913,6 +927,7 @@ struct inode *iget_locked(struct super_block *sb, unsigned long ino)
*/ */
return get_new_inode_fast(sb, head, ino); return get_new_inode_fast(sb, head, ino);
} }
EXPORT_SYMBOL(iget_locked); EXPORT_SYMBOL(iget_locked);
/** /**
...@@ -923,7 +938,6 @@ EXPORT_SYMBOL(iget_locked); ...@@ -923,7 +938,6 @@ EXPORT_SYMBOL(iget_locked);
* *
* Add an inode to the inode hash for this superblock. * Add an inode to the inode hash for this superblock.
*/ */
void __insert_inode_hash(struct inode *inode, unsigned long hashval) void __insert_inode_hash(struct inode *inode, unsigned long hashval)
{ {
struct hlist_head *head = inode_hashtable + hash(inode->i_sb, hashval); struct hlist_head *head = inode_hashtable + hash(inode->i_sb, hashval);
...@@ -932,13 +946,14 @@ void __insert_inode_hash(struct inode *inode, unsigned long hashval) ...@@ -932,13 +946,14 @@ void __insert_inode_hash(struct inode *inode, unsigned long hashval)
spin_unlock(&inode_lock); spin_unlock(&inode_lock);
} }
EXPORT_SYMBOL(__insert_inode_hash);
/** /**
* remove_inode_hash - remove an inode from the hash * remove_inode_hash - remove an inode from the hash
* @inode: inode to unhash * @inode: inode to unhash
* *
* Remove an inode from the superblock. * Remove an inode from the superblock.
*/ */
void remove_inode_hash(struct inode *inode) void remove_inode_hash(struct inode *inode)
{ {
spin_lock(&inode_lock); spin_lock(&inode_lock);
...@@ -946,6 +961,8 @@ void remove_inode_hash(struct inode *inode) ...@@ -946,6 +961,8 @@ void remove_inode_hash(struct inode *inode)
spin_unlock(&inode_lock); spin_unlock(&inode_lock);
} }
EXPORT_SYMBOL(remove_inode_hash);
/* /*
* Tell the filesystem that this inode is no longer of any interest and should * Tell the filesystem that this inode is no longer of any interest and should
* be completely destroyed. * be completely destroyed.
...@@ -988,6 +1005,7 @@ void generic_delete_inode(struct inode *inode) ...@@ -988,6 +1005,7 @@ void generic_delete_inode(struct inode *inode)
BUG(); BUG();
destroy_inode(inode); destroy_inode(inode);
} }
EXPORT_SYMBOL(generic_delete_inode); EXPORT_SYMBOL(generic_delete_inode);
static void generic_forget_inode(struct inode *inode) static void generic_forget_inode(struct inode *inode)
...@@ -1059,7 +1077,6 @@ static inline void iput_final(struct inode *inode) ...@@ -1059,7 +1077,6 @@ static inline void iput_final(struct inode *inode)
* Puts an inode, dropping its usage count. If the inode use count hits * Puts an inode, dropping its usage count. If the inode use count hits
* zero the inode is also then freed and may be destroyed. * zero the inode is also then freed and may be destroyed.
*/ */
void iput(struct inode *inode) void iput(struct inode *inode)
{ {
if (inode) { if (inode) {
...@@ -1076,6 +1093,8 @@ void iput(struct inode *inode) ...@@ -1076,6 +1093,8 @@ void iput(struct inode *inode)
} }
} }
EXPORT_SYMBOL(iput);
/** /**
* bmap - find a block number in a file * bmap - find a block number in a file
* @inode: inode of file * @inode: inode of file
...@@ -1087,7 +1106,6 @@ void iput(struct inode *inode) ...@@ -1087,7 +1106,6 @@ void iput(struct inode *inode)
* disk block relative to the disk start that holds that block of the * disk block relative to the disk start that holds that block of the
* file. * file.
*/ */
sector_t bmap(struct inode * inode, sector_t block) sector_t bmap(struct inode * inode, sector_t block)
{ {
sector_t res = 0; sector_t res = 0;
...@@ -1096,6 +1114,8 @@ sector_t bmap(struct inode * inode, sector_t block) ...@@ -1096,6 +1114,8 @@ sector_t bmap(struct inode * inode, sector_t block)
return res; return res;
} }
EXPORT_SYMBOL(bmap);
/* /*
* Return true if the filesystem which backs this inode considers the two * Return true if the filesystem which backs this inode considers the two
* passed timespecs to be sufficiently different to warrant flushing the * passed timespecs to be sufficiently different to warrant flushing the
...@@ -1117,7 +1137,6 @@ static int inode_times_differ(struct inode *inode, ...@@ -1117,7 +1137,6 @@ static int inode_times_differ(struct inode *inode,
* This function automatically handles read only file systems and media, * This function automatically handles read only file systems and media,
* as well as the "noatime" flag and inode specific "noatime" markers. * as well as the "noatime" flag and inode specific "noatime" markers.
*/ */
void update_atime(struct inode *inode) void update_atime(struct inode *inode)
{ {
struct timespec now; struct timespec now;
...@@ -1139,6 +1158,8 @@ void update_atime(struct inode *inode) ...@@ -1139,6 +1158,8 @@ void update_atime(struct inode *inode)
} }
} }
EXPORT_SYMBOL(update_atime);
/** /**
* inode_update_time - update mtime and ctime time * inode_update_time - update mtime and ctime time
* @inode: inode accessed * @inode: inode accessed
...@@ -1170,6 +1191,7 @@ void inode_update_time(struct inode *inode, int ctime_too) ...@@ -1170,6 +1191,7 @@ void inode_update_time(struct inode *inode, int ctime_too)
if (sync_it) if (sync_it)
mark_inode_dirty_sync(inode); mark_inode_dirty_sync(inode);
} }
EXPORT_SYMBOL(inode_update_time); EXPORT_SYMBOL(inode_update_time);
int inode_needs_sync(struct inode *inode) int inode_needs_sync(struct inode *inode)
...@@ -1180,6 +1202,7 @@ int inode_needs_sync(struct inode *inode) ...@@ -1180,6 +1202,7 @@ int inode_needs_sync(struct inode *inode)
return 1; return 1;
return 0; return 0;
} }
EXPORT_SYMBOL(inode_needs_sync); EXPORT_SYMBOL(inode_needs_sync);
/* /*
...@@ -1375,3 +1398,5 @@ void init_special_inode(struct inode *inode, umode_t mode, dev_t rdev) ...@@ -1375,3 +1398,5 @@ void init_special_inode(struct inode *inode, umode_t mode, dev_t rdev)
printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o)\n", printk(KERN_DEBUG "init_special_inode: bogus i_mode (%o)\n",
mode); mode);
} }
EXPORT_SYMBOL(init_special_inode);
...@@ -138,14 +138,9 @@ EXPORT_SYMBOL(page_address); ...@@ -138,14 +138,9 @@ EXPORT_SYMBOL(page_address);
EXPORT_SYMBOL(get_user_pages); EXPORT_SYMBOL(get_user_pages);
/* filesystem internal functions */ /* filesystem internal functions */
EXPORT_SYMBOL(update_atime);
EXPORT_SYMBOL(get_fs_type); EXPORT_SYMBOL(get_fs_type);
EXPORT_SYMBOL(fput); EXPORT_SYMBOL(fput);
EXPORT_SYMBOL(fget); EXPORT_SYMBOL(fget);
EXPORT_SYMBOL(igrab);
EXPORT_SYMBOL(iunique);
EXPORT_SYMBOL(iput);
EXPORT_SYMBOL(inode_init_once);
EXPORT_SYMBOL(lookup_mnt); EXPORT_SYMBOL(lookup_mnt);
EXPORT_SYMBOL(sys_close); EXPORT_SYMBOL(sys_close);
EXPORT_SYMBOL(dcache_lock); EXPORT_SYMBOL(dcache_lock);
...@@ -157,8 +152,6 @@ EXPORT_SYMBOL(filp_open); ...@@ -157,8 +152,6 @@ EXPORT_SYMBOL(filp_open);
EXPORT_SYMBOL(filp_close); EXPORT_SYMBOL(filp_close);
EXPORT_SYMBOL(put_filp); EXPORT_SYMBOL(put_filp);
EXPORT_SYMBOL(files_lock); EXPORT_SYMBOL(files_lock);
EXPORT_SYMBOL(invalidate_inodes);
EXPORT_SYMBOL(__invalidate_device);
EXPORT_SYMBOL(invalidate_inode_pages); EXPORT_SYMBOL(invalidate_inode_pages);
EXPORT_SYMBOL_GPL(invalidate_inode_pages2); EXPORT_SYMBOL_GPL(invalidate_inode_pages2);
EXPORT_SYMBOL(truncate_inode_pages); EXPORT_SYMBOL(truncate_inode_pages);
...@@ -214,7 +207,6 @@ EXPORT_SYMBOL(tty_unregister_driver); ...@@ -214,7 +207,6 @@ EXPORT_SYMBOL(tty_unregister_driver);
EXPORT_SYMBOL(tty_std_termios); EXPORT_SYMBOL(tty_std_termios);
/* block device driver support */ /* block device driver support */
EXPORT_SYMBOL(bmap);
EXPORT_SYMBOL(read_dev_sector); EXPORT_SYMBOL(read_dev_sector);
EXPORT_SYMBOL(iov_shorten); EXPORT_SYMBOL(iov_shorten);
EXPORT_SYMBOL_GPL(default_backing_dev_info); EXPORT_SYMBOL_GPL(default_backing_dev_info);
...@@ -356,11 +348,6 @@ EXPORT_SYMBOL(si_meminfo); ...@@ -356,11 +348,6 @@ EXPORT_SYMBOL(si_meminfo);
/* Added to make file system as module */ /* Added to make file system as module */
EXPORT_SYMBOL(sys_tz); EXPORT_SYMBOL(sys_tz);
EXPORT_SYMBOL(clear_inode);
EXPORT_SYMBOL(init_special_inode);
EXPORT_SYMBOL(new_inode);
EXPORT_SYMBOL(__insert_inode_hash);
EXPORT_SYMBOL(remove_inode_hash);
EXPORT_SYMBOL(make_bad_inode); EXPORT_SYMBOL(make_bad_inode);
EXPORT_SYMBOL(is_bad_inode); EXPORT_SYMBOL(is_bad_inode);
EXPORT_SYMBOL(__inode_dir_notify); EXPORT_SYMBOL(__inode_dir_notify);
......
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