Lines Matching refs:el

176 			struct gfs2_ea_location *el = ef->ef_el;
178 el->el_bh = bh;
179 el->el_ea = ea;
180 el->el_prev = prev;
189 struct gfs2_ea_location *el)
197 ef.ef_el = el;
199 memset(el, 0, sizeof(struct gfs2_ea_location));
504 static int gfs2_ea_get_copy(struct gfs2_inode *ip, struct gfs2_ea_location *el,
508 size_t len = GFS2_EA_DATA_LEN(el->el_ea);
512 if (GFS2_EA_IS_STUFFED(el->el_ea)) {
513 memcpy(data, GFS2_EA2DATA(el->el_ea), len);
516 ret = gfs2_iter_unstuffed(ip, el->el_ea, NULL, data);
524 struct gfs2_ea_location el;
529 error = gfs2_ea_find(ip, GFS2_EATYPE_SYS, name, &el);
532 if (!el.el_ea)
534 if (!GFS2_EA_DATA_LEN(el.el_ea))
537 len = GFS2_EA_DATA_LEN(el.el_ea);
543 error = gfs2_ea_get_copy(ip, &el, data, len);
549 brelse(el.el_bh);
567 struct gfs2_ea_location el;
575 error = gfs2_ea_find(ip, type, name, &el);
578 if (!el.el_ea)
581 error = gfs2_ea_get_copy(ip, &el, buffer, size);
583 error = GFS2_EA_DATA_LEN(el.el_ea);
584 brelse(el.el_bh);
827 struct gfs2_ea_location *el)
829 struct gfs2_ea_header *ea = el->el_ea;
830 struct gfs2_ea_header *prev = el->el_prev;
833 gfs2_trans_add_meta(ip->i_gl, el->el_bh);
1031 const void *value, size_t size, struct gfs2_ea_location *el)
1046 es.es_el = el;
1059 return ea_alloc_skeleton(ip, &er, blks, ea_set_block, el);
1063 struct gfs2_ea_location *el)
1065 if (el->el_prev && GFS2_EA2NEXT(el->el_prev) != el->el_ea) {
1066 el->el_prev = GFS2_EA2NEXT(el->el_prev);
1068 GFS2_EA2NEXT(el->el_prev) == el->el_ea);
1071 return ea_remove_unstuffed(ip, el->el_bh, el->el_ea, el->el_prev, 0);
1074 static int ea_remove_stuffed(struct gfs2_inode *ip, struct gfs2_ea_location *el)
1076 struct gfs2_ea_header *ea = el->el_ea;
1077 struct gfs2_ea_header *prev = el->el_prev;
1084 gfs2_trans_add_meta(ip->i_gl, el->el_bh);
1121 struct gfs2_ea_location el;
1127 error = gfs2_ea_find(ip, type, name, &el);
1130 if (!el.el_ea)
1133 if (GFS2_EA_IS_STUFFED(el.el_ea))
1134 error = ea_remove_stuffed(ip, &el);
1136 error = ea_remove_unstuffed(ip, el.el_bh, el.el_ea, el.el_prev, 0);
1138 brelse(el.el_bh);
1162 struct gfs2_ea_location el;
1187 error = gfs2_ea_find(ip, type, name, &el);
1191 if (el.el_ea) {
1193 brelse(el.el_bh);
1199 int unstuffed = !GFS2_EA_IS_STUFFED(el.el_ea);
1200 error = ea_set_i(ip, type, name, value, size, &el);
1202 ea_set_remove_unstuffed(ip, &el);
1205 brelse(el.el_bh);