mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
Merge branch 'xfs-4.7-misc-fixes' into for-next
This commit is contained in:
commit
2a4ad5894c
10 changed files with 32 additions and 29 deletions
|
@ -542,7 +542,6 @@ xfs_iroot_realloc(
|
|||
new_max = cur_max + rec_diff;
|
||||
new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max);
|
||||
ifp->if_broot = kmem_realloc(ifp->if_broot, new_size,
|
||||
XFS_BMAP_BROOT_SPACE_CALC(mp, cur_max),
|
||||
KM_SLEEP | KM_NOFS);
|
||||
op = (char *)XFS_BMAP_BROOT_PTR_ADDR(mp, ifp->if_broot, 1,
|
||||
ifp->if_broot_bytes);
|
||||
|
@ -686,7 +685,6 @@ xfs_idata_realloc(
|
|||
ifp->if_u1.if_data =
|
||||
kmem_realloc(ifp->if_u1.if_data,
|
||||
real_size,
|
||||
ifp->if_real_bytes,
|
||||
KM_SLEEP | KM_NOFS);
|
||||
}
|
||||
} else {
|
||||
|
@ -1402,8 +1400,7 @@ xfs_iext_realloc_direct(
|
|||
if (rnew_size != ifp->if_real_bytes) {
|
||||
ifp->if_u1.if_extents =
|
||||
kmem_realloc(ifp->if_u1.if_extents,
|
||||
rnew_size,
|
||||
ifp->if_real_bytes, KM_NOFS);
|
||||
rnew_size, KM_NOFS);
|
||||
}
|
||||
if (rnew_size > ifp->if_real_bytes) {
|
||||
memset(&ifp->if_u1.if_extents[ifp->if_bytes /
|
||||
|
@ -1487,9 +1484,8 @@ xfs_iext_realloc_indirect(
|
|||
if (new_size == 0) {
|
||||
xfs_iext_destroy(ifp);
|
||||
} else {
|
||||
ifp->if_u1.if_ext_irec = (xfs_ext_irec_t *)
|
||||
kmem_realloc(ifp->if_u1.if_ext_irec,
|
||||
new_size, size, KM_NOFS);
|
||||
ifp->if_u1.if_ext_irec =
|
||||
kmem_realloc(ifp->if_u1.if_ext_irec, new_size, KM_NOFS);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue