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>
This commit is contained in:

committed by
Darrick J. Wong

parent
8a6453a89d
commit
aa124436f3
@@ -223,8 +223,8 @@ xfs_reflink_trim_around_shared(
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
xfs_inode_need_cow(
|
||||
int
|
||||
xfs_bmap_trim_cow(
|
||||
struct xfs_inode *ip,
|
||||
struct xfs_bmbt_irec *imap,
|
||||
bool *shared)
|
||||
@@ -327,7 +327,7 @@ xfs_find_trim_cow_extent(
|
||||
if (cmap->br_startoff > offset_fsb) {
|
||||
xfs_trim_extent(imap, imap->br_startoff,
|
||||
cmap->br_startoff - imap->br_startoff);
|
||||
return xfs_inode_need_cow(ip, imap, shared);
|
||||
return xfs_bmap_trim_cow(ip, imap, shared);
|
||||
}
|
||||
|
||||
*shared = true;
|
||||
|
Reference in New Issue
Block a user