summaryrefslogtreecommitdiffstats
path: root/libmount/src/mountP.h
diff options
context:
space:
mode:
authorTim Hildering2019-03-04 19:15:08 +0100
committerKarel Zak2019-03-08 11:40:20 +0100
commit9d5eb4c46405413a8dd69d01f4e094f4390944d1 (patch)
treec367420b5f2821714ae1eaf8bbde261f2825e6a9 /libmount/src/mountP.h
parentsu: add note about ECHO on --pty (diff)
downloadkernel-qcow2-util-linux-9d5eb4c46405413a8dd69d01f4e094f4390944d1.tar.gz
kernel-qcow2-util-linux-9d5eb4c46405413a8dd69d01f4e094f4390944d1.tar.xz
kernel-qcow2-util-linux-9d5eb4c46405413a8dd69d01f4e094f4390944d1.zip
libmount: improve fs referencing in tables
* Added member 'struct libmnt_table *tab' to libmnt_fs structure. * Added 'mnt_fs_get_table()'. * Removed overhead from 'mnt_table_{insert,move,remove}_fs(). * Added check to 'mnt_table_set_iter()' that entry is member of table. [kzak@redhat.com: - add to libmount.sys - add to docs - cleanup commit message - set fs->tab = NULL before mnt_unref_fs() in mnt_table_remove_fs()] Signed-off-by: Tim Hildering <hilderingt@posteo.net> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/mountP.h')
-rw-r--r--libmount/src/mountP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h
index 7887c0a55..11fc28315 100644
--- a/libmount/src/mountP.h
+++ b/libmount/src/mountP.h
@@ -170,6 +170,7 @@ struct libmnt_iter {
*/
struct libmnt_fs {
struct list_head ents;
+ struct libmnt_table *tab;
int refcount; /* reference counter */
int id; /* mountinfo[1]: ID */