Lines Matching refs:znode
19 * ubifs_zn_dirty - check if znode is dirty.
20 * @znode: znode to check
22 * This helper function returns %1 if @znode is dirty and %0 otherwise.
24 static inline int ubifs_zn_dirty(const struct ubifs_znode *znode)
26 return !!test_bit(DIRTY_ZNODE, &znode->flags);
30 * ubifs_zn_obsolete - check if znode is obsolete.
31 * @znode: znode to check
33 * This helper function returns %1 if @znode is obsolete and %0 otherwise.
35 static inline int ubifs_zn_obsolete(const struct ubifs_znode *znode)
37 return !!test_bit(OBSOLETE_ZNODE, &znode->flags);
41 * ubifs_zn_cow - check if znode has to be copied on write.
42 * @znode: znode to check
44 * This helper function returns %1 if @znode is has COW flag set and %0
47 static inline int ubifs_zn_cow(const struct ubifs_znode *znode)
49 return !!test_bit(COW_ZNODE, &znode->flags);
65 * ubifs_tnc_find_child - find next child in znode.
66 * @znode: znode to search at
69 * This helper function looks for znode child starting at index @start. Returns
73 ubifs_tnc_find_child(struct ubifs_znode *znode, int start)
75 while (start < znode->child_cnt) {
76 if (znode->zbranch[start].znode)
77 return znode->zbranch[start].znode;