xfs: use bool instead of int in xfs_rename()
authorFabian Frederick <fabf@skynet.be>
Wed, 25 Mar 2015 03:54:53 +0000 (14:54 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 25 Mar 2015 03:54:53 +0000 (14:54 +1100)
new_parent and src_is_directory are only used in 0/1 context.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_inode.c

index daafa1f..b7064f2 100644 (file)
@@ -2790,8 +2790,8 @@ xfs_rename(
 {
        xfs_trans_t     *tp = NULL;
        xfs_mount_t     *mp = src_dp->i_mount;
-       int             new_parent;             /* moving to a new dir */
-       int             src_is_directory;       /* src_name is a directory */
+       bool            new_parent;             /* moving to a new dir */
+       bool            src_is_directory;       /* src_name is a directory */
        int             error;
        xfs_bmap_free_t free_list;
        xfs_fsblock_t   first_block;