aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index b92a4fa2a0a1..614acd508b35 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -3300,11 +3300,13 @@ xfs_iext_get_ext(
3300 */ 3300 */
3301void 3301void
3302xfs_iext_insert( 3302xfs_iext_insert(
3303 xfs_ifork_t *ifp, /* inode fork pointer */ 3303 xfs_inode_t *ip, /* incore inode pointer */
3304 xfs_extnum_t idx, /* starting index of new items */ 3304 xfs_extnum_t idx, /* starting index of new items */
3305 xfs_extnum_t count, /* number of inserted items */ 3305 xfs_extnum_t count, /* number of inserted items */
3306 xfs_bmbt_irec_t *new) /* items to insert */ 3306 xfs_bmbt_irec_t *new, /* items to insert */
3307 int state) /* type of extent conversion */
3307{ 3308{
3309 xfs_ifork_t *ifp = (state & BMAP_ATTRFORK) ? ip->i_afp : &ip->i_df;
3308 xfs_extnum_t i; /* extent record index */ 3310 xfs_extnum_t i; /* extent record index */
3309 3311
3310 ASSERT(ifp->if_flags & XFS_IFEXTENTS); 3312 ASSERT(ifp->if_flags & XFS_IFEXTENTS);
@@ -3549,10 +3551,12 @@ xfs_iext_add_indirect_multi(
3549 */ 3551 */
3550void 3552void
3551xfs_iext_remove( 3553xfs_iext_remove(
3552 xfs_ifork_t *ifp, /* inode fork pointer */ 3554 xfs_inode_t *ip, /* incore inode pointer */
3553 xfs_extnum_t idx, /* index to begin removing exts */ 3555 xfs_extnum_t idx, /* index to begin removing exts */
3554 int ext_diff) /* number of extents to remove */ 3556 int ext_diff, /* number of extents to remove */
3557 int state) /* type of extent conversion */
3555{ 3558{
3559 xfs_ifork_t *ifp = (state & BMAP_ATTRFORK) ? ip->i_afp : &ip->i_df;
3556 xfs_extnum_t nextents; /* number of extents in file */ 3560 xfs_extnum_t nextents; /* number of extents in file */
3557 int new_size; /* size of extents after removal */ 3561 int new_size; /* size of extents after removal */
3558 3562