Skip to content

Commit

Permalink
hostfs: rename do_rmdir() to hostfs_do_rmdir()
Browse files Browse the repository at this point in the history
do_rmdir() is used in the VFS layer at fs/namei.c, so use a different
name in hostfs.

Cc: Jeff Dike <[email protected]>
Cc: [email protected]
Acked-by: Richard Weinberger <[email protected]>
Signed-off-by: Dominik Brodowski <[email protected]>
  • Loading branch information
Dominik Brodowski committed Apr 2, 2018
1 parent 0f32ab8 commit 6380161
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/hostfs/hostfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extern int set_attr(const char *file, struct hostfs_iattr *attrs, int fd);
extern int make_symlink(const char *from, const char *to);
extern int unlink_file(const char *file);
extern int do_mkdir(const char *file, int mode);
extern int do_rmdir(const char *file);
extern int hostfs_do_rmdir(const char *file);
extern int do_mknod(const char *file, int mode, unsigned int major,
unsigned int minor);
extern int link_file(const char *from, const char *to);
Expand Down
2 changes: 1 addition & 1 deletion fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ static int hostfs_rmdir(struct inode *ino, struct dentry *dentry)

if ((file = dentry_name(dentry)) == NULL)
return -ENOMEM;
err = do_rmdir(file);
err = hostfs_do_rmdir(file);
__putname(file);
return err;
}
Expand Down
2 changes: 1 addition & 1 deletion fs/hostfs/hostfs_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ int do_mkdir(const char *file, int mode)
return 0;
}

int do_rmdir(const char *file)
int hostfs_do_rmdir(const char *file)
{
int err;

Expand Down

0 comments on commit 6380161

Please sign in to comment.