2011-12-22 01:29:27 +01:00
|
|
|
|
|
|
|
#ifndef _MFS_CLEAN_H
|
|
|
|
#define _MFS_CLEAN_H 1
|
|
|
|
|
2012-10-16 17:40:39 +02:00
|
|
|
#define MARKDIRTY(b) do { if(superblock.s_dev == lmfs_dev(b) && superblock.s_rd_only) { printf("%s:%d: dirty block on rofs! ", __FILE__, __LINE__); util_stacktrace(); } else { lmfs_markdirty(b); } } while(0)
|
|
|
|
#define MARKCLEAN(b) lmfs_markclean(b)
|
2011-12-22 01:29:27 +01:00
|
|
|
|
2012-10-16 17:40:39 +02:00
|
|
|
#define ISDIRTY(b) (!lmfs_isclean(b))
|
|
|
|
#define ISCLEAN(b) (lmfs_isclean(b))
|
2011-12-22 01:29:27 +01:00
|
|
|
|
|
|
|
#endif
|