Lines Matching refs:er

356 	struct gfs2_ea_request *er = ei->ei_er;  in ea_list_i()  local
388 if (er->er_data_len) { in ea_list_i()
389 if (ei->ei_size + ea_size > er->er_data_len) in ea_list_i()
392 memcpy(er->er_data + ei->ei_size, prefix, l); in ea_list_i()
393 memcpy(er->er_data + ei->ei_size + l, GFS2_EA2NAME(ea), in ea_list_i()
395 er->er_data[ei->ei_size + ea_size - 1] = 0; in ea_list_i()
415 struct gfs2_ea_request er; in gfs2_listxattr() local
419 memset(&er, 0, sizeof(struct gfs2_ea_request)); in gfs2_listxattr()
421 er.er_data = buffer; in gfs2_listxattr()
422 er.er_data_len = size; in gfs2_listxattr()
430 struct ea_list ei = { .ei_er = &er, .ei_size = 0 }; in gfs2_listxattr()
675 struct gfs2_ea_request *er) in ea_write() argument
680 ea->ea_data_len = cpu_to_be32(er->er_data_len); in ea_write()
681 ea->ea_name_len = er->er_name_len; in ea_write()
682 ea->ea_type = er->er_type; in ea_write()
685 memcpy(GFS2_EA2NAME(ea), er->er_name, er->er_name_len); in ea_write()
687 if (GFS2_EAREQ_SIZE_STUFFED(er) <= sdp->sd_jbsize) { in ea_write()
689 memcpy(GFS2_EA2DATA(ea), er->er_data, er->er_data_len); in ea_write()
692 const char *data = er->er_data; in ea_write()
693 unsigned int data_len = er->er_data_len; in ea_write()
697 ea->ea_num_ptrs = DIV_ROUND_UP(er->er_data_len, sdp->sd_jbsize); in ea_write()
735 struct gfs2_ea_request *er, void *private);
737 static int ea_alloc_skeleton(struct gfs2_inode *ip, struct gfs2_ea_request *er, in ea_alloc_skeleton() argument
762 error = skeleton_call(ip, er, private); in ea_alloc_skeleton()
778 static int ea_init_i(struct gfs2_inode *ip, struct gfs2_ea_request *er, in ea_init_i() argument
789 error = ea_write(ip, GFS2_EA_BH2FIRST(bh), er); in ea_init_i()
804 struct gfs2_ea_request er; in ea_init() local
808 er.er_type = type; in ea_init()
809 er.er_name = name; in ea_init()
810 er.er_name_len = strlen(name); in ea_init()
811 er.er_data = (void *)data; in ea_init()
812 er.er_data_len = size; in ea_init()
814 if (GFS2_EAREQ_SIZE_STUFFED(&er) > jbsize) in ea_init()
815 blks += DIV_ROUND_UP(er.er_data_len, jbsize); in ea_init()
817 return ea_alloc_skeleton(ip, &er, blks, ea_init_i, NULL); in ea_init()
874 struct gfs2_ea_request *er = es->es_er; in ea_set_simple_noalloc() local
886 ea_write(ip, ea, er); in ea_set_simple_noalloc()
899 struct gfs2_ea_request *er, void *private) in ea_set_simple_alloc() argument
910 error = ea_write(ip, ea, er); in ea_set_simple_alloc()
967 static int ea_set_block(struct gfs2_inode *ip, struct gfs2_ea_request *er, in ea_set_block() argument
1028 error = ea_write(ip, GFS2_EA_BH2FIRST(newbh), er); in ea_set_block()
1044 struct gfs2_ea_request er; in ea_set_i() local
1049 er.er_type = type; in ea_set_i()
1050 er.er_name = name; in ea_set_i()
1051 er.er_data = (void *)value; in ea_set_i()
1052 er.er_name_len = strlen(name); in ea_set_i()
1053 er.er_data_len = size; in ea_set_i()
1056 es.es_er = &er; in ea_set_i()
1067 if (GFS2_EAREQ_SIZE_STUFFED(&er) > GFS2_SB(&ip->i_inode)->sd_jbsize) in ea_set_i()
1068 blks += DIV_ROUND_UP(er.er_data_len, GFS2_SB(&ip->i_inode)->sd_jbsize); in ea_set_i()
1070 return ea_alloc_skeleton(ip, &er, blks, ea_set_block, el); in ea_set_i()