Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
9bc5fe23
Commit
9bc5fe23
authored
Oct 01, 2003
by
Arnaldo Carvalho de Melo
Committed by
Linus Torvalds
Oct 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o kernel/ksyms.c: move relevant EXPORT_SYMBOLs to fs/inode.c
parent
753d4a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
22 deletions
+34
-22
fs/inode.c
fs/inode.c
+34
-9
kernel/ksyms.c
kernel/ksyms.c
+0
-13
No files found.
fs/inode.c
View file @
9bc5fe23
...
...
@@ -195,6 +195,8 @@ void inode_init_once(struct inode *inode)
i_size_ordered_init
(
inode
);
}
EXPORT_SYMBOL
(
inode_init_once
);
static
void
init_once
(
void
*
foo
,
kmem_cache_t
*
cachep
,
unsigned
long
flags
)
{
struct
inode
*
inode
=
(
struct
inode
*
)
foo
;
...
...
@@ -229,7 +231,6 @@ void __iget(struct inode * inode)
* that the inode is no longer useful. We just
* terminate it with extreme prejudice.
*/
void
clear_inode
(
struct
inode
*
inode
)
{
invalidate_inode_buffers
(
inode
);
...
...
@@ -251,6 +252,8 @@ void clear_inode(struct inode *inode)
inode
->
i_state
=
I_CLEAR
;
}
EXPORT_SYMBOL
(
clear_inode
);
/*
* Dispose-list gets a local list with local inodes in it, so it doesn't
* 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
* fails because there are busy inodes then a non zero value is returned.
* If the discard is successful all the inodes have been discarded.
*/
int
invalidate_inodes
(
struct
super_block
*
sb
)
{
int
busy
;
...
...
@@ -346,6 +348,8 @@ int invalidate_inodes(struct super_block * sb)
return
busy
;
}
EXPORT_SYMBOL
(
invalidate_inodes
);
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
;
}
EXPORT_SYMBOL
(
__invalidate_device
);
static
int
can_unuse
(
struct
inode
*
inode
)
{
if
(
inode
->
i_state
)
...
...
@@ -532,7 +538,6 @@ static struct inode * find_inode_fast(struct super_block * sb, struct hlist_head
*
* Allocates a new inode for given superblock.
*/
struct
inode
*
new_inode
(
struct
super_block
*
sb
)
{
static
unsigned
long
last_ino
;
...
...
@@ -552,6 +557,8 @@ struct inode *new_inode(struct super_block *sb)
return
inode
;
}
EXPORT_SYMBOL
(
new_inode
);
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
);
wake_up_inode
(
inode
);
}
EXPORT_SYMBOL
(
unlock_new_inode
);
/*
...
...
@@ -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
* currently becomes quite slow.
*/
ino_t
iunique
(
struct
super_block
*
sb
,
ino_t
max_reserved
)
{
static
ino_t
counter
;
...
...
@@ -709,6 +716,8 @@ ino_t iunique(struct super_block *sb, ino_t max_reserved)
}
EXPORT_SYMBOL
(
iunique
);
struct
inode
*
igrab
(
struct
inode
*
inode
)
{
spin_lock
(
&
inode_lock
);
...
...
@@ -725,6 +734,8 @@ struct inode *igrab(struct inode *inode)
return
inode
;
}
EXPORT_SYMBOL
(
igrab
);
/**
* ifind - internal function, you want ilookup5() or iget5().
* @sb: super block of file system to search
...
...
@@ -818,6 +829,7 @@ struct inode *ilookup5(struct super_block *sb, unsigned long hashval,
return
ifind
(
sb
,
head
,
test
,
data
);
}
EXPORT_SYMBOL
(
ilookup5
);
/**
...
...
@@ -840,6 +852,7 @@ struct inode *ilookup(struct super_block *sb, unsigned long ino)
return
ifind_fast
(
sb
,
head
,
ino
);
}
EXPORT_SYMBOL
(
ilookup
);
/**
...
...
@@ -880,6 +893,7 @@ struct inode *iget5_locked(struct super_block *sb, unsigned long hashval,
*/
return
get_new_inode
(
sb
,
head
,
test
,
set
,
data
);
}
EXPORT_SYMBOL
(
iget5_locked
);
/**
...
...
@@ -913,6 +927,7 @@ struct inode *iget_locked(struct super_block *sb, unsigned long ino)
*/
return
get_new_inode_fast
(
sb
,
head
,
ino
);
}
EXPORT_SYMBOL
(
iget_locked
);
/**
...
...
@@ -923,7 +938,6 @@ EXPORT_SYMBOL(iget_locked);
*
* Add an inode to the inode hash for this superblock.
*/
void
__insert_inode_hash
(
struct
inode
*
inode
,
unsigned
long
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)
spin_unlock
(
&
inode_lock
);
}
EXPORT_SYMBOL
(
__insert_inode_hash
);
/**
* remove_inode_hash - remove an inode from the hash
* @inode: inode to unhash
*
* Remove an inode from the superblock.
*/
void
remove_inode_hash
(
struct
inode
*
inode
)
{
spin_lock
(
&
inode_lock
);
...
...
@@ -946,6 +961,8 @@ void remove_inode_hash(struct inode *inode)
spin_unlock
(
&
inode_lock
);
}
EXPORT_SYMBOL
(
remove_inode_hash
);
/*
* Tell the filesystem that this inode is no longer of any interest and should
* be completely destroyed.
...
...
@@ -988,6 +1005,7 @@ void generic_delete_inode(struct inode *inode)
BUG
();
destroy_inode
(
inode
);
}
EXPORT_SYMBOL
(
generic_delete_inode
);
static
void
generic_forget_inode
(
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
* zero the inode is also then freed and may be destroyed.
*/
void
iput
(
struct
inode
*
inode
)
{
if
(
inode
)
{
...
...
@@ -1076,6 +1093,8 @@ void iput(struct inode *inode)
}
}
EXPORT_SYMBOL
(
iput
);
/**
* bmap - find a block number in a file
* @inode: inode of file
...
...
@@ -1087,7 +1106,6 @@ void iput(struct inode *inode)
* disk block relative to the disk start that holds that block of the
* file.
*/
sector_t
bmap
(
struct
inode
*
inode
,
sector_t
block
)
{
sector_t
res
=
0
;
...
...
@@ -1096,6 +1114,8 @@ sector_t bmap(struct inode * inode, sector_t block)
return
res
;
}
EXPORT_SYMBOL
(
bmap
);
/*
* Return true if the filesystem which backs this inode considers the two
* passed timespecs to be sufficiently different to warrant flushing the
...
...
@@ -1117,7 +1137,6 @@ static int inode_times_differ(struct inode *inode,
* This function automatically handles read only file systems and media,
* as well as the "noatime" flag and inode specific "noatime" markers.
*/
void
update_atime
(
struct
inode
*
inode
)
{
struct
timespec
now
;
...
...
@@ -1139,6 +1158,8 @@ void update_atime(struct inode *inode)
}
}
EXPORT_SYMBOL
(
update_atime
);
/**
* inode_update_time - update mtime and ctime time
* @inode: inode accessed
...
...
@@ -1170,6 +1191,7 @@ void inode_update_time(struct inode *inode, int ctime_too)
if
(
sync_it
)
mark_inode_dirty_sync
(
inode
);
}
EXPORT_SYMBOL
(
inode_update_time
);
int
inode_needs_sync
(
struct
inode
*
inode
)
...
...
@@ -1180,6 +1202,7 @@ int inode_needs_sync(struct inode *inode)
return
1
;
return
0
;
}
EXPORT_SYMBOL
(
inode_needs_sync
);
/*
...
...
@@ -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
"
,
mode
);
}
EXPORT_SYMBOL
(
init_special_inode
);
kernel/ksyms.c
View file @
9bc5fe23
...
...
@@ -138,14 +138,9 @@ EXPORT_SYMBOL(page_address);
EXPORT_SYMBOL
(
get_user_pages
);
/* filesystem internal functions */
EXPORT_SYMBOL
(
update_atime
);
EXPORT_SYMBOL
(
get_fs_type
);
EXPORT_SYMBOL
(
fput
);
EXPORT_SYMBOL
(
fget
);
EXPORT_SYMBOL
(
igrab
);
EXPORT_SYMBOL
(
iunique
);
EXPORT_SYMBOL
(
iput
);
EXPORT_SYMBOL
(
inode_init_once
);
EXPORT_SYMBOL
(
lookup_mnt
);
EXPORT_SYMBOL
(
sys_close
);
EXPORT_SYMBOL
(
dcache_lock
);
...
...
@@ -157,8 +152,6 @@ EXPORT_SYMBOL(filp_open);
EXPORT_SYMBOL
(
filp_close
);
EXPORT_SYMBOL
(
put_filp
);
EXPORT_SYMBOL
(
files_lock
);
EXPORT_SYMBOL
(
invalidate_inodes
);
EXPORT_SYMBOL
(
__invalidate_device
);
EXPORT_SYMBOL
(
invalidate_inode_pages
);
EXPORT_SYMBOL_GPL
(
invalidate_inode_pages2
);
EXPORT_SYMBOL
(
truncate_inode_pages
);
...
...
@@ -214,7 +207,6 @@ EXPORT_SYMBOL(tty_unregister_driver);
EXPORT_SYMBOL
(
tty_std_termios
);
/* block device driver support */
EXPORT_SYMBOL
(
bmap
);
EXPORT_SYMBOL
(
read_dev_sector
);
EXPORT_SYMBOL
(
iov_shorten
);
EXPORT_SYMBOL_GPL
(
default_backing_dev_info
);
...
...
@@ -356,11 +348,6 @@ EXPORT_SYMBOL(si_meminfo);
/* Added to make file system as module */
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
(
is_bad_inode
);
EXPORT_SYMBOL
(
__inode_dir_notify
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment