aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-24 23:54:53 -0400
committerDave Chinner <david@fromorbit.com>2015-03-24 23:54:53 -0400
commit86aaf02e57d25a3b4094ca76ff805ee2d7aa30f8 (patch)
tree6bc6afa1b7db1751bdd980852c5e66a1cdeed876
parentb26384dc52edba2f5fcc2b38eccc98e1f44bb379 (diff)
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: Fabian Frederick <fabf@skynet.be> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r--fs/xfs/xfs_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index daafa1f6d260..b7064f20de7f 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -2790,8 +2790,8 @@ xfs_rename(
2790{ 2790{
2791 xfs_trans_t *tp = NULL; 2791 xfs_trans_t *tp = NULL;
2792 xfs_mount_t *mp = src_dp->i_mount; 2792 xfs_mount_t *mp = src_dp->i_mount;
2793 int new_parent; /* moving to a new dir */ 2793 bool new_parent; /* moving to a new dir */
2794 int src_is_directory; /* src_name is a directory */ 2794 bool src_is_directory; /* src_name is a directory */
2795 int error; 2795 int error;
2796 xfs_bmap_free_t free_list; 2796 xfs_bmap_free_t free_list;
2797 xfs_fsblock_t first_block; 2797 xfs_fsblock_t first_block;