vfs: make generic_readlink() static
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
dfeef68862
commit
d16744ec8a
|
@ -4650,7 +4650,8 @@ out:
|
||||||
* have ->get_link() not calling nd_jump_link(). Using (or not using) it
|
* have ->get_link() not calling nd_jump_link(). Using (or not using) it
|
||||||
* for any given inode is up to filesystem.
|
* for any given inode is up to filesystem.
|
||||||
*/
|
*/
|
||||||
int generic_readlink(struct dentry *dentry, char __user *buffer, int buflen)
|
static int generic_readlink(struct dentry *dentry, char __user *buffer,
|
||||||
|
int buflen)
|
||||||
{
|
{
|
||||||
DEFINE_DELAYED_CALL(done);
|
DEFINE_DELAYED_CALL(done);
|
||||||
struct inode *inode = d_inode(dentry);
|
struct inode *inode = d_inode(dentry);
|
||||||
|
@ -4666,7 +4667,6 @@ int generic_readlink(struct dentry *dentry, char __user *buffer, int buflen)
|
||||||
do_delayed_call(&done);
|
do_delayed_call(&done);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(generic_readlink);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* vfs_readlink - copy symlink body into userspace buffer
|
* vfs_readlink - copy symlink body into userspace buffer
|
||||||
|
|
|
@ -2915,7 +2915,6 @@ extern int __page_symlink(struct inode *inode, const char *symname, int len,
|
||||||
extern int page_symlink(struct inode *inode, const char *symname, int len);
|
extern int page_symlink(struct inode *inode, const char *symname, int len);
|
||||||
extern const struct inode_operations page_symlink_inode_operations;
|
extern const struct inode_operations page_symlink_inode_operations;
|
||||||
extern void kfree_link(void *);
|
extern void kfree_link(void *);
|
||||||
extern int generic_readlink(struct dentry *, char __user *, int);
|
|
||||||
extern void generic_fillattr(struct inode *, struct kstat *);
|
extern void generic_fillattr(struct inode *, struct kstat *);
|
||||||
int vfs_getattr_nosec(struct path *path, struct kstat *stat);
|
int vfs_getattr_nosec(struct path *path, struct kstat *stat);
|
||||||
extern int vfs_getattr(struct path *, struct kstat *);
|
extern int vfs_getattr(struct path *, struct kstat *);
|
||||||
|
|
Loading…
Reference in New Issue