xfs: fix issues that cause userspace warnings
Some of the code shared with userspace causes compilation warnings from things turned off in the kernel code, such as differences in variable signedness. Fix those issues. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
@@ -4258,12 +4258,9 @@ __xfs_bmapi_allocate(
|
||||
struct xfs_ifork *ifp = XFS_IFORK_PTR(bma->ip, whichfork);
|
||||
int tmp_logflags = 0;
|
||||
int error;
|
||||
int rt;
|
||||
|
||||
ASSERT(bma->length > 0);
|
||||
|
||||
rt = (whichfork == XFS_DATA_FORK) && XFS_IS_REALTIME_INODE(bma->ip);
|
||||
|
||||
/*
|
||||
* For the wasdelay case, we could also just allocate the stuff asked
|
||||
* for in this bmap call but that wouldn't be as good.
|
||||
|
||||
Reference in New Issue
Block a user