• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/fs/ext2fs/

Lines Matching defs:eh

235 ext4_ext_check_header(struct inode *ip, struct ext4_extent_header *eh)
242 if (le16toh(eh->eh_magic) != EXT4_EXT_MAGIC) {
246 if (eh->eh_max == 0) {
250 if (le16toh(eh->eh_ecount) > le16toh(eh->eh_max)) {
265 struct ext4_extent_header *eh;
268 eh = path->ep_header;
270 KASSERT(le16toh(eh->eh_ecount) <= le16toh(eh->eh_max) &&
271 le16toh(eh->eh_ecount) > 0,
274 l = EXT_FIRST_INDEX(eh) + 1;
275 r = EXT_FIRST_INDEX(eh) + le16toh(eh->eh_ecount) - 1;
290 struct ext4_extent_header *eh;
293 eh = path->ep_header;
295 KASSERT(le16toh(eh->eh_ecount) <= le16toh(eh->eh_max),
298 if (eh->eh_ecount == 0)
301 l = EXT_FIRST_EXTENT(eh) + 1;
302 r = EXT_FIRST_EXTENT(eh) + le16toh(eh->eh_ecount) - 1;
372 struct ext4_extent_header *eh;
379 eh = ext4_ext_inode_header(ip);
384 error = ext4_ext_check_header(ip, eh);
400 path[0].ep_header = eh;
429 eh = ext4_ext_block_header(path[ppos].ep_data);
430 if (ext4_ext_check_header(ip, eh) ||
436 path[ppos].ep_header = eh;
441 error = ext4_ext_check_header(ip, eh);
447 path[ppos].ep_header = eh;
994 struct ext4_extent_header *eh;
1000 eh = path[depth].ep_header;
1003 if (ex == NULL || eh == NULL)
1010 if (ex != EXT_FIRST_EXTENT(eh))
1033 struct ext4_extent_header * eh;
1048 eh = path[depth].ep_header;
1055 eh = path[depth].ep_header;
1056 if (le16toh(eh->eh_ecount) < le16toh(eh->eh_max))
1060 nex = EXT_LAST_EXTENT(eh);
1076 eh = npath[depth].ep_header;
1077 if (le16toh(eh->eh_ecount) < le16toh(eh->eh_max)) {
1092 eh = path[depth].ep_header;
1098 path[depth].ep_ext = EXT_FIRST_EXTENT(eh);
1100 if (nearex != EXT_LAST_EXTENT(eh)) {
1101 len = EXT_MAX_EXTENT(eh) - nearex;
1108 len = (EXT_MAX_EXTENT(eh) - nearex) * sizeof(struct ext4_extent);
1114 eh->eh_ecount = htole16(le16toh(eh->eh_ecount) + 1);
1123 while (nearex < EXT_LAST_EXTENT(eh)) {
1130 if (nearex + 1 < EXT_LAST_EXTENT(eh)) {
1131 len = (EXT_LAST_EXTENT(eh) - nearex - 1) *
1136 eh->eh_ecount = htole16(le16toh(eh->eh_ecount) - 1);
1137 KASSERT(le16toh(eh->eh_ecount) != 0,
1354 struct ext4_extent_header *eh;
1370 eh = path[depth].ep_header;
1371 if (!eh) {
1377 ex = EXT_LAST_EXTENT(eh);
1383 while (ex >= EXT_FIRST_EXTENT(eh) && ex_blk + ex_len > start) {
1404 if (ex == EXT_FIRST_EXTENT(eh))
1413 eh->eh_ecount = htole16(le16toh(eh->eh_ecount) - 1);
1426 if (correct_index && le16toh(eh->eh_ecount))
1433 if (error == 0 && eh->eh_ecount == 0 &&
1446 struct ext4_extent_header *eh;
1457 eh = ext4_ext_block_header(bp->b_data);
1458 if (le16toh(eh->eh_depth) != depth) {
1464 error = ext4_ext_check_header(ip, eh);