Lines Matching refs:el

191 			struct gfs2_ea_location *el = ef->ef_el;  in ea_find_i()  local
193 el->el_bh = bh; in ea_find_i()
194 el->el_ea = ea; in ea_find_i()
195 el->el_prev = prev; in ea_find_i()
204 struct gfs2_ea_location *el) in gfs2_ea_find() argument
212 ef.ef_el = el; in gfs2_ea_find()
214 memset(el, 0, sizeof(struct gfs2_ea_location)); in gfs2_ea_find()
522 static int gfs2_ea_get_copy(struct gfs2_inode *ip, struct gfs2_ea_location *el, in gfs2_ea_get_copy() argument
526 size_t len = GFS2_EA_DATA_LEN(el->el_ea); in gfs2_ea_get_copy()
530 if (GFS2_EA_IS_STUFFED(el->el_ea)) { in gfs2_ea_get_copy()
531 memcpy(data, GFS2_EA2DATA(el->el_ea), len); in gfs2_ea_get_copy()
534 ret = gfs2_iter_unstuffed(ip, el->el_ea, NULL, data); in gfs2_ea_get_copy()
542 struct gfs2_ea_location el; in gfs2_xattr_acl_get() local
547 error = gfs2_ea_find(ip, GFS2_EATYPE_SYS, name, &el); in gfs2_xattr_acl_get()
550 if (!el.el_ea) in gfs2_xattr_acl_get()
552 if (!GFS2_EA_DATA_LEN(el.el_ea)) in gfs2_xattr_acl_get()
555 len = GFS2_EA_DATA_LEN(el.el_ea); in gfs2_xattr_acl_get()
561 error = gfs2_ea_get_copy(ip, &el, data, len); in gfs2_xattr_acl_get()
567 brelse(el.el_bh); in gfs2_xattr_acl_get()
585 struct gfs2_ea_location el; in __gfs2_xattr_get() local
593 error = gfs2_ea_find(ip, type, name, &el); in __gfs2_xattr_get()
596 if (!el.el_ea) in __gfs2_xattr_get()
599 error = gfs2_ea_get_copy(ip, &el, buffer, size); in __gfs2_xattr_get()
601 error = GFS2_EA_DATA_LEN(el.el_ea); in __gfs2_xattr_get()
602 brelse(el.el_bh); in __gfs2_xattr_get()
842 struct gfs2_ea_location *el) in ea_set_remove_stuffed() argument
844 struct gfs2_ea_header *ea = el->el_ea; in ea_set_remove_stuffed()
845 struct gfs2_ea_header *prev = el->el_prev; in ea_set_remove_stuffed()
848 gfs2_trans_add_meta(ip->i_gl, el->el_bh); in ea_set_remove_stuffed()
1046 const void *value, size_t size, struct gfs2_ea_location *el) in ea_set_i() argument
1061 es.es_el = el; in ea_set_i()
1074 return ea_alloc_skeleton(ip, &er, blks, ea_set_block, el); in ea_set_i()
1078 struct gfs2_ea_location *el) in ea_set_remove_unstuffed() argument
1080 if (el->el_prev && GFS2_EA2NEXT(el->el_prev) != el->el_ea) { in ea_set_remove_unstuffed()
1081 el->el_prev = GFS2_EA2NEXT(el->el_prev); in ea_set_remove_unstuffed()
1083 GFS2_EA2NEXT(el->el_prev) == el->el_ea); in ea_set_remove_unstuffed()
1086 return ea_remove_unstuffed(ip, el->el_bh, el->el_ea, el->el_prev, 0); in ea_set_remove_unstuffed()
1089 static int ea_remove_stuffed(struct gfs2_inode *ip, struct gfs2_ea_location *el) in ea_remove_stuffed() argument
1091 struct gfs2_ea_header *ea = el->el_ea; in ea_remove_stuffed()
1092 struct gfs2_ea_header *prev = el->el_prev; in ea_remove_stuffed()
1099 gfs2_trans_add_meta(ip->i_gl, el->el_bh); in ea_remove_stuffed()
1136 struct gfs2_ea_location el; in gfs2_xattr_remove() local
1142 error = gfs2_ea_find(ip, type, name, &el); in gfs2_xattr_remove()
1145 if (!el.el_ea) in gfs2_xattr_remove()
1148 if (GFS2_EA_IS_STUFFED(el.el_ea)) in gfs2_xattr_remove()
1149 error = ea_remove_stuffed(ip, &el); in gfs2_xattr_remove()
1151 error = ea_remove_unstuffed(ip, el.el_bh, el.el_ea, el.el_prev, 0); in gfs2_xattr_remove()
1153 brelse(el.el_bh); in gfs2_xattr_remove()
1177 struct gfs2_ea_location el; in __gfs2_xattr_set() local
1202 error = gfs2_ea_find(ip, type, name, &el); in __gfs2_xattr_set()
1206 if (el.el_ea) { in __gfs2_xattr_set()
1208 brelse(el.el_bh); in __gfs2_xattr_set()
1214 int unstuffed = !GFS2_EA_IS_STUFFED(el.el_ea); in __gfs2_xattr_set()
1215 error = ea_set_i(ip, type, name, value, size, &el); in __gfs2_xattr_set()
1217 ea_set_remove_unstuffed(ip, &el); in __gfs2_xattr_set()
1220 brelse(el.el_bh); in __gfs2_xattr_set()