diff options
author | Tom Zanussi <zanussi@us.ibm.com> | 2006-01-08 04:02:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:13:49 -0500 |
commit | 7431733791feb0b19453d8047b0723c744667040 (patch) | |
tree | 9521c656ba72bac4de8e29a8f1c22881c3b3d1ad /fs | |
parent | 907f2c77d1653ce235e8e1fd6ce5c46005814e78 (diff) |
[PATCH] relayfs: add relayfs_remove_file()
This patch adds and exports relayfs_remove_file(), for API symmetry (with
relayfs_create_file()).
Signed-off-by: Tom Zanussi <zanussi@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/relayfs/inode.c | 12 |
1 files changed, 12 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"); |