• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/gfs2/

Lines Matching refs:el

177 			struct gfs2_ea_location *el = ef->ef_el;
179 el->el_bh = bh;
180 el->el_ea = ea;
181 el->el_prev = prev;
190 struct gfs2_ea_location *el)
198 ef.ef_el = el;
200 memset(el, 0, sizeof(struct gfs2_ea_location));
519 static int gfs2_ea_get_copy(struct gfs2_inode *ip, struct gfs2_ea_location *el,
523 size_t len = GFS2_EA_DATA_LEN(el->el_ea);
527 if (GFS2_EA_IS_STUFFED(el->el_ea)) {
528 memcpy(data, GFS2_EA2DATA(el->el_ea), len);
531 ret = ea_get_unstuffed(ip, el->el_ea, data);
539 struct gfs2_ea_location el;
544 error = gfs2_ea_find(ip, GFS2_EATYPE_SYS, name, &el);
547 if (!el.el_ea)
549 if (!GFS2_EA_DATA_LEN(el.el_ea))
552 len = GFS2_EA_DATA_LEN(el.el_ea);
558 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);
828 struct gfs2_ea_location *el)
830 struct gfs2_ea_header *ea = el->el_ea;
831 struct gfs2_ea_header *prev = el->el_prev;
834 gfs2_trans_add_bh(ip->i_gl, el->el_bh, 1);
1038 const void *value, size_t size, struct gfs2_ea_location *el)
1053 es.es_el = el;
1066 return ea_alloc_skeleton(ip, &er, blks, ea_set_block, el);
1070 struct gfs2_ea_location *el)
1072 if (el->el_prev && GFS2_EA2NEXT(el->el_prev) != el->el_ea) {
1073 el->el_prev = GFS2_EA2NEXT(el->el_prev);
1075 GFS2_EA2NEXT(el->el_prev) == el->el_ea);
1078 return ea_remove_unstuffed(ip, el->el_bh, el->el_ea, el->el_prev, 0);
1081 static int ea_remove_stuffed(struct gfs2_inode *ip, struct gfs2_ea_location *el)
1083 struct gfs2_ea_header *ea = el->el_ea;
1084 struct gfs2_ea_header *prev = el->el_prev;
1092 gfs2_trans_add_bh(ip->i_gl, el->el_bh, 1);
1134 struct gfs2_ea_location el;
1140 error = gfs2_ea_find(ip, type, name, &el);
1143 if (!el.el_ea)
1146 if (GFS2_EA_IS_STUFFED(el.el_ea))
1147 error = ea_remove_stuffed(ip, &el);
1149 error = ea_remove_unstuffed(ip, el.el_bh, el.el_ea, el.el_prev, 0);
1151 brelse(el.el_bh);
1175 struct gfs2_ea_location el;
1196 error = gfs2_ea_find(ip, type, name, &el);
1200 if (el.el_ea) {
1202 brelse(el.el_bh);
1208 int unstuffed = !GFS2_EA_IS_STUFFED(el.el_ea);
1209 error = ea_set_i(ip, type, name, value, size, &el);
1211 ea_set_remove_unstuffed(ip, &el);
1214 brelse(el.el_bh);
1301 struct gfs2_ea_location el;
1305 error = gfs2_ea_find(ip, GFS2_EATYPE_SYS, GFS2_POSIX_ACL_ACCESS, &el);
1309 if (GFS2_EA_IS_STUFFED(el.el_ea)) {
1312 gfs2_trans_add_bh(ip->i_gl, el.el_bh, 1);
1313 memcpy(GFS2_EA2DATA(el.el_ea), data,
1314 GFS2_EA_DATA_LEN(el.el_ea));
1317 error = ea_acl_chmod_unstuffed(ip, el.el_ea, data);
1320 brelse(el.el_bh);