Whamcloud - gitweb
LU-4690 osp: some cleanup for patch 9511
[fs/lustre-release.git] / lustre / osd-zfs / osd_index.c
index dd1acf3..7fb8326 100644 (file)
@@ -978,9 +978,9 @@ static int osd_dir_it_rec_size(const struct lu_env *env, const struct dt_it *di,
        ENTRY;
 
        if (it->ozi_pos <= 1)
-               namelen = cpu_to_le16(1);
+               namelen = 1;
        else if (it->ozi_pos == 2)
-               namelen = cpu_to_le16(2);
+               namelen = 2;
 
        if (namelen > 0) {
                rc = lu_dirent_calc_size(namelen, attr);