diff options
author | Steve French <stevef@smf-gateway.(none)> | 2012-03-23 17:30:56 -0400 |
---|---|---|
committer | Steve French <stevef@smf-gateway.(none)> | 2012-03-23 17:30:56 -0400 |
commit | c7ad42b52d866b238ebb311d32ac80338f5c39d4 (patch) | |
tree | 27959eb3fa047c127f510a5c611c343d57a56390 /fs/cifs/file.c | |
parent | d81625587f4fac44a4367c468ba2fe2d981460f8 (diff) |
[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>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index daaaca82eeb2..460d87b7cda0 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -2114,7 +2114,7 @@ cifs_uncached_marshal_iov(struct kvec *iov, struct cifs_writedata *wdata) | |||
2114 | 2114 | ||
2115 | /* marshal up the pages into iov array */ | 2115 | /* marshal up the pages into iov array */ |
2116 | for (i = 0; i < wdata->nr_pages; i++) { | 2116 | for (i = 0; i < wdata->nr_pages; i++) { |
2117 | iov[i + 1].iov_len = min(bytes, PAGE_SIZE); | 2117 | iov[i + 1].iov_len = min_t(size_t, bytes, PAGE_SIZE); |
2118 | iov[i + 1].iov_base = kmap(wdata->pages[i]); | 2118 | iov[i + 1].iov_base = kmap(wdata->pages[i]); |
2119 | bytes -= iov[i + 1].iov_len; | 2119 | bytes -= iov[i + 1].iov_len; |
2120 | } | 2120 | } |