diff options
author | Bart Van Assche | 2017-02-09 17:28:50 -0800 |
---|---|---|
committer | Christoph Hellwig | 2017-06-12 13:20:20 +0200 |
commit | 19e72d3abb63cb16d021a4066ce1a18880509e99 (patch) | |
tree | 4d8228390a3f8b4697552bfa807232f71731bd8f /include | |
parent | ba80aa909c99802c428682c352b0ee0baac0acd3 (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.h | 3 |
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 { |