s/\b[cfs_]*flock_end(\([^)]*\))\b/\1->fl_end/g
s/\b[cfs_]*flock_set_end(\([^,]*\), \([^)]*\))\b/\1->fl_end = \2/g
s/\bcfs_user_write\b/user_write/g
-s/\bCFS_IFSHIFT\b/IFSHIFT/g
-s/\bCFS_IFTODT\b/IFTODT/g
-s/\bCFS_DTTOIF\b/DTTOIF/g
################################################################################
# memory operations
lhash = hash;
fid_le_to_cpu(&fid, &ent->lde_fid);
ino = cl_fid_build_ino(&fid, is_api32);
- type = IFTODT(lu_dirent_type_get(ent));
+ type = S_DT(lu_dirent_type_get(ent));
/* For ll_nfs_get_name_filldir(), it will try to access
* 'ent' through 'lde_name', so the parameter 'name'
* for 'filldir()' must be part of the 'ent'. */
osd_fid2str(name, fid, sizeof(info->oti_str));
zde->lzd_reg.zde_dnode = obj->oo_dn->dn_object;
- zde->lzd_reg.zde_type = IFTODT(S_IFDIR);
+ zde->lzd_reg.zde_type = S_DT(S_IFDIR);
zde->lzd_fid = *fid;
rc = osd_zap_add(osd, osd->od_remote_parent_dir, NULL,
BUILD_BUG_ON(sizeof(*zde) % 8 != 0);
memset(&zde->lzd_reg, 0, sizeof(zde->lzd_reg));
- zde->lzd_reg.zde_type = IFTODT(rec1->rec_type & S_IFMT);
+ zde->lzd_reg.zde_type = S_DT(rec1->rec_type & S_IFMT);
zde->lzd_fid = *fid;
if (idc->oic_remote) {
lu_object_fid(&it->ozi_obj->oo_dt.do_lu));
lde->lde_attrs = LUDA_FID;
/* append lustre attributes */
- osd_it_append_attrs(lde, attr, 1, IFTODT(S_IFDIR));
+ osd_it_append_attrs(lde, attr, 1, S_DT(S_IFDIR));
lde->lde_reclen = cpu_to_le16(lu_dirent_calc_size(1, attr));
it->ozi_pos = OZI_POS_DOT;
RETURN(0);
}
/* append lustre attributes */
- osd_it_append_attrs(lde, attr, 2, IFTODT(S_IFDIR));
+ osd_it_append_attrs(lde, attr, 2, S_DT(S_IFDIR));
lde->lde_reclen = cpu_to_le16(lu_dirent_calc_size(2, attr));
RETURN(0);
}
zde->zde_pad = 0;
zde->zde_dnode = dn->dn_object;
- zde->zde_type = IFTODT(attr->la_mode & S_IFMT);
+ zde->zde_type = S_DT(attr->la_mode & S_IFMT);
zapid = osd_get_name_n_idx(env, osd, fid, buf,
sizeof(info->oti_str), &zdn);
zde->zde_dnode = oid;
zde->zde_pad = 0;
- zde->zde_type = IFTODT(isdir ? S_IFDIR : S_IFREG);
+ zde->zde_type = S_DT(isdir ? S_IFDIR : S_IFREG);
rc = -zap_add(o->od_os, parent, name, 8, 1, (void *)zde, tx);
GOTO(commit, rc);