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

Lines Matching refs:eh

372 				struct ext4_extent_header *eh,
378 if (eh->eh_entries == 0)
381 entries = le16_to_cpu(eh->eh_entries);
385 ext = EXT_FIRST_EXTENT(eh);
393 ext_idx = EXT_FIRST_INDEX(eh);
405 struct inode *inode, struct ext4_extent_header *eh,
411 if (unlikely(eh->eh_magic != EXT4_EXT_MAGIC)) {
415 if (unlikely(le16_to_cpu(eh->eh_depth) != depth)) {
419 if (unlikely(eh->eh_max == 0)) {
424 if (unlikely(le16_to_cpu(eh->eh_max) > max)) {
428 if (unlikely(le16_to_cpu(eh->eh_entries) > le16_to_cpu(eh->eh_max))) {
432 if (!ext4_valid_extent_entries(inode, eh, depth)) {
442 error_msg, le16_to_cpu(eh->eh_magic),
443 le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max),
444 max, le16_to_cpu(eh->eh_depth), depth);
449 #define ext4_ext_check(inode, eh, depth) \
450 __ext4_ext_check(__func__, __LINE__, inode, eh, depth)
482 struct ext4_extent_header *eh;
489 eh = path[depth].p_hdr;
490 ex = EXT_FIRST_EXTENT(eh);
494 for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ex++) {
527 struct ext4_extent_header *eh = path->p_hdr;
533 l = EXT_FIRST_INDEX(eh) + 1;
534 r = EXT_LAST_INDEX(eh);
555 chix = ix = EXT_FIRST_INDEX(eh);
556 for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ix++) {
561 ix, EXT_FIRST_INDEX(eh));
587 struct ext4_extent_header *eh = path->p_hdr;
590 if (eh->eh_entries == 0) {
600 l = EXT_FIRST_EXTENT(eh) + 1;
601 r = EXT_LAST_EXTENT(eh);
626 chex = ex = EXT_FIRST_EXTENT(eh);
627 for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ex++) {
642 struct ext4_extent_header *eh;
644 eh = ext_inode_hdr(inode);
645 eh->eh_depth = 0;
646 eh->eh_entries = 0;
647 eh->eh_magic = EXT4_EXT_MAGIC;
648 eh->eh_max = cpu_to_le16(ext4_ext_space_root(inode, 0));
658 struct ext4_extent_header *eh;
662 eh = ext_inode_hdr(inode);
673 path[0].p_hdr = eh;
682 ppos, le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max));
700 eh = ext_block_hdr(bh);
709 path[ppos].p_hdr = eh;
712 if (need_to_validate && ext4_ext_check(inode, eh, i))
1304 struct ext4_extent_header *eh;
1383 eh = ext_block_hdr(bh);
1385 if (ext4_ext_check(inode, eh, path->p_depth - depth)) {
1389 ix = EXT_FIRST_INDEX(eh);
1397 eh = ext_block_hdr(bh);
1398 if (ext4_ext_check(inode, eh, path->p_depth - depth)) {
1402 ex = EXT_FIRST_EXTENT(eh);
1484 struct ext4_extent_header *eh;
1490 eh = path[depth].p_hdr;
1493 if (unlikely(ex == NULL || eh == NULL)) {
1495 "ex %p == NULL or eh %p == NULL", ex, eh);
1504 if (ex != EXT_FIRST_EXTENT(eh)) {
1591 struct ext4_extent_header *eh;
1598 eh = path[depth].p_hdr;
1600 while (ex < EXT_LAST_EXTENT(eh)) {
1611 if (ex + 1 < EXT_LAST_EXTENT(eh)) {
1612 len = (EXT_LAST_EXTENT(eh) - ex - 1)
1616 le16_add_cpu(&eh->eh_entries, -1);
1618 WARN_ON(eh->eh_entries == 0);
1619 if (!eh->eh_entries)
1620 EXT4_ERROR_INODE(inode, "eh->eh_entries = 0!");
1685 struct ext4_extent_header *eh;
1728 eh = path[depth].p_hdr;
1735 eh = path[depth].p_hdr;
1736 if (le16_to_cpu(eh->eh_entries) < le16_to_cpu(eh->eh_max))
1740 fex = EXT_LAST_EXTENT(eh);
1750 eh = npath[depth].p_hdr;
1751 if (le16_to_cpu(eh->eh_entries) < le16_to_cpu(eh->eh_max)) {
1753 le16_to_cpu(eh->eh_entries));
1758 le16_to_cpu(eh->eh_entries), le16_to_cpu(eh->eh_max));
1769 eh = path[depth].p_hdr;
1785 path[depth].p_ext = EXT_FIRST_EXTENT(eh);
1789 if (nearex != EXT_LAST_EXTENT(eh)) {
1790 len = EXT_MAX_EXTENT(eh) - nearex;
1805 len = (EXT_MAX_EXTENT(eh) - nearex) * sizeof(struct ext4_extent);
1818 le16_add_cpu(&eh->eh_entries, 1);
2204 struct ext4_extent_header *eh;
2216 eh = path[depth].p_hdr;
2222 ex = EXT_LAST_EXTENT(eh);
2227 while (ex >= EXT_FIRST_EXTENT(eh) &&
2274 if (ex == EXT_FIRST_EXTENT(eh)) {
2295 le16_add_cpu(&eh->eh_entries, -1);
2318 if (correct_index && eh->eh_entries)
2323 if (err == 0 && eh->eh_entries == 0 && path[depth].p_bh != NULL)
2629 struct ext4_extent_header *eh;
2647 eh = path[depth].p_hdr;
2792 * The depth, and hence eh & ex might change
2811 eh = path[depth].p_hdr;
2864 if (ex2 > EXT_FIRST_EXTENT(eh)) {
3037 * The depth, and hence eh & ex might change
3123 struct ext4_extent_header *eh;
3129 eh = path[depth].p_hdr;
3142 if (ex > EXT_FIRST_EXTENT(eh)) {
3315 struct ext4_extent_header *eh;
3375 eh = path[depth].p_hdr;
3499 if (unlikely(!eh->eh_entries)) {
3501 "eh->eh_entries == 0 and "
3506 last_ex = EXT_LAST_EXTENT(eh);