Lines Matching refs:el

179 			struct gfs2_ea_location *el = ef->ef_el;  in ea_find_i()  local
181 el->el_bh = bh; in ea_find_i()
182 el->el_ea = ea; in ea_find_i()
183 el->el_prev = prev; in ea_find_i()
192 struct gfs2_ea_location *el) in gfs2_ea_find() argument
200 ef.ef_el = el; in gfs2_ea_find()
202 memset(el, 0, sizeof(struct gfs2_ea_location)); in gfs2_ea_find()
507 static int gfs2_ea_get_copy(struct gfs2_inode *ip, struct gfs2_ea_location *el, in gfs2_ea_get_copy() argument
511 size_t len = GFS2_EA_DATA_LEN(el->el_ea); in gfs2_ea_get_copy()
515 if (GFS2_EA_IS_STUFFED(el->el_ea)) { in gfs2_ea_get_copy()
516 memcpy(data, GFS2_EA2DATA(el->el_ea), len); in gfs2_ea_get_copy()
519 ret = gfs2_iter_unstuffed(ip, el->el_ea, NULL, data); in gfs2_ea_get_copy()
527 struct gfs2_ea_location el; in gfs2_xattr_acl_get() local
532 error = gfs2_ea_find(ip, GFS2_EATYPE_SYS, name, &el); in gfs2_xattr_acl_get()
535 if (!el.el_ea) in gfs2_xattr_acl_get()
537 if (!GFS2_EA_DATA_LEN(el.el_ea)) in gfs2_xattr_acl_get()
540 len = GFS2_EA_DATA_LEN(el.el_ea); in gfs2_xattr_acl_get()
546 error = gfs2_ea_get_copy(ip, &el, data, len); in gfs2_xattr_acl_get()
552 brelse(el.el_bh); in gfs2_xattr_acl_get()
570 struct gfs2_ea_location el; in __gfs2_xattr_get() local
578 error = gfs2_ea_find(ip, type, name, &el); in __gfs2_xattr_get()
581 if (!el.el_ea) in __gfs2_xattr_get()
584 error = gfs2_ea_get_copy(ip, &el, buffer, size); in __gfs2_xattr_get()
586 error = GFS2_EA_DATA_LEN(el.el_ea); in __gfs2_xattr_get()
587 brelse(el.el_bh); in __gfs2_xattr_get()
830 struct gfs2_ea_location *el) in ea_set_remove_stuffed() argument
832 struct gfs2_ea_header *ea = el->el_ea; in ea_set_remove_stuffed()
833 struct gfs2_ea_header *prev = el->el_prev; in ea_set_remove_stuffed()
836 gfs2_trans_add_meta(ip->i_gl, el->el_bh); in ea_set_remove_stuffed()
1034 const void *value, size_t size, struct gfs2_ea_location *el) in ea_set_i() argument
1049 es.es_el = el; in ea_set_i()
1062 return ea_alloc_skeleton(ip, &er, blks, ea_set_block, el); in ea_set_i()
1066 struct gfs2_ea_location *el) in ea_set_remove_unstuffed() argument
1068 if (el->el_prev && GFS2_EA2NEXT(el->el_prev) != el->el_ea) { in ea_set_remove_unstuffed()
1069 el->el_prev = GFS2_EA2NEXT(el->el_prev); in ea_set_remove_unstuffed()
1071 GFS2_EA2NEXT(el->el_prev) == el->el_ea); in ea_set_remove_unstuffed()
1074 return ea_remove_unstuffed(ip, el->el_bh, el->el_ea, el->el_prev, 0); in ea_set_remove_unstuffed()
1077 static int ea_remove_stuffed(struct gfs2_inode *ip, struct gfs2_ea_location *el) in ea_remove_stuffed() argument
1079 struct gfs2_ea_header *ea = el->el_ea; in ea_remove_stuffed()
1080 struct gfs2_ea_header *prev = el->el_prev; in ea_remove_stuffed()
1087 gfs2_trans_add_meta(ip->i_gl, el->el_bh); in ea_remove_stuffed()
1124 struct gfs2_ea_location el; in gfs2_xattr_remove() local
1130 error = gfs2_ea_find(ip, type, name, &el); in gfs2_xattr_remove()
1133 if (!el.el_ea) in gfs2_xattr_remove()
1136 if (GFS2_EA_IS_STUFFED(el.el_ea)) in gfs2_xattr_remove()
1137 error = ea_remove_stuffed(ip, &el); in gfs2_xattr_remove()
1139 error = ea_remove_unstuffed(ip, el.el_bh, el.el_ea, el.el_prev, 0); in gfs2_xattr_remove()
1141 brelse(el.el_bh); in gfs2_xattr_remove()
1165 struct gfs2_ea_location el; in __gfs2_xattr_set() local
1190 error = gfs2_ea_find(ip, type, name, &el); in __gfs2_xattr_set()
1194 if (el.el_ea) { in __gfs2_xattr_set()
1196 brelse(el.el_bh); in __gfs2_xattr_set()
1202 int unstuffed = !GFS2_EA_IS_STUFFED(el.el_ea); in __gfs2_xattr_set()
1203 error = ea_set_i(ip, type, name, value, size, &el); in __gfs2_xattr_set()
1205 ea_set_remove_unstuffed(ip, &el); in __gfs2_xattr_set()
1208 brelse(el.el_bh); in __gfs2_xattr_set()