Commit 74317337 authored by Tom Zanussi's avatar Tom Zanussi Committed by Linus Torvalds

[PATCH] relayfs: add relayfs_remove_file()

This patch adds and exports relayfs_remove_file(), for API symmetry (with
relayfs_create_file()).
Signed-off-by: default avatarTom Zanussi <zanussi@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 907f2c77
...@@ -224,6 +224,17 @@ int relayfs_remove(struct dentry *dentry) ...@@ -224,6 +224,17 @@ int relayfs_remove(struct dentry *dentry)
return error; return error;
} }
/**
* relayfs_remove_file - remove a file from relay filesystem
* @dentry: directory dentry
*
* Returns 0 if successful, negative otherwise.
*/
int relayfs_remove_file(struct dentry *dentry)
{
return relayfs_remove(dentry);
}
/** /**
* relayfs_remove_dir - remove a directory in the relay filesystem * relayfs_remove_dir - remove a directory in the relay filesystem
* @dentry: directory dentry * @dentry: directory dentry
...@@ -600,6 +611,7 @@ EXPORT_SYMBOL_GPL(relayfs_file_operations); ...@@ -600,6 +611,7 @@ EXPORT_SYMBOL_GPL(relayfs_file_operations);
EXPORT_SYMBOL_GPL(relayfs_create_dir); EXPORT_SYMBOL_GPL(relayfs_create_dir);
EXPORT_SYMBOL_GPL(relayfs_remove_dir); EXPORT_SYMBOL_GPL(relayfs_remove_dir);
EXPORT_SYMBOL_GPL(relayfs_create_file); EXPORT_SYMBOL_GPL(relayfs_create_file);
EXPORT_SYMBOL_GPL(relayfs_remove_file);
MODULE_AUTHOR("Tom Zanussi <zanussi@us.ibm.com> and Karim Yaghmour <karim@opersys.com>"); MODULE_AUTHOR("Tom Zanussi <zanussi@us.ibm.com> and Karim Yaghmour <karim@opersys.com>");
MODULE_DESCRIPTION("Relay Filesystem"); MODULE_DESCRIPTION("Relay Filesystem");
......
...@@ -153,6 +153,7 @@ extern struct dentry *relayfs_create_file(const char *name, ...@@ -153,6 +153,7 @@ extern struct dentry *relayfs_create_file(const char *name,
int mode, int mode,
struct file_operations *fops, struct file_operations *fops,
void *data); void *data);
extern int relayfs_remove_file(struct dentry *dentry);
/** /**
* relay_write - write data into the channel * relay_write - write data into the channel
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment