fs: configfs: Drop unused parameter from configfs_undepend_item()
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Fri, 11 Dec 2015 15:06:09 +0000 (16:06 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 21 Dec 2015 02:03:57 +0000 (18:03 -0800)
subsys parameter is never used by configfs_undepend_item()
so there is no point in passing it to this function.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c
fs/configfs/dir.c
fs/ocfs2/cluster/nodemanager.c
include/linux/configfs.h

index b9b9ffde4c7a870e32a623ad5aacbf289c07ebef..2e47fe68e4eab4f81473b37103eb98b174c0be41 100644 (file)
@@ -278,7 +278,7 @@ EXPORT_SYMBOL(target_depend_item);
 
 void target_undepend_item(struct config_item *item)
 {
-       return configfs_undepend_item(&target_core_fabrics, item);
+       return configfs_undepend_item(item);
 }
 EXPORT_SYMBOL(target_undepend_item);
 
index a7a1b218f308af56ac3094fa5f2ddb6b2749dd4a..d390245965b105673e343b77b1ca887b58c0e447 100644 (file)
@@ -1128,8 +1128,7 @@ EXPORT_SYMBOL(configfs_depend_item);
  * configfs_depend_item() because we know that that the client driver is
  * pinned, thus the subsystem is pinned, and therefore configfs is pinned.
  */
-void configfs_undepend_item(struct configfs_subsystem *subsys,
-                           struct config_item *target)
+void configfs_undepend_item(struct config_item *target)
 {
        struct configfs_dirent *sd;
 
index 72afdca3cea70cbf87e2720e99dbff510be535f9..ebe543894db09653ecac587409af66e288bad75a 100644 (file)
@@ -757,7 +757,7 @@ int o2nm_depend_item(struct config_item *item)
 
 void o2nm_undepend_item(struct config_item *item)
 {
-       configfs_undepend_item(&o2nm_cluster_group.cs_subsys, item);
+       configfs_undepend_item(item);
 }
 
 int o2nm_depend_this_node(void)
index 758a029011b11a3d1d2c1acfe9fa171e82a55343..3b5c6d58b0d292e5cbc6ece9ce8affa24fd030c3 100644 (file)
@@ -209,7 +209,8 @@ void configfs_unregister_default_group(struct config_group *group);
 
 /* These functions can sleep and can alloc with GFP_KERNEL */
 /* WARNING: These cannot be called underneath configfs callbacks!! */
-int configfs_depend_item(struct configfs_subsystem *subsys, struct config_item *target);
-void configfs_undepend_item(struct configfs_subsystem *subsys, struct config_item *target);
+int configfs_depend_item(struct configfs_subsystem *subsys,
+                        struct config_item *target);
+void configfs_undepend_item(struct config_item *target);
 
 #endif /* _CONFIGFS_H_ */
This page took 0.02875 seconds and 5 git commands to generate.