diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-03-23 14:28:03 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2012-03-23 14:28:03 -0400 |
commit | 7c9421e1a9ce8d17816f480c3a5b4f2609442cd5 (patch) | |
tree | 6131acccc9898629df21a5c5a3e75ccf717bf947 /fs/cifs/cifs_debug.c | |
parent | 243d04b6e6de7fd08578fffd28b890c0200a2ca5 (diff) |
CIFS: Change mid_q_entry structure fields
to be protocol-unspecific and big enough to keep both CIFS
and SMB2 values.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index bcd0db783196..81be2637b57b 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c | |||
@@ -80,15 +80,15 @@ void cifs_dump_mids(struct TCP_Server_Info *server) | |||
80 | spin_lock(&GlobalMid_Lock); | 80 | spin_lock(&GlobalMid_Lock); |
81 | list_for_each(tmp, &server->pending_mid_q) { | 81 | list_for_each(tmp, &server->pending_mid_q) { |
82 | mid_entry = list_entry(tmp, struct mid_q_entry, qhead); | 82 | mid_entry = list_entry(tmp, struct mid_q_entry, qhead); |
83 | cERROR(1, "State: %d Cmd: %d Pid: %d Cbdata: %p Mid %d", | 83 | cERROR(1, "State: %d Cmd: %d Pid: %d Cbdata: %p Mid %llu", |
84 | mid_entry->midState, | 84 | mid_entry->mid_state, |
85 | (int)mid_entry->command, | 85 | le16_to_cpu(mid_entry->command), |
86 | mid_entry->pid, | 86 | mid_entry->pid, |
87 | mid_entry->callback_data, | 87 | mid_entry->callback_data, |
88 | mid_entry->mid); | 88 | mid_entry->mid); |
89 | #ifdef CONFIG_CIFS_STATS2 | 89 | #ifdef CONFIG_CIFS_STATS2 |
90 | cERROR(1, "IsLarge: %d buf: %p time rcv: %ld now: %ld", | 90 | cERROR(1, "IsLarge: %d buf: %p time rcv: %ld now: %ld", |
91 | mid_entry->largeBuf, | 91 | mid_entry->large_buf, |
92 | mid_entry->resp_buf, | 92 | mid_entry->resp_buf, |
93 | mid_entry->when_received, | 93 | mid_entry->when_received, |
94 | jiffies); | 94 | jiffies); |
@@ -218,12 +218,12 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) | |||
218 | mid_entry = list_entry(tmp3, struct mid_q_entry, | 218 | mid_entry = list_entry(tmp3, struct mid_q_entry, |
219 | qhead); | 219 | qhead); |
220 | seq_printf(m, "\tState: %d com: %d pid:" | 220 | seq_printf(m, "\tState: %d com: %d pid:" |
221 | " %d cbdata: %p mid %d\n", | 221 | " %d cbdata: %p mid %llu\n", |
222 | mid_entry->midState, | 222 | mid_entry->mid_state, |
223 | (int)mid_entry->command, | 223 | le16_to_cpu(mid_entry->command), |
224 | mid_entry->pid, | 224 | mid_entry->pid, |
225 | mid_entry->callback_data, | 225 | mid_entry->callback_data, |
226 | mid_entry->mid); | 226 | mid_entry->mid); |
227 | } | 227 | } |
228 | spin_unlock(&GlobalMid_Lock); | 228 | spin_unlock(&GlobalMid_Lock); |
229 | } | 229 | } |