Lines Matching defs:block
18 * block. If all extended attributes of an inode are identical, these
19 * inodes may share the same extended attribute block. Such situations
20 * are automatically detected by keeping a cache of recent attribute block
21 * numbers and hashes over the block's contents in memory.
24 * Extended attribute block layout:
38 * The block header is followed by multiple entry descriptors. These entry
43 * Attribute values are aligned to the end of the block, stored in
51 * holding xattr_sem also means that nothing but the EA block's reference
52 * count will change. Multiple writers to an EA block are synchronized
82 printk(KERN_DEBUG "block %pg:%lu: ", \
219 ea_idebug(inode, "reading block %d", EXT2_I(inode)->i_file_acl);
230 "inode %ld: bad block %d", inode->i_ino,
305 ea_idebug(inode, "reading block %d", EXT2_I(inode)->i_file_acl);
316 "inode %ld: bad block %d", inode->i_ino,
421 * the block pointed to by header.
422 * last -- Points right after the last named entry within the block
425 * towards the end of the block).
426 * end -- Points right after the block pointed to by header.
444 /* The inode already has an extended attribute block. */
457 "inode %ld: bad block %d", inode->i_ino,
491 /* We will use a new extended attribute block. */
533 * Someone is trying to reuse the block, leave it alone
550 /* Allocate a buffer where we construct the new block. */
561 /* Iff we are modifying the block in-place, bh is locked here. */
633 /* This block is now empty. */
666 * serialize with ext2_xattr_set() reusing the block.
672 * Someone is trying to reuse the block. Wait
681 /* Free the old block. */
717 /* We found an identical block in the cache. */
719 ea_bdebug(new_bh, "keeping this block");
721 /* The old block is released after updating
723 ea_bdebug(new_bh, "reusing block");
736 /* Keep this block. No need to lock the block as we
742 /* We need to allocate a new block */
746 ext2_fsblk_t block = ext2_new_blocks(inode, goal,
751 ea_idebug(inode, "creating block %lu", block);
753 new_bh = sb_getblk(sb, block);
755 ext2_free_blocks(inode, block, 1);
784 * as if nothing happened and cleanup the unused block */
798 * If there was an old block and we are no longer using it,
799 * release the old block.
836 "inode %ld: xattr block %d is out of data blocks range",
844 "inode %ld: block %d read error", inode->i_ino,
851 "inode %ld: bad block %d", inode->i_ino,
932 * Find an identical extended attribute block.
934 * Returns a locked buffer head to the block found, or NULL if such
935 * a block was not found or an error occurred.
955 "inode %ld: block %ld read error",
961 ea_idebug(inode, "block %ld refcount %d>%d",