CIFS: Find and reopen a file before get MTU credits in writepages
authorPavel Shilovsky <pshilov@microsoft.com>
Fri, 25 Jan 2019 23:23:36 +0000 (15:23 -0800)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Mar 2019 00:10:04 +0000 (18:10 -0600)
commitc7d38dbe7d3851e52f6117d9bbbf6865066b81d9
treecdd7cc5461580e92addfdc0735bc3470d98fa362
parent3e9529944d4177bd3a0952f4e7fe4f76c0f9bf6f
CIFS: Find and reopen a file before get MTU credits in writepages

Reorder finding and reopening a writable handle file and getting
MTU credits in writepages because we may be stuck on low credits
otherwise.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c