hostfs: fix a duplicated global function name

fs/hostfs/hostfs_user.c defines do_readlink() as non-static, and so does
fs/xfs/linux-2.6/xfs_ioctl.c when CONFIG_XFS_DEBUG=y.  So rename
do_readlink() in hostfs to hostfs_do_readlink().

I think it's better if XFS guys will also rename their do_readlink(),
it's not necessary to use such a general name.

Signed-off-by: WANG Cong <wangcong@zeuux.org>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
WANG Cong 2008-11-19 15:36:46 -08:00 committed by Linus Torvalds
parent ee11940f8e
commit ea7e743e49
3 changed files with 4 additions and 4 deletions

View file

@ -81,7 +81,7 @@ extern int do_rmdir(const char *file);
extern int do_mknod(const char *file, int mode, unsigned int major, extern int do_mknod(const char *file, int mode, unsigned int major,
unsigned int minor); unsigned int minor);
extern int link_file(const char *from, const char *to); extern int link_file(const char *from, const char *to);
extern int do_readlink(char *file, char *buf, int size); extern int hostfs_do_readlink(char *file, char *buf, int size);
extern int rename_file(char *from, char *to); extern int rename_file(char *from, char *to);
extern int do_statfs(char *root, long *bsize_out, long long *blocks_out, extern int do_statfs(char *root, long *bsize_out, long long *blocks_out,
long long *bfree_out, long long *bavail_out, long long *bfree_out, long long *bavail_out,

View file

@ -168,7 +168,7 @@ static char *follow_link(char *link)
if (name == NULL) if (name == NULL)
goto out; goto out;
n = do_readlink(link, name, len); n = hostfs_do_readlink(link, name, len);
if (n < len) if (n < len)
break; break;
len *= 2; len *= 2;
@ -943,7 +943,7 @@ int hostfs_link_readpage(struct file *file, struct page *page)
name = inode_name(page->mapping->host, 0); name = inode_name(page->mapping->host, 0);
if (name == NULL) if (name == NULL)
return -ENOMEM; return -ENOMEM;
err = do_readlink(name, buffer, PAGE_CACHE_SIZE); err = hostfs_do_readlink(name, buffer, PAGE_CACHE_SIZE);
kfree(name); kfree(name);
if (err == PAGE_CACHE_SIZE) if (err == PAGE_CACHE_SIZE)
err = -E2BIG; err = -E2BIG;

View file

@ -377,7 +377,7 @@ int link_file(const char *to, const char *from)
return 0; return 0;
} }
int do_readlink(char *file, char *buf, int size) int hostfs_do_readlink(char *file, char *buf, int size)
{ {
int n; int n;