Lines Matching refs:to
320 struct xfs_sb *to, in __xfs_sb_from_disk() argument
324 to->sb_magicnum = be32_to_cpu(from->sb_magicnum); in __xfs_sb_from_disk()
325 to->sb_blocksize = be32_to_cpu(from->sb_blocksize); in __xfs_sb_from_disk()
326 to->sb_dblocks = be64_to_cpu(from->sb_dblocks); in __xfs_sb_from_disk()
327 to->sb_rblocks = be64_to_cpu(from->sb_rblocks); in __xfs_sb_from_disk()
328 to->sb_rextents = be64_to_cpu(from->sb_rextents); in __xfs_sb_from_disk()
329 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in __xfs_sb_from_disk()
330 to->sb_logstart = be64_to_cpu(from->sb_logstart); in __xfs_sb_from_disk()
331 to->sb_rootino = be64_to_cpu(from->sb_rootino); in __xfs_sb_from_disk()
332 to->sb_rbmino = be64_to_cpu(from->sb_rbmino); in __xfs_sb_from_disk()
333 to->sb_rsumino = be64_to_cpu(from->sb_rsumino); in __xfs_sb_from_disk()
334 to->sb_rextsize = be32_to_cpu(from->sb_rextsize); in __xfs_sb_from_disk()
335 to->sb_agblocks = be32_to_cpu(from->sb_agblocks); in __xfs_sb_from_disk()
336 to->sb_agcount = be32_to_cpu(from->sb_agcount); in __xfs_sb_from_disk()
337 to->sb_rbmblocks = be32_to_cpu(from->sb_rbmblocks); in __xfs_sb_from_disk()
338 to->sb_logblocks = be32_to_cpu(from->sb_logblocks); in __xfs_sb_from_disk()
339 to->sb_versionnum = be16_to_cpu(from->sb_versionnum); in __xfs_sb_from_disk()
340 to->sb_sectsize = be16_to_cpu(from->sb_sectsize); in __xfs_sb_from_disk()
341 to->sb_inodesize = be16_to_cpu(from->sb_inodesize); in __xfs_sb_from_disk()
342 to->sb_inopblock = be16_to_cpu(from->sb_inopblock); in __xfs_sb_from_disk()
343 memcpy(&to->sb_fname, &from->sb_fname, sizeof(to->sb_fname)); in __xfs_sb_from_disk()
344 to->sb_blocklog = from->sb_blocklog; in __xfs_sb_from_disk()
345 to->sb_sectlog = from->sb_sectlog; in __xfs_sb_from_disk()
346 to->sb_inodelog = from->sb_inodelog; in __xfs_sb_from_disk()
347 to->sb_inopblog = from->sb_inopblog; in __xfs_sb_from_disk()
348 to->sb_agblklog = from->sb_agblklog; in __xfs_sb_from_disk()
349 to->sb_rextslog = from->sb_rextslog; in __xfs_sb_from_disk()
350 to->sb_inprogress = from->sb_inprogress; in __xfs_sb_from_disk()
351 to->sb_imax_pct = from->sb_imax_pct; in __xfs_sb_from_disk()
352 to->sb_icount = be64_to_cpu(from->sb_icount); in __xfs_sb_from_disk()
353 to->sb_ifree = be64_to_cpu(from->sb_ifree); in __xfs_sb_from_disk()
354 to->sb_fdblocks = be64_to_cpu(from->sb_fdblocks); in __xfs_sb_from_disk()
355 to->sb_frextents = be64_to_cpu(from->sb_frextents); in __xfs_sb_from_disk()
356 to->sb_uquotino = be64_to_cpu(from->sb_uquotino); in __xfs_sb_from_disk()
357 to->sb_gquotino = be64_to_cpu(from->sb_gquotino); in __xfs_sb_from_disk()
358 to->sb_qflags = be16_to_cpu(from->sb_qflags); in __xfs_sb_from_disk()
359 to->sb_flags = from->sb_flags; in __xfs_sb_from_disk()
360 to->sb_shared_vn = from->sb_shared_vn; in __xfs_sb_from_disk()
361 to->sb_inoalignmt = be32_to_cpu(from->sb_inoalignmt); in __xfs_sb_from_disk()
362 to->sb_unit = be32_to_cpu(from->sb_unit); in __xfs_sb_from_disk()
363 to->sb_width = be32_to_cpu(from->sb_width); in __xfs_sb_from_disk()
364 to->sb_dirblklog = from->sb_dirblklog; in __xfs_sb_from_disk()
365 to->sb_logsectlog = from->sb_logsectlog; in __xfs_sb_from_disk()
366 to->sb_logsectsize = be16_to_cpu(from->sb_logsectsize); in __xfs_sb_from_disk()
367 to->sb_logsunit = be32_to_cpu(from->sb_logsunit); in __xfs_sb_from_disk()
368 to->sb_features2 = be32_to_cpu(from->sb_features2); in __xfs_sb_from_disk()
369 to->sb_bad_features2 = be32_to_cpu(from->sb_bad_features2); in __xfs_sb_from_disk()
370 to->sb_features_compat = be32_to_cpu(from->sb_features_compat); in __xfs_sb_from_disk()
371 to->sb_features_ro_compat = be32_to_cpu(from->sb_features_ro_compat); in __xfs_sb_from_disk()
372 to->sb_features_incompat = be32_to_cpu(from->sb_features_incompat); in __xfs_sb_from_disk()
373 to->sb_features_log_incompat = in __xfs_sb_from_disk()
376 to->sb_crc = 0; in __xfs_sb_from_disk()
377 to->sb_pad = 0; in __xfs_sb_from_disk()
378 to->sb_pquotino = be64_to_cpu(from->sb_pquotino); in __xfs_sb_from_disk()
379 to->sb_lsn = be64_to_cpu(from->sb_lsn); in __xfs_sb_from_disk()
382 xfs_sb_quota_from_disk(to); in __xfs_sb_from_disk()
387 struct xfs_sb *to, in xfs_sb_from_disk() argument
390 __xfs_sb_from_disk(to, from, true); in xfs_sb_from_disk()
395 struct xfs_dsb *to, in xfs_sb_quota_to_disk() argument
400 to->sb_uquotino = cpu_to_be64(from->sb_uquotino); in xfs_sb_quota_to_disk()
402 to->sb_qflags = cpu_to_be16(from->sb_qflags); in xfs_sb_quota_to_disk()
403 to->sb_gquotino = cpu_to_be64(from->sb_gquotino); in xfs_sb_quota_to_disk()
404 to->sb_pquotino = cpu_to_be64(from->sb_pquotino); in xfs_sb_quota_to_disk()
422 to->sb_qflags = cpu_to_be16(qflags); in xfs_sb_quota_to_disk()
434 to->sb_gquotino = cpu_to_be64(from->sb_gquotino); in xfs_sb_quota_to_disk()
436 to->sb_gquotino = cpu_to_be64(from->sb_pquotino); in xfs_sb_quota_to_disk()
446 to->sb_gquotino = cpu_to_be64(NULLFSINO); in xfs_sb_quota_to_disk()
449 to->sb_pquotino = 0; in xfs_sb_quota_to_disk()
454 struct xfs_dsb *to, in xfs_sb_to_disk() argument
457 xfs_sb_quota_to_disk(to, from); in xfs_sb_to_disk()
459 to->sb_magicnum = cpu_to_be32(from->sb_magicnum); in xfs_sb_to_disk()
460 to->sb_blocksize = cpu_to_be32(from->sb_blocksize); in xfs_sb_to_disk()
461 to->sb_dblocks = cpu_to_be64(from->sb_dblocks); in xfs_sb_to_disk()
462 to->sb_rblocks = cpu_to_be64(from->sb_rblocks); in xfs_sb_to_disk()
463 to->sb_rextents = cpu_to_be64(from->sb_rextents); in xfs_sb_to_disk()
464 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in xfs_sb_to_disk()
465 to->sb_logstart = cpu_to_be64(from->sb_logstart); in xfs_sb_to_disk()
466 to->sb_rootino = cpu_to_be64(from->sb_rootino); in xfs_sb_to_disk()
467 to->sb_rbmino = cpu_to_be64(from->sb_rbmino); in xfs_sb_to_disk()
468 to->sb_rsumino = cpu_to_be64(from->sb_rsumino); in xfs_sb_to_disk()
469 to->sb_rextsize = cpu_to_be32(from->sb_rextsize); in xfs_sb_to_disk()
470 to->sb_agblocks = cpu_to_be32(from->sb_agblocks); in xfs_sb_to_disk()
471 to->sb_agcount = cpu_to_be32(from->sb_agcount); in xfs_sb_to_disk()
472 to->sb_rbmblocks = cpu_to_be32(from->sb_rbmblocks); in xfs_sb_to_disk()
473 to->sb_logblocks = cpu_to_be32(from->sb_logblocks); in xfs_sb_to_disk()
474 to->sb_versionnum = cpu_to_be16(from->sb_versionnum); in xfs_sb_to_disk()
475 to->sb_sectsize = cpu_to_be16(from->sb_sectsize); in xfs_sb_to_disk()
476 to->sb_inodesize = cpu_to_be16(from->sb_inodesize); in xfs_sb_to_disk()
477 to->sb_inopblock = cpu_to_be16(from->sb_inopblock); in xfs_sb_to_disk()
478 memcpy(&to->sb_fname, &from->sb_fname, sizeof(to->sb_fname)); in xfs_sb_to_disk()
479 to->sb_blocklog = from->sb_blocklog; in xfs_sb_to_disk()
480 to->sb_sectlog = from->sb_sectlog; in xfs_sb_to_disk()
481 to->sb_inodelog = from->sb_inodelog; in xfs_sb_to_disk()
482 to->sb_inopblog = from->sb_inopblog; in xfs_sb_to_disk()
483 to->sb_agblklog = from->sb_agblklog; in xfs_sb_to_disk()
484 to->sb_rextslog = from->sb_rextslog; in xfs_sb_to_disk()
485 to->sb_inprogress = from->sb_inprogress; in xfs_sb_to_disk()
486 to->sb_imax_pct = from->sb_imax_pct; in xfs_sb_to_disk()
487 to->sb_icount = cpu_to_be64(from->sb_icount); in xfs_sb_to_disk()
488 to->sb_ifree = cpu_to_be64(from->sb_ifree); in xfs_sb_to_disk()
489 to->sb_fdblocks = cpu_to_be64(from->sb_fdblocks); in xfs_sb_to_disk()
490 to->sb_frextents = cpu_to_be64(from->sb_frextents); in xfs_sb_to_disk()
492 to->sb_flags = from->sb_flags; in xfs_sb_to_disk()
493 to->sb_shared_vn = from->sb_shared_vn; in xfs_sb_to_disk()
494 to->sb_inoalignmt = cpu_to_be32(from->sb_inoalignmt); in xfs_sb_to_disk()
495 to->sb_unit = cpu_to_be32(from->sb_unit); in xfs_sb_to_disk()
496 to->sb_width = cpu_to_be32(from->sb_width); in xfs_sb_to_disk()
497 to->sb_dirblklog = from->sb_dirblklog; in xfs_sb_to_disk()
498 to->sb_logsectlog = from->sb_logsectlog; in xfs_sb_to_disk()
499 to->sb_logsectsize = cpu_to_be16(from->sb_logsectsize); in xfs_sb_to_disk()
500 to->sb_logsunit = cpu_to_be32(from->sb_logsunit); in xfs_sb_to_disk()
508 to->sb_features2 = cpu_to_be32(from->sb_features2); in xfs_sb_to_disk()
509 to->sb_bad_features2 = cpu_to_be32(from->sb_bad_features2); in xfs_sb_to_disk()
512 to->sb_features_compat = cpu_to_be32(from->sb_features_compat); in xfs_sb_to_disk()
513 to->sb_features_ro_compat = in xfs_sb_to_disk()
515 to->sb_features_incompat = in xfs_sb_to_disk()
517 to->sb_features_log_incompat = in xfs_sb_to_disk()
519 to->sb_pad = 0; in xfs_sb_to_disk()
520 to->sb_lsn = cpu_to_be64(from->sb_lsn); in xfs_sb_to_disk()