dect
/
linux-2.6
Archived
13
0
Fork 0

[CIFS] Fix trivial sparse warning with asyn i/o patch

Signed-off-by: Steve French <sfrench@us.ibm.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
Steve French 2012-03-23 16:30:56 -05:00
parent d81625587f
commit c7ad42b52d
1 changed files with 1 additions and 1 deletions

View File

@ -2114,7 +2114,7 @@ cifs_uncached_marshal_iov(struct kvec *iov, struct cifs_writedata *wdata)
/* marshal up the pages into iov array */
for (i = 0; i < wdata->nr_pages; i++) {
iov[i + 1].iov_len = min(bytes, PAGE_SIZE);
iov[i + 1].iov_len = min_t(size_t, bytes, PAGE_SIZE);
iov[i + 1].iov_base = kmap(wdata->pages[i]);
bytes -= iov[i + 1].iov_len;
}