2011-12-22 01:29:27 +01:00
|
|
|
|
|
|
|
#ifndef _MFS_CLEAN_H
|
|
|
|
#define _MFS_CLEAN_H 1
|
|
|
|
|
2011-12-22 01:29:27 +01:00
|
|
|
#define MARKDIRTY(b) do { if(superblock.s_dev == (b)->b_dev && superblock.s_rd_only) { printf("%s:%d: dirty block on rofs! ", __FILE__, __LINE__); util_stacktrace(); } else { (b)->b_dirt = BP_DIRTY; } } while(0)
|
2011-12-22 01:29:27 +01:00
|
|
|
#define MARKCLEAN(b) ((b)->b_dirt = BP_CLEAN)
|
|
|
|
|
|
|
|
#define ISDIRTY(b) ((b)->b_dirt == BP_DIRTY)
|
|
|
|
#define ISCLEAN(b) ((b)->b_dirt == BP_CLEAN)
|
|
|
|
|
2012-01-13 16:05:32 +01:00
|
|
|
#define BP_SETDEV(b, dev) do { assert((dev) != NO_DEV); (b)->b_dev = (dev); } while(0)
|
|
|
|
#define BP_CLEARDEV(b) do { (b)->b_dev = NO_DEV; MARKCLEAN(b); } while(0)
|
|
|
|
|
2011-12-22 01:29:27 +01:00
|
|
|
#endif
|