summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_update.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/tab_update.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/tab_update.c')
-rw-r--r--libmount/src/tab_update.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c
index b5c92726f..a508b9903 100644
--- a/libmount/src/tab_update.c
+++ b/libmount/src/tab_update.c
@@ -71,7 +71,7 @@ void mnt_free_update(struct libmnt_update *upd)
DBG(UPDATE, mnt_debug_h(upd, "free"));
mnt_unref_fs(upd->fs);
- mnt_free_table(upd->mountinfo);
+ mnt_unref_table(upd->mountinfo);
free(upd->target);
free(upd->filename);
free(upd);
@@ -698,7 +698,7 @@ static int update_add_entry(struct libmnt_update *upd, struct libmnt_lock *lc)
if (lc)
mnt_unlock_file(lc);
- mnt_free_table(tb);
+ mnt_unref_table(tb);
return rc;
}
@@ -729,7 +729,7 @@ static int update_remove_entry(struct libmnt_update *upd, struct libmnt_lock *lc
if (lc)
mnt_unlock_file(lc);
- mnt_free_table(tb);
+ mnt_unref_table(tb);
return rc;
}
@@ -761,7 +761,7 @@ static int update_modify_target(struct libmnt_update *upd, struct libmnt_lock *l
if (lc)
mnt_unlock_file(lc);
- mnt_free_table(tb);
+ mnt_unref_table(tb);
return rc;
}
@@ -803,7 +803,7 @@ static int update_modify_options(struct libmnt_update *upd, struct libmnt_lock *
if (lc)
mnt_unlock_file(lc);
- mnt_free_table(tb);
+ mnt_unref_table(tb);
return rc;
}
@@ -968,7 +968,7 @@ static int test_replace(struct libmnt_test *ts, int argc, char *argv[])
mnt_unref_fs(fs);
rc = mnt_table_replace_file(tb, mnt_get_fstab_path());
- mnt_free_table(tb);
+ mnt_unref_table(tb);
return rc;
}