aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBart Van Assche2017-02-09 17:28:50 -0800
committerChristoph Hellwig2017-06-12 13:20:20 +0200
commit19e72d3abb63cb16d021a4066ce1a18880509e99 (patch)
tree4d8228390a3f8b4697552bfa807232f71731bd8f /include
parentba80aa909c99802c428682c352b0ee0baac0acd3 (diff)
configfs: Introduce config_item_get_unless_zero()
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> [hch: minor style tweak] Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/configfs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/configfs.h b/include/linux/configfs.h
index 2319b8c108e8..c96709049683 100644
--- a/include/linux/configfs.h
+++ b/include/linux/configfs.h
@@ -74,7 +74,8 @@ extern void config_item_init_type_name(struct config_item *item,
const char *name,
struct config_item_type *type);
-extern struct config_item * config_item_get(struct config_item *);
+extern struct config_item *config_item_get(struct config_item *);
+extern struct config_item *config_item_get_unless_zero(struct config_item *);
extern void config_item_put(struct config_item *);
struct config_item_type {