mfs: use macros to mark blocks and inodes dirty

. No functional change
	. Only serves to get hooks to do checks in
	. e.g. should things be marked dirty when we are
	  mounted readonly

Signed-off-by: Ben Gras <ben@minix3.org>
This commit is contained in:
Ben Gras
2011-12-22 01:29:27 +01:00
parent 34a8901eb8
commit 9b7d357ca1
16 changed files with 63 additions and 43 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ struct buf {
struct buf *b_hash; /* used to link bufs on hash chains */
block_t b_blocknr; /* block number of its (minor) device */
dev_t b_dev; /* major | minor device where block resides */
char b_dirt; /* CLEAN or DIRTY */
char b_dirt; /* BP_CLEAN or BP_DIRTY */
char b_count; /* number of users of this buffer */
unsigned int b_bytes; /* Number of bytes allocated in bp */
};