27 #ifndef __UBIFS_MISC_H__
28 #define __UBIFS_MISC_H__
36 static inline int ubifs_zn_dirty(
const struct ubifs_znode *znode)
47 static inline int ubifs_zn_obsolete(
const struct ubifs_znode *znode)
59 static inline int ubifs_zn_cow(
const struct ubifs_znode *znode)
68 static inline void ubifs_wake_up_bgt(
struct ubifs_info *
c)
88 if (znode->
zbranch[start].znode)
112 static inline int ubifs_compr_present(
int compr_type)
124 static inline const char *ubifs_compr_name(
int compr_type)
137 static inline int ubifs_wbuf_sync(
struct ubifs_wbuf *wbuf)
158 if (new_valid_dev(rdev)) {
160 return sizeof(dev->
new);
163 return sizeof(dev->
huge);
176 static inline int ubifs_add_dirt(
struct ubifs_info *c,
int lnum,
int dirty)
190 static inline int ubifs_return_leb(
struct ubifs_info *c,
int lnum)
201 static inline int ubifs_idx_node_sz(
const struct ubifs_info *c,
int child_cnt)
226 static inline void *ubifs_idx_key(
const struct ubifs_info *c,
253 static inline int ubifs_tnc_lookup(
struct ubifs_info *c,
266 static inline void ubifs_get_lprops(
struct ubifs_info *c)
278 static inline void ubifs_release_lprops(
struct ubifs_info *c)
294 static inline int ubifs_next_log_lnum(
const struct ubifs_info *c,
int lnum)