summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-04-14 21:17:19 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-04-17 14:06:46 +0200
commitcfe76b64ba01edcac75f751aba1766ade2e54c7d (patch)
tree6b6d83ad88b94e608ade240959903e781359134f /libdiskfs
parentc16eed2cb64089bf7d958db0fe85352f4ceefb4d (diff)
libdiskfs: make struct node more compact
* libdiskfs/diskfs.h (struct node): Turn flags into a bit field.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/diskfs.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 535fb399..18df0ebb 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -86,13 +86,20 @@ struct node
io_statbuf_t dn_stat;
+ /* Flags. */
+ unsigned int
+
/* Stat has been modified if one of the following four fields
is nonzero. Also, if one of the dn_set_?time fields is nonzero,
the appropriate dn_stat.st_?tim field needs to be updated. */
- int dn_set_ctime;
- int dn_set_atime;
- int dn_set_mtime;
- int dn_stat_dirty;
+ dn_set_ctime:1,
+ dn_set_atime:1,
+ dn_set_mtime:1,
+ dn_stat_dirty:1,
+
+ /* Indicate whether the author is tracking the uid because the
+ on-disk file format does not encode a separate author. */
+ author_tracks_uid:1;
pthread_mutex_t lock;
@@ -117,8 +124,6 @@ struct node
loff_t allocsize;
ino64_t cache_id;
-
- int author_tracks_uid;
};
struct diskfs_control