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
c100cc1b
Commit
c100cc1b
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/block_dev.c
parent
1966f91b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
16 deletions
+32
-16
fs/block_dev.c
fs/block_dev.c
+32
-0
kernel/ksyms.c
kernel/ksyms.c
+0
-16
No files found.
fs/block_dev.c
View file @
c100cc1b
...
@@ -70,6 +70,8 @@ int set_blocksize(struct block_device *bdev, int size)
...
@@ -70,6 +70,8 @@ int set_blocksize(struct block_device *bdev, int size)
return
0
;
return
0
;
}
}
EXPORT_SYMBOL
(
set_blocksize
);
int
sb_set_blocksize
(
struct
super_block
*
sb
,
int
size
)
int
sb_set_blocksize
(
struct
super_block
*
sb
,
int
size
)
{
{
int
bits
;
int
bits
;
...
@@ -82,6 +84,8 @@ int sb_set_blocksize(struct super_block *sb, int size)
...
@@ -82,6 +84,8 @@ int sb_set_blocksize(struct super_block *sb, int size)
return
sb
->
s_blocksize
;
return
sb
->
s_blocksize
;
}
}
EXPORT_SYMBOL
(
sb_set_blocksize
);
int
sb_min_blocksize
(
struct
super_block
*
sb
,
int
size
)
int
sb_min_blocksize
(
struct
super_block
*
sb
,
int
size
)
{
{
int
minsize
=
bdev_hardsect_size
(
sb
->
s_bdev
);
int
minsize
=
bdev_hardsect_size
(
sb
->
s_bdev
);
...
@@ -90,6 +94,8 @@ int sb_min_blocksize(struct super_block *sb, int size)
...
@@ -90,6 +94,8 @@ int sb_min_blocksize(struct super_block *sb, int size)
return
sb_set_blocksize
(
sb
,
size
);
return
sb_set_blocksize
(
sb
,
size
);
}
}
EXPORT_SYMBOL
(
sb_min_blocksize
);
static
int
static
int
blkdev_get_block
(
struct
inode
*
inode
,
sector_t
iblock
,
blkdev_get_block
(
struct
inode
*
inode
,
sector_t
iblock
,
struct
buffer_head
*
bh
,
int
create
)
struct
buffer_head
*
bh
,
int
create
)
...
@@ -358,6 +364,8 @@ struct block_device *bdget(dev_t dev)
...
@@ -358,6 +364,8 @@ struct block_device *bdget(dev_t dev)
return
bdev
;
return
bdev
;
}
}
EXPORT_SYMBOL
(
bdget
);
long
nr_blockdev_pages
(
void
)
long
nr_blockdev_pages
(
void
)
{
{
struct
list_head
*
p
;
struct
list_head
*
p
;
...
@@ -377,6 +385,8 @@ void bdput(struct block_device *bdev)
...
@@ -377,6 +385,8 @@ void bdput(struct block_device *bdev)
iput
(
bdev
->
bd_inode
);
iput
(
bdev
->
bd_inode
);
}
}
EXPORT_SYMBOL
(
bdput
);
int
bd_acquire
(
struct
inode
*
inode
)
int
bd_acquire
(
struct
inode
*
inode
)
{
{
struct
block_device
*
bdev
;
struct
block_device
*
bdev
;
...
@@ -444,6 +454,8 @@ int bd_claim(struct block_device *bdev, void *holder)
...
@@ -444,6 +454,8 @@ int bd_claim(struct block_device *bdev, void *holder)
return
res
;
return
res
;
}
}
EXPORT_SYMBOL
(
bd_claim
);
void
bd_release
(
struct
block_device
*
bdev
)
void
bd_release
(
struct
block_device
*
bdev
)
{
{
spin_lock
(
&
bdev_lock
);
spin_lock
(
&
bdev_lock
);
...
@@ -454,6 +466,8 @@ void bd_release(struct block_device *bdev)
...
@@ -454,6 +466,8 @@ void bd_release(struct block_device *bdev)
spin_unlock
(
&
bdev_lock
);
spin_unlock
(
&
bdev_lock
);
}
}
EXPORT_SYMBOL
(
bd_release
);
/*
/*
* Tries to open block device by device number. Use it ONLY if you
* Tries to open block device by device number. Use it ONLY if you
* really do not have anything better - i.e. when you are behind a
* really do not have anything better - i.e. when you are behind a
...
@@ -471,6 +485,8 @@ struct block_device *open_by_devnum(dev_t dev, unsigned mode, int kind)
...
@@ -471,6 +485,8 @@ struct block_device *open_by_devnum(dev_t dev, unsigned mode, int kind)
return
err
?
ERR_PTR
(
err
)
:
bdev
;
return
err
?
ERR_PTR
(
err
)
:
bdev
;
}
}
EXPORT_SYMBOL
(
open_by_devnum
);
/*
/*
* This routine checks whether a removable media has been changed,
* This routine checks whether a removable media has been changed,
* and invalidates all buffer-cache-entries in that case. This
* and invalidates all buffer-cache-entries in that case. This
...
@@ -500,6 +516,8 @@ int check_disk_change(struct block_device *bdev)
...
@@ -500,6 +516,8 @@ int check_disk_change(struct block_device *bdev)
return
1
;
return
1
;
}
}
EXPORT_SYMBOL
(
check_disk_change
);
static
void
bd_set_size
(
struct
block_device
*
bdev
,
loff_t
size
)
static
void
bd_set_size
(
struct
block_device
*
bdev
,
loff_t
size
)
{
{
unsigned
bsize
=
bdev_hardsect_size
(
bdev
);
unsigned
bsize
=
bdev_hardsect_size
(
bdev
);
...
@@ -632,6 +650,8 @@ int blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags, int kind)
...
@@ -632,6 +650,8 @@ int blkdev_get(struct block_device *bdev, mode_t mode, unsigned flags, int kind)
return
do_open
(
bdev
,
bdev
->
bd_inode
,
&
fake_file
);
return
do_open
(
bdev
,
bdev
->
bd_inode
,
&
fake_file
);
}
}
EXPORT_SYMBOL
(
blkdev_get
);
int
blkdev_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
int
blkdev_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
{
struct
block_device
*
bdev
;
struct
block_device
*
bdev
;
...
@@ -662,6 +682,8 @@ int blkdev_open(struct inode * inode, struct file * filp)
...
@@ -662,6 +682,8 @@ int blkdev_open(struct inode * inode, struct file * filp)
return
res
;
return
res
;
}
}
EXPORT_SYMBOL
(
blkdev_open
);
int
blkdev_put
(
struct
block_device
*
bdev
,
int
kind
)
int
blkdev_put
(
struct
block_device
*
bdev
,
int
kind
)
{
{
int
ret
=
0
;
int
ret
=
0
;
...
@@ -710,6 +732,8 @@ int blkdev_put(struct block_device *bdev, int kind)
...
@@ -710,6 +732,8 @@ int blkdev_put(struct block_device *bdev, int kind)
return
ret
;
return
ret
;
}
}
EXPORT_SYMBOL
(
blkdev_put
);
int
blkdev_close
(
struct
inode
*
inode
,
struct
file
*
filp
)
int
blkdev_close
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
{
if
(
inode
->
i_bdev
->
bd_holder
==
filp
)
if
(
inode
->
i_bdev
->
bd_holder
==
filp
)
...
@@ -760,6 +784,8 @@ struct file_operations def_blk_fops = {
...
@@ -760,6 +784,8 @@ struct file_operations def_blk_fops = {
.
sendfile
=
generic_file_sendfile
,
.
sendfile
=
generic_file_sendfile
,
};
};
EXPORT_SYMBOL
(
def_blk_fops
);
int
ioctl_by_bdev
(
struct
block_device
*
bdev
,
unsigned
cmd
,
unsigned
long
arg
)
int
ioctl_by_bdev
(
struct
block_device
*
bdev
,
unsigned
cmd
,
unsigned
long
arg
)
{
{
int
res
;
int
res
;
...
@@ -770,6 +796,8 @@ int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)
...
@@ -770,6 +796,8 @@ int ioctl_by_bdev(struct block_device *bdev, unsigned cmd, unsigned long arg)
return
res
;
return
res
;
}
}
EXPORT_SYMBOL
(
ioctl_by_bdev
);
/**
/**
* lookup_bdev - lookup a struct block_device by name
* lookup_bdev - lookup a struct block_device by name
*
*
...
@@ -854,6 +882,8 @@ struct block_device *open_bdev_excl(const char *path, int flags,
...
@@ -854,6 +882,8 @@ struct block_device *open_bdev_excl(const char *path, int flags,
return
ERR_PTR
(
error
);
return
ERR_PTR
(
error
);
}
}
EXPORT_SYMBOL
(
open_bdev_excl
);
/**
/**
* close_bdev_excl - release a blockdevice openen by open_bdev_excl()
* close_bdev_excl - release a blockdevice openen by open_bdev_excl()
*
*
...
@@ -867,3 +897,5 @@ void close_bdev_excl(struct block_device *bdev, int kind)
...
@@ -867,3 +897,5 @@ void close_bdev_excl(struct block_device *bdev, int kind)
bd_release
(
bdev
);
bd_release
(
bdev
);
blkdev_put
(
bdev
,
kind
);
blkdev_put
(
bdev
,
kind
);
}
}
EXPORT_SYMBOL
(
close_bdev_excl
);
kernel/ksyms.c
View file @
c100cc1b
...
@@ -138,7 +138,6 @@ EXPORT_SYMBOL(page_address);
...
@@ -138,7 +138,6 @@ EXPORT_SYMBOL(page_address);
EXPORT_SYMBOL
(
get_user_pages
);
EXPORT_SYMBOL
(
get_user_pages
);
/* filesystem internal functions */
/* filesystem internal functions */
EXPORT_SYMBOL
(
def_blk_fops
);
EXPORT_SYMBOL
(
update_atime
);
EXPORT_SYMBOL
(
update_atime
);
EXPORT_SYMBOL
(
get_fs_type
);
EXPORT_SYMBOL
(
get_fs_type
);
EXPORT_SYMBOL
(
user_get_super
);
EXPORT_SYMBOL
(
user_get_super
);
...
@@ -161,7 +160,6 @@ EXPORT_SYMBOL(filp_open);
...
@@ -161,7 +160,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
(
check_disk_change
);
EXPORT_SYMBOL
(
invalidate_inodes
);
EXPORT_SYMBOL
(
invalidate_inodes
);
EXPORT_SYMBOL
(
__invalidate_device
);
EXPORT_SYMBOL
(
__invalidate_device
);
EXPORT_SYMBOL
(
invalidate_inode_pages
);
EXPORT_SYMBOL
(
invalidate_inode_pages
);
...
@@ -171,16 +169,6 @@ EXPORT_SYMBOL(inode_setattr);
...
@@ -171,16 +169,6 @@ EXPORT_SYMBOL(inode_setattr);
EXPORT_SYMBOL
(
inode_change_ok
);
EXPORT_SYMBOL
(
inode_change_ok
);
EXPORT_SYMBOL
(
write_inode_now
);
EXPORT_SYMBOL
(
write_inode_now
);
EXPORT_SYMBOL
(
notify_change
);
EXPORT_SYMBOL
(
notify_change
);
EXPORT_SYMBOL
(
set_blocksize
);
EXPORT_SYMBOL
(
sb_set_blocksize
);
EXPORT_SYMBOL
(
sb_min_blocksize
);
EXPORT_SYMBOL
(
bdget
);
EXPORT_SYMBOL
(
bdput
);
EXPORT_SYMBOL
(
bd_claim
);
EXPORT_SYMBOL
(
bd_release
);
EXPORT_SYMBOL
(
open_bdev_excl
);
EXPORT_SYMBOL
(
close_bdev_excl
);
EXPORT_SYMBOL
(
open_by_devnum
);
EXPORT_SYMBOL
(
blockdev_direct_IO
);
EXPORT_SYMBOL
(
blockdev_direct_IO
);
EXPORT_SYMBOL
(
file_ra_state_init
);
EXPORT_SYMBOL
(
file_ra_state_init
);
EXPORT_SYMBOL
(
generic_ro_fops
);
EXPORT_SYMBOL
(
generic_ro_fops
);
...
@@ -240,10 +228,6 @@ EXPORT_SYMBOL(tty_std_termios);
...
@@ -240,10 +228,6 @@ EXPORT_SYMBOL(tty_std_termios);
/* block device driver support */
/* block device driver support */
EXPORT_SYMBOL
(
bmap
);
EXPORT_SYMBOL
(
bmap
);
EXPORT_SYMBOL
(
blkdev_open
);
EXPORT_SYMBOL
(
blkdev_get
);
EXPORT_SYMBOL
(
blkdev_put
);
EXPORT_SYMBOL
(
ioctl_by_bdev
);
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
);
...
...
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