summaryrefslogtreecommitdiffstats
path: root/libmount/src/cache.c
diff options
context:
space:
mode:
authorKarel Zak2013-08-21 16:07:25 +0200
committerKarel Zak2013-08-21 16:07:25 +0200
commitc9f1585e67717068e82ba22bc498aabf2954c113 (patch)
tree01f996b217aef1f2efbf235667a16f7de5a5c96e /libmount/src/cache.c
parentmisc: use libmnt_cache reference counting (diff)
downloadkernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.tar.gz
kernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.tar.xz
kernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.zip
libmount: add reference counter to libmnt_table
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/cache.c')
-rw-r--r--libmount/src/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/cache.c b/libmount/src/cache.c
index cf5c6d430..92f469456 100644
--- a/libmount/src/cache.c
+++ b/libmount/src/cache.c
@@ -81,7 +81,8 @@ struct libmnt_cache *mnt_new_cache(void)
* mnt_free_cache:
* @cache: pointer to struct libmnt_cache instance
*
- * Deallocates the cache.
+ * Deallocates the cache. This function does not care about reference count. Don't
+ * use this function directly -- it's better to use use mnt_unref_cache().
*/
void mnt_free_cache(struct libmnt_cache *cache)
{