diff options
-rw-r--r-- | fs/relayfs/inode.c | 12 | ||||
-rw-r--r-- | include/linux/relayfs_fs.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/fs/relayfs/inode.c b/fs/relayfs/inode.c index a5e6d4f2efb9..b2f50655736b 100644 --- a/fs/relayfs/inode.c +++ b/fs/relayfs/inode.c | |||
@@ -225,6 +225,17 @@ int relayfs_remove(struct dentry *dentry) | |||
225 | } | 225 | } |
226 | 226 | ||
227 | /** | 227 | /** |
228 | * relayfs_remove_file - remove a file from relay filesystem | ||
229 | * @dentry: directory dentry | ||
230 | * | ||
231 | * Returns 0 if successful, negative otherwise. | ||
232 | */ | ||
233 | int relayfs_remove_file(struct dentry *dentry) | ||
234 | { | ||
235 | return relayfs_remove(dentry); | ||
236 | } | ||
237 | |||
238 | /** | ||
228 | * relayfs_remove_dir - remove a directory in the relay filesystem | 239 | * relayfs_remove_dir - remove a directory in the relay filesystem |
229 | * @dentry: directory dentry | 240 | * @dentry: directory dentry |
230 | * | 241 | * |
@@ -600,6 +611,7 @@ EXPORT_SYMBOL_GPL(relayfs_file_operations); | |||
600 | EXPORT_SYMBOL_GPL(relayfs_create_dir); | 611 | EXPORT_SYMBOL_GPL(relayfs_create_dir); |
601 | EXPORT_SYMBOL_GPL(relayfs_remove_dir); | 612 | EXPORT_SYMBOL_GPL(relayfs_remove_dir); |
602 | EXPORT_SYMBOL_GPL(relayfs_create_file); | 613 | EXPORT_SYMBOL_GPL(relayfs_create_file); |
614 | EXPORT_SYMBOL_GPL(relayfs_remove_file); | ||
603 | 615 | ||
604 | MODULE_AUTHOR("Tom Zanussi <zanussi@us.ibm.com> and Karim Yaghmour <karim@opersys.com>"); | 616 | MODULE_AUTHOR("Tom Zanussi <zanussi@us.ibm.com> and Karim Yaghmour <karim@opersys.com>"); |
605 | MODULE_DESCRIPTION("Relay Filesystem"); | 617 | MODULE_DESCRIPTION("Relay Filesystem"); |
diff --git a/include/linux/relayfs_fs.h b/include/linux/relayfs_fs.h index a122df2d9880..921540b1cdf8 100644 --- a/include/linux/relayfs_fs.h +++ b/include/linux/relayfs_fs.h | |||
@@ -153,6 +153,7 @@ extern struct dentry *relayfs_create_file(const char *name, | |||
153 | int mode, | 153 | int mode, |
154 | struct file_operations *fops, | 154 | struct file_operations *fops, |
155 | void *data); | 155 | void *data); |
156 | extern int relayfs_remove_file(struct dentry *dentry); | ||
156 | 157 | ||
157 | /** | 158 | /** |
158 | * relay_write - write data into the channel | 159 | * relay_write - write data into the channel |