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)
|
|
|
|
|
|
|
|
#endif
|