diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-05-05 01:30:40 -0400 |
|---|---|---|
| committer | Steve French <smfrench@gmail.com> | 2017-06-20 18:57:27 -0400 |
| commit | 8a7b0d8e8d9962ec3b2ae64dd4e86d68a6fb9220 (patch) | |
| tree | 88ec5115c7463d4b91979cf122df75eba20103b5 /fs | |
| parent | 9705596d08ac87c18aee32cc97f2783b7d14624e (diff) | |
CIFS: Set ->should_dirty in cifs_user_readv()
The current code causes a static checker warning because ITER_IOVEC is
zero so the condition is never true.
Fixes: 6685c5e2d1ac ("CIFS: Add asynchronous read support through kernel AIO")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs')
| -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 0fd081bd2a2f..fcef70602b27 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
| @@ -3271,7 +3271,7 @@ ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to) | |||
| 3271 | if (!is_sync_kiocb(iocb)) | 3271 | if (!is_sync_kiocb(iocb)) |
| 3272 | ctx->iocb = iocb; | 3272 | ctx->iocb = iocb; |
| 3273 | 3273 | ||
| 3274 | if (to->type & ITER_IOVEC) | 3274 | if (to->type == ITER_IOVEC) |
| 3275 | ctx->should_dirty = true; | 3275 | ctx->should_dirty = true; |
| 3276 | 3276 | ||
| 3277 | rc = setup_aio_ctx_iter(ctx, to, READ); | 3277 | rc = setup_aio_ctx_iter(ctx, to, READ); |
