mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
xfs: introduce v5 inode group structure
Introduce a new "v5" inode group structure that fixes the alignment and padding problems of the existing structure. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
parent
7035f9724f
commit
5f19c7fc68
7 changed files with 42 additions and 9 deletions
|
@ -729,10 +729,13 @@ xfs_fsbulkstat_one_fmt(
|
|||
|
||||
int
|
||||
xfs_fsinumbers_fmt(
|
||||
struct xfs_ibulk *breq,
|
||||
const struct xfs_inogrp *igrp)
|
||||
struct xfs_ibulk *breq,
|
||||
const struct xfs_inumbers *igrp)
|
||||
{
|
||||
if (copy_to_user(breq->ubuffer, igrp, sizeof(*igrp)))
|
||||
struct xfs_inogrp ig1;
|
||||
|
||||
xfs_inumbers_to_inogrp(&ig1, igrp);
|
||||
if (copy_to_user(breq->ubuffer, &ig1, sizeof(struct xfs_inogrp)))
|
||||
return -EFAULT;
|
||||
return xfs_ibulk_advance(breq, sizeof(struct xfs_inogrp));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue