diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 3c5c9bc5cbaf..4202e74b2db5 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -2580,7 +2580,7 @@ ssize_t cifs_user_writev(struct kiocb *iocb, struct iov_iter *from) | |||
2580 | */ | 2580 | */ |
2581 | 2581 | ||
2582 | len = iov_iter_count(from); | 2582 | len = iov_iter_count(from); |
2583 | rc = generic_write_checks(file, &iocb->ki_pos, &len, 0); | 2583 | rc = generic_write_checks(file, &iocb->ki_pos, &len); |
2584 | if (rc) | 2584 | if (rc) |
2585 | return rc; | 2585 | return rc; |
2586 | 2586 | ||
@@ -2684,7 +2684,7 @@ cifs_writev(struct kiocb *iocb, struct iov_iter *from) | |||
2684 | mutex_lock(&inode->i_mutex); | 2684 | mutex_lock(&inode->i_mutex); |
2685 | 2685 | ||
2686 | count = iov_iter_count(from); | 2686 | count = iov_iter_count(from); |
2687 | rc = generic_write_checks(file, &iocb->ki_pos, &count, 0); | 2687 | rc = generic_write_checks(file, &iocb->ki_pos, &count); |
2688 | if (rc) | 2688 | if (rc) |
2689 | goto out; | 2689 | goto out; |
2690 | 2690 | ||