]> git.karo-electronics.de Git - linux-beck.git/commitdiff
xfs: fix compile error when libxfs header used in C++ code
authorRoger Willcocks <roger@filmlight.ltd.uk>
Mon, 19 May 2014 22:52:21 +0000 (08:52 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 19 May 2014 22:52:21 +0000 (08:52 +1000)
xfs_ialloc.h:102: error: expected ',' or '...' before 'delete'

Simple parameter rename, no changes to behaviour.

Signed-off-by: Roger Willcocks <roger@filmlight.ltd.uk>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_ialloc.c
fs/xfs/xfs_ialloc.h

index 8f711db61a0c2148ecfd98c22bed1509fa437e11..b819263b7f2eb0a2f033d57e3cba230c4cb66689 100644 (file)
@@ -1109,7 +1109,7 @@ xfs_difree(
        xfs_trans_t     *tp,            /* transaction pointer */
        xfs_ino_t       inode,          /* inode to be freed */
        xfs_bmap_free_t *flist,         /* extents to free */
-       int             *delete       /* set if inode cluster was deleted */
+       int             *deleted,       /* set if inode cluster was deleted */
        xfs_ino_t       *first_ino)     /* first inode in deleted cluster */
 {
        /* REFERENCED */
@@ -1209,7 +1209,7 @@ xfs_difree(
        if (!(mp->m_flags & XFS_MOUNT_IKEEP) &&
            (rec.ir_freecount == mp->m_ialloc_inos)) {
 
-               *delete = 1;
+               *deleted = 1;
                *first_ino = XFS_AGINO_TO_INO(mp, agno, rec.ir_startino);
 
                /*
@@ -1237,7 +1237,7 @@ xfs_difree(
                                  XFS_AGINO_TO_AGBNO(mp, rec.ir_startino)),
                                  mp->m_ialloc_blks, flist, mp);
        } else {
-               *delete = 0;
+               *deleted = 0;
 
                error = xfs_inobt_update(cur, &rec);
                if (error) {
index 812365d17e672d5a79b34ffac2550202c095b0f2..95ad1c002d600916f983806cdb6a484712f0a84b 100644 (file)
@@ -90,7 +90,7 @@ xfs_difree(
        struct xfs_trans *tp,           /* transaction pointer */
        xfs_ino_t       inode,          /* inode to be freed */
        struct xfs_bmap_free *flist,    /* extents to free */
-       int             *delete       /* set if inode cluster was deleted */
+       int             *deleted,       /* set if inode cluster was deleted */
        xfs_ino_t       *first_ino);    /* first inode in deleted cluster */
 
 /*