[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 06/20: libdiskfs: make struct node more compact
From: |
Samuel Thibault |
Subject: |
[hurd] 06/20: libdiskfs: make struct node more compact |
Date: |
Sat, 23 May 2015 05:09:41 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit cfe76b64ba01edcac75f751aba1766ade2e54c7d
Author: Justus Winter <address@hidden>
Date: Tue Apr 14 21:17:19 2015 +0200
libdiskfs: make struct node more compact
* libdiskfs/diskfs.h (struct node): Turn flags into a bit field.
---
libdiskfs/diskfs.h | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 535fb39..18df0eb 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
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (b69862c -> eef94c4), Samuel Thibault, 2015/05/23
- [hurd] 06/20: libdiskfs: make struct node more compact,
Samuel Thibault <=
- [hurd] 07/20: libdiskfs: drop unused fields from struct node, Samuel Thibault, 2015/05/23
- [hurd] 08/20: libdiskfs: fix node initialization, Samuel Thibault, 2015/05/23
- [hurd] 14/20: Fix creating named sockets inside fakeroot-hurd, Samuel Thibault, 2015/05/23
- [hurd] 09/20: libdiskfs: declare all inline functions as `extern inline', Samuel Thibault, 2015/05/23
- [hurd] 20/20: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2015/05/23
- [hurd] 18/20: Make comment clearer, Samuel Thibault, 2015/05/23
- [hurd] 19/20: fakeroot: Fix reopening files after a chmod, Samuel Thibault, 2015/05/23
- [hurd] 16/20: fatfs: fix error handling, Samuel Thibault, 2015/05/23
- [hurd] 15/20: libdiskfs: fix renaming of directories, Samuel Thibault, 2015/05/23
- [hurd] 17/20: Make sure to record only RWX open modes, Samuel Thibault, 2015/05/23