Commit fb8a3e52 authored by Pavel Shilovsky's avatar Pavel Shilovsky Committed by Steve French

CIFS: Improve indentation in cifs_user_read()

Signed-off-by: default avatarPavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent 2e8a05d8
...@@ -3027,28 +3027,27 @@ ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to) ...@@ -3027,28 +3027,27 @@ ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to)
rc = wait_for_completion_killable(&rdata->done); rc = wait_for_completion_killable(&rdata->done);
if (rc) if (rc)
rc = -EINTR; rc = -EINTR;
else if (rdata->result) { else if (rdata->result == -EAGAIN) {
rc = rdata->result;
/* resend call if it's a retryable error */ /* resend call if it's a retryable error */
if (rc == -EAGAIN) { struct list_head tmp_list;
struct list_head tmp_list;
list_del_init(&rdata->list); list_del_init(&rdata->list);
INIT_LIST_HEAD(&tmp_list); INIT_LIST_HEAD(&tmp_list);
rc = cifs_send_async_read(rdata->offset, rc = cifs_send_async_read(rdata->offset,
rdata->bytes, rdata->cfile, rdata->bytes, rdata->cfile,
cifs_sb, &tmp_list); cifs_sb, &tmp_list);
list_splice(&tmp_list, &rdata_list); list_splice(&tmp_list, &rdata_list);
kref_put(&rdata->refcount, kref_put(&rdata->refcount,
cifs_uncached_readdata_release); cifs_uncached_readdata_release);
goto again; goto again;
} } else if (rdata->result)
} else { rc = rdata->result;
else
rc = cifs_readdata_to_iov(rdata, to); rc = cifs_readdata_to_iov(rdata, to);
}
/* if there was a short read -- discard anything left */ /* if there was a short read -- discard anything left */
if (rdata->got_bytes && rdata->got_bytes < rdata->bytes) if (rdata->got_bytes && rdata->got_bytes < rdata->bytes)
rc = -ENODATA; rc = -ENODATA;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment