Lines Matching full:ni
68 struct node_info ni; /* in-memory node information */ member
71 #define nat_get_nid(nat) ((nat)->ni.nid)
72 #define nat_set_nid(nat, n) ((nat)->ni.nid = (n))
73 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr)
74 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b))
75 #define nat_get_ino(nat) ((nat)->ni.ino)
76 #define nat_set_ino(nat, i) ((nat)->ni.ino = (i))
77 #define nat_get_version(nat) ((nat)->ni.version)
78 #define nat_set_version(nat, v) ((nat)->ni.version = (v))
96 ne->ni.flag |= BIT(type); in set_nat_flag()
98 ne->ni.flag &= ~BIT(type); in set_nat_flag()
103 return ne->ni.flag & BIT(type); in get_nat_flag()
114 static inline void node_info_from_raw_nat(struct node_info *ni, in node_info_from_raw_nat() argument
117 ni->ino = le32_to_cpu(raw_ne->ino); in node_info_from_raw_nat()
118 ni->blk_addr = le32_to_cpu(raw_ne->block_addr); in node_info_from_raw_nat()
119 ni->version = raw_ne->version; in node_info_from_raw_nat()
123 struct node_info *ni) in raw_nat_from_node_info() argument
125 raw_ne->ino = cpu_to_le32(ni->ino); in raw_nat_from_node_info()
126 raw_ne->block_addr = cpu_to_le32(ni->blk_addr); in raw_nat_from_node_info()
127 raw_ne->version = ni->version; in raw_nat_from_node_info()