• Home
  • Raw
  • Download

Lines Matching refs:loc

140 	int (*xlo_journal_access)(handle_t *handle, struct ocfs2_xa_loc *loc,
142 void (*xlo_journal_dirty)(handle_t *handle, struct ocfs2_xa_loc *loc);
148 void *(*xlo_offset_pointer)(struct ocfs2_xa_loc *loc, int offset);
151 int (*xlo_can_reuse)(struct ocfs2_xa_loc *loc,
155 int (*xlo_check_space)(struct ocfs2_xa_loc *loc,
162 int (*xlo_get_free_start)(struct ocfs2_xa_loc *loc);
168 void (*xlo_wipe_namevalue)(struct ocfs2_xa_loc *loc);
171 void (*xlo_add_entry)(struct ocfs2_xa_loc *loc, u32 name_hash);
174 void (*xlo_add_namevalue)(struct ocfs2_xa_loc *loc, int size);
180 void (*xlo_fill_value_buf)(struct ocfs2_xa_loc *loc,
1442 static int ocfs2_xa_journal_access(handle_t *handle, struct ocfs2_xa_loc *loc, in ocfs2_xa_journal_access() argument
1445 return loc->xl_ops->xlo_journal_access(handle, loc, type); in ocfs2_xa_journal_access()
1448 static void ocfs2_xa_journal_dirty(handle_t *handle, struct ocfs2_xa_loc *loc) in ocfs2_xa_journal_dirty() argument
1450 loc->xl_ops->xlo_journal_dirty(handle, loc); in ocfs2_xa_journal_dirty()
1454 static void *ocfs2_xa_offset_pointer(struct ocfs2_xa_loc *loc, int offset) in ocfs2_xa_offset_pointer() argument
1456 BUG_ON(offset >= loc->xl_size); in ocfs2_xa_offset_pointer()
1457 return loc->xl_ops->xlo_offset_pointer(loc, offset); in ocfs2_xa_offset_pointer()
1465 static void ocfs2_xa_wipe_namevalue(struct ocfs2_xa_loc *loc) in ocfs2_xa_wipe_namevalue() argument
1467 loc->xl_ops->xlo_wipe_namevalue(loc); in ocfs2_xa_wipe_namevalue()
1474 static int ocfs2_xa_get_free_start(struct ocfs2_xa_loc *loc) in ocfs2_xa_get_free_start() argument
1476 return loc->xl_ops->xlo_get_free_start(loc); in ocfs2_xa_get_free_start()
1480 static int ocfs2_xa_can_reuse_entry(struct ocfs2_xa_loc *loc, in ocfs2_xa_can_reuse_entry() argument
1483 return loc->xl_ops->xlo_can_reuse(loc, xi); in ocfs2_xa_can_reuse_entry()
1487 static int ocfs2_xa_check_space(struct ocfs2_xa_loc *loc, in ocfs2_xa_check_space() argument
1490 return loc->xl_ops->xlo_check_space(loc, xi); in ocfs2_xa_check_space()
1493 static void ocfs2_xa_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_add_entry() argument
1495 loc->xl_ops->xlo_add_entry(loc, name_hash); in ocfs2_xa_add_entry()
1496 loc->xl_entry->xe_name_hash = cpu_to_le32(name_hash); in ocfs2_xa_add_entry()
1502 loc->xl_entry->xe_name_offset = cpu_to_le16(loc->xl_size); in ocfs2_xa_add_entry()
1505 static void ocfs2_xa_add_namevalue(struct ocfs2_xa_loc *loc, in ocfs2_xa_add_namevalue() argument
1512 loc->xl_ops->xlo_add_namevalue(loc, size); in ocfs2_xa_add_namevalue()
1513 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len); in ocfs2_xa_add_namevalue()
1514 loc->xl_entry->xe_name_len = xi->xi_name_len; in ocfs2_xa_add_namevalue()
1515 ocfs2_xattr_set_type(loc->xl_entry, xi->xi_name_index); in ocfs2_xa_add_namevalue()
1516 ocfs2_xattr_set_local(loc->xl_entry, in ocfs2_xa_add_namevalue()
1519 nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_add_namevalue()
1520 nameval_buf = ocfs2_xa_offset_pointer(loc, nameval_offset); in ocfs2_xa_add_namevalue()
1525 static void ocfs2_xa_fill_value_buf(struct ocfs2_xa_loc *loc, in ocfs2_xa_fill_value_buf() argument
1528 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_fill_value_buf()
1529 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_fill_value_buf()
1532 BUG_ON(ocfs2_xattr_is_local(loc->xl_entry)); in ocfs2_xa_fill_value_buf()
1533 BUG_ON(namevalue_size_xe(loc->xl_entry) != in ocfs2_xa_fill_value_buf()
1536 loc->xl_ops->xlo_fill_value_buf(loc, vb); in ocfs2_xa_fill_value_buf()
1538 (struct ocfs2_xattr_value_root *)ocfs2_xa_offset_pointer(loc, in ocfs2_xa_fill_value_buf()
1544 struct ocfs2_xa_loc *loc, int type) in ocfs2_xa_block_journal_access() argument
1546 struct buffer_head *bh = loc->xl_storage; in ocfs2_xa_block_journal_access()
1549 if (loc->xl_size == (bh->b_size - in ocfs2_xa_block_journal_access()
1555 return access(handle, INODE_CACHE(loc->xl_inode), bh, type); in ocfs2_xa_block_journal_access()
1559 struct ocfs2_xa_loc *loc) in ocfs2_xa_block_journal_dirty() argument
1561 struct buffer_head *bh = loc->xl_storage; in ocfs2_xa_block_journal_dirty()
1566 static void *ocfs2_xa_block_offset_pointer(struct ocfs2_xa_loc *loc, in ocfs2_xa_block_offset_pointer() argument
1569 return (char *)loc->xl_header + offset; in ocfs2_xa_block_offset_pointer()
1572 static int ocfs2_xa_block_can_reuse(struct ocfs2_xa_loc *loc, in ocfs2_xa_block_can_reuse() argument
1579 return namevalue_size_xe(loc->xl_entry) == in ocfs2_xa_block_can_reuse()
1583 static int ocfs2_xa_block_get_free_start(struct ocfs2_xa_loc *loc) in ocfs2_xa_block_get_free_start() argument
1585 struct ocfs2_xattr_header *xh = loc->xl_header; in ocfs2_xa_block_get_free_start()
1587 int offset, free_start = loc->xl_size; in ocfs2_xa_block_get_free_start()
1598 static int ocfs2_xa_block_check_space(struct ocfs2_xa_loc *loc, in ocfs2_xa_block_check_space() argument
1601 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_block_check_space()
1602 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_block_check_space()
1610 if (loc->xl_entry) { in ocfs2_xa_block_check_space()
1612 if (ocfs2_xa_can_reuse_entry(loc, xi)) in ocfs2_xa_block_check_space()
1615 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry); in ocfs2_xa_block_check_space()
1626 static void ocfs2_xa_block_wipe_namevalue(struct ocfs2_xa_loc *loc) in ocfs2_xa_block_wipe_namevalue() argument
1630 struct ocfs2_xattr_entry *entry = loc->xl_entry; in ocfs2_xa_block_wipe_namevalue()
1631 struct ocfs2_xattr_header *xh = loc->xl_header; in ocfs2_xa_block_wipe_namevalue()
1636 first_namevalue_offset = ocfs2_xa_get_free_start(loc); in ocfs2_xa_block_wipe_namevalue()
1658 static void ocfs2_xa_block_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_block_add_entry() argument
1660 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_block_add_entry()
1661 loc->xl_entry = &(loc->xl_header->xh_entries[count]); in ocfs2_xa_block_add_entry()
1662 le16_add_cpu(&loc->xl_header->xh_count, 1); in ocfs2_xa_block_add_entry()
1663 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry)); in ocfs2_xa_block_add_entry()
1666 static void ocfs2_xa_block_add_namevalue(struct ocfs2_xa_loc *loc, int size) in ocfs2_xa_block_add_namevalue() argument
1668 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_block_add_namevalue()
1670 loc->xl_entry->xe_name_offset = cpu_to_le16(free_start - size); in ocfs2_xa_block_add_namevalue()
1673 static void ocfs2_xa_block_fill_value_buf(struct ocfs2_xa_loc *loc, in ocfs2_xa_block_fill_value_buf() argument
1676 struct buffer_head *bh = loc->xl_storage; in ocfs2_xa_block_fill_value_buf()
1678 if (loc->xl_size == (bh->b_size - in ocfs2_xa_block_fill_value_buf()
1705 struct ocfs2_xa_loc *loc, int type) in ocfs2_xa_bucket_journal_access() argument
1707 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; in ocfs2_xa_bucket_journal_access()
1713 struct ocfs2_xa_loc *loc) in ocfs2_xa_bucket_journal_dirty() argument
1715 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; in ocfs2_xa_bucket_journal_dirty()
1720 static void *ocfs2_xa_bucket_offset_pointer(struct ocfs2_xa_loc *loc, in ocfs2_xa_bucket_offset_pointer() argument
1723 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; in ocfs2_xa_bucket_offset_pointer()
1727 block = offset >> loc->xl_inode->i_sb->s_blocksize_bits; in ocfs2_xa_bucket_offset_pointer()
1728 block_offset = offset % loc->xl_inode->i_sb->s_blocksize; in ocfs2_xa_bucket_offset_pointer()
1733 static int ocfs2_xa_bucket_can_reuse(struct ocfs2_xa_loc *loc, in ocfs2_xa_bucket_can_reuse() argument
1736 return namevalue_size_xe(loc->xl_entry) >= in ocfs2_xa_bucket_can_reuse()
1740 static int ocfs2_xa_bucket_get_free_start(struct ocfs2_xa_loc *loc) in ocfs2_xa_bucket_get_free_start() argument
1742 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; in ocfs2_xa_bucket_get_free_start()
1760 static int ocfs2_xa_bucket_check_space(struct ocfs2_xa_loc *loc, in ocfs2_xa_bucket_check_space() argument
1764 int count = le16_to_cpu(loc->xl_header->xh_count); in ocfs2_xa_bucket_check_space()
1765 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_bucket_check_space()
1768 struct super_block *sb = loc->xl_inode->i_sb; in ocfs2_xa_bucket_check_space()
1776 if (loc->xl_entry) { in ocfs2_xa_bucket_check_space()
1778 if (ocfs2_xa_can_reuse_entry(loc, xi)) in ocfs2_xa_bucket_check_space()
1805 static void ocfs2_xa_bucket_wipe_namevalue(struct ocfs2_xa_loc *loc) in ocfs2_xa_bucket_wipe_namevalue() argument
1807 le16_add_cpu(&loc->xl_header->xh_name_value_len, in ocfs2_xa_bucket_wipe_namevalue()
1808 -namevalue_size_xe(loc->xl_entry)); in ocfs2_xa_bucket_wipe_namevalue()
1811 static void ocfs2_xa_bucket_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_bucket_add_entry() argument
1813 struct ocfs2_xattr_header *xh = loc->xl_header; in ocfs2_xa_bucket_add_entry()
1842 loc->xl_entry = &xh->xh_entries[low]; in ocfs2_xa_bucket_add_entry()
1843 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry)); in ocfs2_xa_bucket_add_entry()
1846 static void ocfs2_xa_bucket_add_namevalue(struct ocfs2_xa_loc *loc, int size) in ocfs2_xa_bucket_add_namevalue() argument
1848 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_bucket_add_namevalue()
1849 struct ocfs2_xattr_header *xh = loc->xl_header; in ocfs2_xa_bucket_add_namevalue()
1850 struct super_block *sb = loc->xl_inode->i_sb; in ocfs2_xa_bucket_add_namevalue()
1855 loc->xl_entry->xe_name_offset = cpu_to_le16(nameval_offset); in ocfs2_xa_bucket_add_namevalue()
1861 static void ocfs2_xa_bucket_fill_value_buf(struct ocfs2_xa_loc *loc, in ocfs2_xa_bucket_fill_value_buf() argument
1864 struct ocfs2_xattr_bucket *bucket = loc->xl_storage; in ocfs2_xa_bucket_fill_value_buf()
1865 struct super_block *sb = loc->xl_inode->i_sb; in ocfs2_xa_bucket_fill_value_buf()
1866 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_bucket_fill_value_buf()
1867 int size = namevalue_size_xe(loc->xl_entry); in ocfs2_xa_bucket_fill_value_buf()
1894 static unsigned int ocfs2_xa_value_clusters(struct ocfs2_xa_loc *loc) in ocfs2_xa_value_clusters() argument
1898 if (ocfs2_xattr_is_local(loc->xl_entry)) in ocfs2_xa_value_clusters()
1901 ocfs2_xa_fill_value_buf(loc, &vb); in ocfs2_xa_value_clusters()
1905 static int ocfs2_xa_value_truncate(struct ocfs2_xa_loc *loc, u64 bytes, in ocfs2_xa_value_truncate() argument
1911 ocfs2_xa_fill_value_buf(loc, &vb); in ocfs2_xa_value_truncate()
1912 trunc_rc = ocfs2_xattr_value_truncate(loc->xl_inode, &vb, bytes, in ocfs2_xa_value_truncate()
1925 access_rc = ocfs2_xa_journal_access(ctxt->handle, loc, in ocfs2_xa_value_truncate()
1932 static void ocfs2_xa_remove_entry(struct ocfs2_xa_loc *loc) in ocfs2_xa_remove_entry() argument
1935 struct ocfs2_xattr_header *xh = loc->xl_header; in ocfs2_xa_remove_entry()
1936 struct ocfs2_xattr_entry *entry = loc->xl_entry; in ocfs2_xa_remove_entry()
1938 ocfs2_xa_wipe_namevalue(loc); in ocfs2_xa_remove_entry()
1939 loc->xl_entry = NULL; in ocfs2_xa_remove_entry()
1983 static void ocfs2_xa_cleanup_value_truncate(struct ocfs2_xa_loc *loc, in ocfs2_xa_cleanup_value_truncate() argument
1987 unsigned int new_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_cleanup_value_truncate()
1988 char *nameval_buf = ocfs2_xa_offset_pointer(loc, in ocfs2_xa_cleanup_value_truncate()
1989 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_cleanup_value_truncate()
1995 what, loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
1997 ocfs2_xa_remove_entry(loc); in ocfs2_xa_cleanup_value_truncate()
2003 loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
2005 ocfs2_xa_remove_entry(loc); in ocfs2_xa_cleanup_value_truncate()
2011 loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
2015 static int ocfs2_xa_remove(struct ocfs2_xa_loc *loc, in ocfs2_xa_remove() argument
2021 if (!ocfs2_xattr_is_local(loc->xl_entry)) { in ocfs2_xa_remove()
2022 orig_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_remove()
2023 rc = ocfs2_xa_value_truncate(loc, 0, ctxt); in ocfs2_xa_remove()
2032 if (orig_clusters != ocfs2_xa_value_clusters(loc)) in ocfs2_xa_remove()
2034 ocfs2_xa_cleanup_value_truncate(loc, "removing", in ocfs2_xa_remove()
2041 ocfs2_xa_remove_entry(loc); in ocfs2_xa_remove()
2047 static void ocfs2_xa_install_value_root(struct ocfs2_xa_loc *loc) in ocfs2_xa_install_value_root() argument
2049 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_install_value_root()
2052 nameval_buf = ocfs2_xa_offset_pointer(loc, in ocfs2_xa_install_value_root()
2053 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_install_value_root()
2062 static int ocfs2_xa_reuse_entry(struct ocfs2_xa_loc *loc, in ocfs2_xa_reuse_entry() argument
2070 int xe_local = ocfs2_xattr_is_local(loc->xl_entry); in ocfs2_xa_reuse_entry()
2073 BUG_ON(OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len) != in ocfs2_xa_reuse_entry()
2076 nameval_buf = ocfs2_xa_offset_pointer(loc, in ocfs2_xa_reuse_entry()
2077 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_reuse_entry()
2080 namevalue_size_xe(loc->xl_entry) - name_size); in ocfs2_xa_reuse_entry()
2082 ocfs2_xa_install_value_root(loc); in ocfs2_xa_reuse_entry()
2084 orig_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_reuse_entry()
2086 rc = ocfs2_xa_value_truncate(loc, 0, ctxt); in ocfs2_xa_reuse_entry()
2091 namevalue_size_xe(loc->xl_entry) - in ocfs2_xa_reuse_entry()
2093 } else if (le64_to_cpu(loc->xl_entry->xe_value_size) > in ocfs2_xa_reuse_entry()
2095 rc = ocfs2_xa_value_truncate(loc, xi->xi_value_len, in ocfs2_xa_reuse_entry()
2102 ocfs2_xa_cleanup_value_truncate(loc, "reusing", in ocfs2_xa_reuse_entry()
2108 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len); in ocfs2_xa_reuse_entry()
2109 ocfs2_xattr_set_local(loc->xl_entry, xi_local); in ocfs2_xa_reuse_entry()
2123 static int ocfs2_xa_prepare_entry(struct ocfs2_xa_loc *loc, in ocfs2_xa_prepare_entry() argument
2132 rc = ocfs2_xa_check_space(loc, xi); in ocfs2_xa_prepare_entry()
2136 if (loc->xl_entry) { in ocfs2_xa_prepare_entry()
2137 if (ocfs2_xa_can_reuse_entry(loc, xi)) { in ocfs2_xa_prepare_entry()
2138 orig_value_size = loc->xl_entry->xe_value_size; in ocfs2_xa_prepare_entry()
2139 rc = ocfs2_xa_reuse_entry(loc, xi, ctxt); in ocfs2_xa_prepare_entry()
2145 if (!ocfs2_xattr_is_local(loc->xl_entry)) { in ocfs2_xa_prepare_entry()
2146 orig_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_prepare_entry()
2147 rc = ocfs2_xa_value_truncate(loc, 0, ctxt); in ocfs2_xa_prepare_entry()
2150 ocfs2_xa_cleanup_value_truncate(loc, in ocfs2_xa_prepare_entry()
2156 ocfs2_xa_wipe_namevalue(loc); in ocfs2_xa_prepare_entry()
2158 ocfs2_xa_add_entry(loc, name_hash); in ocfs2_xa_prepare_entry()
2164 ocfs2_xa_add_namevalue(loc, xi); in ocfs2_xa_prepare_entry()
2166 ocfs2_xa_install_value_root(loc); in ocfs2_xa_prepare_entry()
2170 orig_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_prepare_entry()
2171 rc = ocfs2_xa_value_truncate(loc, xi->xi_value_len, ctxt); in ocfs2_xa_prepare_entry()
2174 ocfs2_xa_cleanup_value_truncate(loc, "growing", in ocfs2_xa_prepare_entry()
2182 if (loc->xl_entry) { in ocfs2_xa_prepare_entry()
2184 loc->xl_entry->xe_value_size = orig_value_size; in ocfs2_xa_prepare_entry()
2199 static int ocfs2_xa_store_value(struct ocfs2_xa_loc *loc, in ocfs2_xa_store_value() argument
2204 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_store_value()
2209 nameval_buf = ocfs2_xa_offset_pointer(loc, nameval_offset); in ocfs2_xa_store_value()
2211 ocfs2_xa_fill_value_buf(loc, &vb); in ocfs2_xa_store_value()
2212 rc = __ocfs2_xattr_set_value_outside(loc->xl_inode, in ocfs2_xa_store_value()
2222 static int ocfs2_xa_set(struct ocfs2_xa_loc *loc, in ocfs2_xa_set() argument
2227 u32 name_hash = ocfs2_xattr_name_hash(loc->xl_inode, xi->xi_name, in ocfs2_xa_set()
2230 ret = ocfs2_xa_journal_access(ctxt->handle, loc, in ocfs2_xa_set()
2245 ret = ocfs2_xa_remove(loc, ctxt); in ocfs2_xa_set()
2249 ret = ocfs2_xa_prepare_entry(loc, xi, name_hash, ctxt); in ocfs2_xa_set()
2256 ret = ocfs2_xa_store_value(loc, xi, ctxt); in ocfs2_xa_set()
2261 ocfs2_xa_journal_dirty(ctxt->handle, loc); in ocfs2_xa_set()
2267 static void ocfs2_init_dinode_xa_loc(struct ocfs2_xa_loc *loc, in ocfs2_init_dinode_xa_loc() argument
2276 loc->xl_inode = inode; in ocfs2_init_dinode_xa_loc()
2277 loc->xl_ops = &ocfs2_xa_block_loc_ops; in ocfs2_init_dinode_xa_loc()
2278 loc->xl_storage = bh; in ocfs2_init_dinode_xa_loc()
2279 loc->xl_entry = entry; in ocfs2_init_dinode_xa_loc()
2280 loc->xl_size = le16_to_cpu(di->i_xattr_inline_size); in ocfs2_init_dinode_xa_loc()
2281 loc->xl_header = in ocfs2_init_dinode_xa_loc()
2283 loc->xl_size); in ocfs2_init_dinode_xa_loc()
2286 static void ocfs2_init_xattr_block_xa_loc(struct ocfs2_xa_loc *loc, in ocfs2_init_xattr_block_xa_loc() argument
2296 loc->xl_inode = inode; in ocfs2_init_xattr_block_xa_loc()
2297 loc->xl_ops = &ocfs2_xa_block_loc_ops; in ocfs2_init_xattr_block_xa_loc()
2298 loc->xl_storage = bh; in ocfs2_init_xattr_block_xa_loc()
2299 loc->xl_header = &(xb->xb_attrs.xb_header); in ocfs2_init_xattr_block_xa_loc()
2300 loc->xl_entry = entry; in ocfs2_init_xattr_block_xa_loc()
2301 loc->xl_size = bh->b_size - offsetof(struct ocfs2_xattr_block, in ocfs2_init_xattr_block_xa_loc()
2305 static void ocfs2_init_xattr_bucket_xa_loc(struct ocfs2_xa_loc *loc, in ocfs2_init_xattr_bucket_xa_loc() argument
2309 loc->xl_inode = bucket->bu_inode; in ocfs2_init_xattr_bucket_xa_loc()
2310 loc->xl_ops = &ocfs2_xa_bucket_loc_ops; in ocfs2_init_xattr_bucket_xa_loc()
2311 loc->xl_storage = bucket; in ocfs2_init_xattr_bucket_xa_loc()
2312 loc->xl_header = bucket_xh(bucket); in ocfs2_init_xattr_bucket_xa_loc()
2313 loc->xl_entry = entry; in ocfs2_init_xattr_bucket_xa_loc()
2314 loc->xl_size = OCFS2_XATTR_BUCKET_SIZE; in ocfs2_init_xattr_bucket_xa_loc()
2776 struct ocfs2_xa_loc loc; in ocfs2_xattr_ibody_set() local
2791 ocfs2_init_dinode_xa_loc(&loc, inode, xs->inode_bh, in ocfs2_xattr_ibody_set()
2793 ret = ocfs2_xa_set(&loc, xi, ctxt); in ocfs2_xattr_ibody_set()
2799 xs->here = loc.xl_entry; in ocfs2_xattr_ibody_set()
2960 struct ocfs2_xa_loc loc; in ocfs2_xattr_block_set() local
2980 ocfs2_init_xattr_block_xa_loc(&loc, inode, xs->xattr_bh, in ocfs2_xattr_block_set()
2983 ret = ocfs2_xa_set(&loc, xi, ctxt); in ocfs2_xattr_block_set()
2985 xs->here = loc.xl_entry; in ocfs2_xattr_block_set()
5550 struct ocfs2_xa_loc loc; in ocfs2_xattr_set_entry_bucket() local
5554 ocfs2_init_xattr_bucket_xa_loc(&loc, xs->bucket, in ocfs2_xattr_set_entry_bucket()
5556 ret = ocfs2_xa_set(&loc, xi, ctxt); in ocfs2_xattr_set_entry_bucket()
5558 xs->here = loc.xl_entry; in ocfs2_xattr_set_entry_bucket()
5574 ret = ocfs2_xa_set(&loc, xi, ctxt); in ocfs2_xattr_set_entry_bucket()
5576 xs->here = loc.xl_entry; in ocfs2_xattr_set_entry_bucket()