Skip to content

Commit

Permalink
[CIFS] Fix trivial sparse warning with asyn i/o patch
Browse files Browse the repository at this point in the history
Signed-off-by: Steve French <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
  • Loading branch information
Steve French committed Mar 23, 2012
1 parent d816255 commit c7ad42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c7ad42b

Please sign in to comment.