NFS: Fix handful of compiler warnings in direct.c
authorChuck Lever <chuck.lever@oracle.com>
Sat, 19 May 2007 21:22:46 +0000 (17:22 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 24 May 2007 14:44:20 +0000 (10:44 -0400)
commit749e146e01cf87ce3c1d6f6077b877471b04df5b
tree86c694a9c6dd990e445eb7be38de43255d0336ed
parent7fe7f8487ae742239dd8c66596e2311c30d057d1
NFS: Fix handful of compiler warnings in direct.c

This patch fixes a couple of signage issues that were causing an Oops
when running the LTP diotest4 test. get_user_pages() returns a signed
error, hence we need to be careful when comparing with the unsigned
number of pages from data->npages.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c