]> err.no Git - linux-2.6/commitdiff
[PATCH] relayfs: add relayfs_remove_file()
authorTom Zanussi <zanussi@us.ibm.com>
Sun, 8 Jan 2006 09:02:25 +0000 (01:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:13:49 +0000 (20:13 -0800)
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>
fs/relayfs/inode.c
include/linux/relayfs_fs.h

index a5e6d4f2efb9bded20601c4b94841bc2bd0ae369..b2f50655736bf7cfa42efca7806c6cb1f4cdb8d5 100644 (file)
@@ -224,6 +224,17 @@ int relayfs_remove(struct dentry *dentry)
        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
  *     @dentry: directory dentry
@@ -600,6 +611,7 @@ EXPORT_SYMBOL_GPL(relayfs_file_operations);
 EXPORT_SYMBOL_GPL(relayfs_create_dir);
 EXPORT_SYMBOL_GPL(relayfs_remove_dir);
 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_DESCRIPTION("Relay Filesystem");
index a122df2d988079512839a2be9706f882e275d69a..921540b1cdf8f323ef808395993c200dfeafe1f1 100644 (file)
@@ -153,6 +153,7 @@ extern struct dentry *relayfs_create_file(const char *name,
                                          int mode,
                                          struct file_operations *fops,
                                          void *data);
+extern int relayfs_remove_file(struct dentry *dentry);
 
 /**
  *     relay_write - write data into the channel