xfs: change return value of xfs_inode_need_cow to int
authorzhengbin <zhengbin13@huawei.com>
Mon, 20 Jan 2020 22:34:47 +0000 (14:34 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 20 Jan 2020 22:34:47 +0000 (14:34 -0800)
commitaa124436f329cc23e88ce67c81b5f6b7f4930529
tree03b88f250e231bb16022b138d9ac014739239c3d
parent8a6453a89dc10269adb1fc0cd0ceba928d557c21
xfs: change return value of xfs_inode_need_cow to int

Fixes coccicheck warning:

fs/xfs/xfs_reflink.c:236:9-10: WARNING: return of 0/1 in function 'xfs_inode_need_cow' with return type bool

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
[darrick: rename the function so it doesn't sound like a predicate]
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_iomap.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_reflink.h