Commit 86aaf02e authored by Fabian Frederick's avatar Fabian Frederick Committed by Dave Chinner

xfs: use bool instead of int in xfs_rename()

new_parent and src_is_directory are only used in 0/1 context.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent b26384dc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment