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

Lines Matching refs:xs

260 				  struct ocfs2_xattr_search *xs);
265 struct ocfs2_xattr_search *xs);
273 struct ocfs2_xattr_search *xs,
278 struct ocfs2_xattr_search *xs,
1060 struct ocfs2_xattr_search *xs)
1070 entry = xs->here;
1071 for (i = 0; i < le16_to_cpu(xs->header->xh_count); i++) {
1076 cmp = memcmp(name, (xs->base +
1083 xs->here = entry;
1145 struct ocfs2_xattr_search *xs)
1148 struct ocfs2_dinode *di = (struct ocfs2_dinode *)xs->inode_bh->b_data;
1156 xs->end = (void *)di + inode->i_sb->s_blocksize;
1157 xs->header = (struct ocfs2_xattr_header *)
1158 (xs->end - le16_to_cpu(di->i_xattr_inline_size));
1159 xs->base = (void *)xs->header;
1160 xs->here = xs->header->xh_entries;
1162 ret = ocfs2_xattr_find_entry(name_index, name, xs);
1165 size = le64_to_cpu(xs->here->xe_value_size);
1169 if (ocfs2_xattr_is_local(xs->here)) {
1170 memcpy(buffer, (void *)xs->base +
1171 le16_to_cpu(xs->here->xe_name_offset) +
1172 OCFS2_XATTR_SIZE(xs->here->xe_name_len), size);
1175 (xs->base + le16_to_cpu(
1176 xs->here->xe_name_offset) +
1177 OCFS2_XATTR_SIZE(xs->here->xe_name_len));
1195 struct ocfs2_xattr_search *xs)
1203 xs->bucket = ocfs2_xattr_bucket_new(inode);
1204 if (!xs->bucket) {
1210 ret = ocfs2_xattr_block_find(inode, name_index, name, xs);
1216 if (xs->not_found) {
1221 xb = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data;
1222 size = le64_to_cpu(xs->here->xe_value_size);
1228 name_offset = le16_to_cpu(xs->here->xe_name_offset);
1229 name_len = OCFS2_XATTR_SIZE(xs->here->xe_name_len);
1230 i = xs->here - xs->header->xh_entries;
1234 bucket_xh(xs->bucket),
1238 xs->base = bucket_block(xs->bucket, block_off);
1240 if (ocfs2_xattr_is_local(xs->here)) {
1241 memcpy(buffer, (void *)xs->base +
1245 (xs->base + name_offset + name_len);
1256 ocfs2_xattr_bucket_free(xs->bucket);
1258 brelse(xs->xattr_bh);
1259 xs->xattr_bh = NULL;
2651 struct ocfs2_xattr_search *xs)
2654 struct ocfs2_dinode *di = (struct ocfs2_dinode *)xs->inode_bh->b_data;
2669 xs->xattr_bh = xs->inode_bh;
2670 xs->end = (void *)di + inode->i_sb->s_blocksize;
2672 xs->header = (struct ocfs2_xattr_header *)
2673 (xs->end - le16_to_cpu(di->i_xattr_inline_size));
2675 xs->header = (struct ocfs2_xattr_header *)
2676 (xs->end - OCFS2_SB(inode->i_sb)->s_xattr_inline_size);
2677 xs->base = (void *)xs->header;
2678 xs->here = xs->header->xh_entries;
2682 ret = ocfs2_xattr_find_entry(name_index, name, xs);
2685 xs->not_found = ret;
2746 struct ocfs2_xattr_search *xs,
2751 struct ocfs2_dinode *di = (struct ocfs2_dinode *)xs->inode_bh->b_data;
2766 ret = ocfs2_xattr_ibody_init(inode, xs->inode_bh, ctxt);
2774 ocfs2_init_dinode_xa_loc(&loc, inode, xs->inode_bh,
2775 xs->not_found ? NULL : xs->here);
2782 xs->here = loc.xl_entry;
2799 struct ocfs2_xattr_search *xs)
2801 struct ocfs2_dinode *di = (struct ocfs2_dinode *)xs->inode_bh->b_data;
2816 xs->xattr_bh = blk_bh;
2820 xs->header = &xb->xb_attrs.xb_header;
2821 xs->base = (void *)xs->header;
2822 xs->end = (void *)(blk_bh->b_data) + blk_bh->b_size;
2823 xs->here = xs->header->xh_entries;
2825 ret = ocfs2_xattr_find_entry(name_index, name, xs);
2829 name, xs);
2832 xs->xattr_bh = NULL;
2835 xs->not_found = ret;
2931 struct ocfs2_xattr_search *xs,
2939 if (!xs->xattr_bh) {
2940 ret = ocfs2_create_xattr_block(inode, xs->inode_bh, ctxt,
2947 xs->xattr_bh = new_bh;
2948 xblk = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data;
2949 xs->header = &xblk->xb_attrs.xb_header;
2950 xs->base = (void *)xs->header;
2951 xs->end = (void *)xblk + inode->i_sb->s_blocksize;
2952 xs->here = xs->header->xh_entries;
2954 xblk = (struct ocfs2_xattr_block *)xs->xattr_bh->b_data;
2957 ocfs2_init_xattr_block_xa_loc(&loc, inode, xs->xattr_bh,
2958 xs->not_found ? NULL : xs->here);
2962 xs->here = loc.xl_entry;
2966 ret = ocfs2_xattr_create_index_block(inode, xs, ctxt);
2973 ret = ocfs2_xattr_set_entry_index_block(inode, xi, xs, ctxt);
2982 struct ocfs2_xattr_search *xs)
2986 size_t min_offs = xs->end - xs->base;
2988 if (!xs->header)
2991 last = xs->header->xh_entries;
2993 for (i = 0; i < le16_to_cpu(xs->header->xh_count); i++) {
3000 free = min_offs - ((void *)last - xs->base) - OCFS2_XATTR_HEADER_GAP;
3004 BUG_ON(!xs->not_found);
3791 struct ocfs2_xattr_search *xs)
3874 ret = ocfs2_read_xattr_bucket(xs->bucket, lower_blkno);
3880 xs->header = bucket_xh(xs->bucket);
3881 xs->base = bucket_block(xs->bucket, 0);
3882 xs->end = xs->base + inode->i_sb->s_blocksize;
3885 xs->here = &xs->header->xh_entries[index];
3887 (unsigned long long)bucket_blkno(xs->bucket), index);
3900 struct ocfs2_xattr_search *xs)
3931 p_blkno, first_hash, num_clusters, xs);
4226 struct ocfs2_xattr_search *xs,
4234 xs->header = bucket_xh(xs->bucket);
4235 xs->base = bucket_block(xs->bucket, 0);
4236 xs->end = xs->base + inode->i_sb->s_blocksize;
4238 if (xs->not_found)
4241 i = xs->here - old_xh->xh_entries;
4242 xs->here = &xs->header->xh_entries[i];
4246 struct ocfs2_xattr_search *xs,
4254 struct buffer_head *xb_bh = xs->xattr_bh;
4264 BUG_ON(!xs->bucket);
4292 ret = ocfs2_init_xattr_bucket(xs->bucket, blkno);
4298 ret = ocfs2_xattr_bucket_journal_access(handle, xs->bucket,
4305 ocfs2_cp_xattr_block_to_bucket(inode, xb_bh, xs->bucket);
4306 ocfs2_xattr_bucket_journal_dirty(handle, xs->bucket);
4308 ocfs2_xattr_update_xattr_search(inode, xs, xb_bh);
5526 struct ocfs2_xattr_search *xs,
5534 ocfs2_init_xattr_bucket_xa_loc(&loc, xs->bucket,
5535 xs->not_found ? NULL : xs->here);
5538 xs->here = loc.xl_entry;
5548 xs->bucket);
5556 xs->here = loc.xl_entry;
5570 struct ocfs2_xattr_search *xs,
5577 ret = ocfs2_xattr_set_entry_bucket(inode, xi, xs, ctxt);
5594 xs->bucket,
5602 xs->xattr_bh,
5603 xs->bucket,
5612 * xs->bucket if it moved, but it will not have updated
5617 ocfs2_xattr_bucket_relse(xs->bucket);
5618 ret = ocfs2_xattr_index_block_find(inode, xs->xattr_bh,
5620 xi->xi_name, xs);
5623 xs->not_found = ret;
5626 ret = ocfs2_xattr_set_entry_bucket(inode, xi, xs, ctxt);