Lines Matching refs:el
187 struct gfs2_ea_location *el = ef->ef_el;
189 el->el_bh = bh;
190 el->el_ea = ea;
191 el->el_prev = prev;
200 struct gfs2_ea_location *el)
208 ef.ef_el = el;
210 memset(el, 0, sizeof(struct gfs2_ea_location));
518 static int gfs2_ea_get_copy(struct gfs2_inode *ip, struct gfs2_ea_location *el,
522 size_t len = GFS2_EA_DATA_LEN(el->el_ea);
526 if (GFS2_EA_IS_STUFFED(el->el_ea)) {
527 memcpy(data, GFS2_EA2DATA(el->el_ea), len);
530 ret = gfs2_iter_unstuffed(ip, el->el_ea, NULL, data);
538 struct gfs2_ea_location el;
543 error = gfs2_ea_find(ip, GFS2_EATYPE_SYS, name, &el);
546 if (!el.el_ea)
548 if (!GFS2_EA_DATA_LEN(el.el_ea))
551 len = GFS2_EA_DATA_LEN(el.el_ea);
557 error = gfs2_ea_get_copy(ip, &el, data, len);
563 brelse(el.el_bh);
581 struct gfs2_ea_location el;
589 error = gfs2_ea_find(ip, type, name, &el);
592 if (!el.el_ea)
595 error = gfs2_ea_get_copy(ip, &el, buffer, size);
597 error = GFS2_EA_DATA_LEN(el.el_ea);
598 brelse(el.el_bh);
838 struct gfs2_ea_location *el)
840 struct gfs2_ea_header *ea = el->el_ea;
841 struct gfs2_ea_header *prev = el->el_prev;
844 gfs2_trans_add_meta(ip->i_gl, el->el_bh);
1042 const void *value, size_t size, struct gfs2_ea_location *el)
1057 es.es_el = el;
1070 return ea_alloc_skeleton(ip, &er, blks, ea_set_block, el);
1074 struct gfs2_ea_location *el)
1076 if (el->el_prev && GFS2_EA2NEXT(el->el_prev) != el->el_ea) {
1077 el->el_prev = GFS2_EA2NEXT(el->el_prev);
1079 GFS2_EA2NEXT(el->el_prev) == el->el_ea);
1082 return ea_remove_unstuffed(ip, el->el_bh, el->el_ea, el->el_prev, 0);
1085 static int ea_remove_stuffed(struct gfs2_inode *ip, struct gfs2_ea_location *el)
1087 struct gfs2_ea_header *ea = el->el_ea;
1088 struct gfs2_ea_header *prev = el->el_prev;
1095 gfs2_trans_add_meta(ip->i_gl, el->el_bh);
1132 struct gfs2_ea_location el;
1138 error = gfs2_ea_find(ip, type, name, &el);
1141 if (!el.el_ea)
1144 if (GFS2_EA_IS_STUFFED(el.el_ea))
1145 error = ea_remove_stuffed(ip, &el);
1147 error = ea_remove_unstuffed(ip, el.el_bh, el.el_ea, el.el_prev, 0);
1149 brelse(el.el_bh);
1173 struct gfs2_ea_location el;
1198 error = gfs2_ea_find(ip, type, name, &el);
1202 if (el.el_ea) {
1204 brelse(el.el_bh);
1210 int unstuffed = !GFS2_EA_IS_STUFFED(el.el_ea);
1211 error = ea_set_i(ip, type, name, value, size, &el);
1213 ea_set_remove_unstuffed(ip, &el);
1216 brelse(el.el_bh);