diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:29 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:28 -0400 |
commit | c9de5c80d536e556568ccd45b9599870d4993b7d (patch) | |
tree | 5ae40ff872bc69cf5be996f2e6a75ea746d8ed58 /fs/cifs/cifssmb.c | |
parent | 09a4707e7638247302c6d798061aed117141fb74 (diff) |
CIFS: Move async write to ops struct
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 8a07f218266f..2a9b27387708 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -1926,6 +1926,7 @@ cifs_writev_requeue(struct cifs_writedata *wdata) | |||
1926 | { | 1926 | { |
1927 | int i, rc; | 1927 | int i, rc; |
1928 | struct inode *inode = wdata->cfile->dentry->d_inode; | 1928 | struct inode *inode = wdata->cfile->dentry->d_inode; |
1929 | struct TCP_Server_Info *server; | ||
1929 | 1930 | ||
1930 | for (i = 0; i < wdata->nr_pages; i++) { | 1931 | for (i = 0; i < wdata->nr_pages; i++) { |
1931 | lock_page(wdata->pages[i]); | 1932 | lock_page(wdata->pages[i]); |
@@ -1933,7 +1934,8 @@ cifs_writev_requeue(struct cifs_writedata *wdata) | |||
1933 | } | 1934 | } |
1934 | 1935 | ||
1935 | do { | 1936 | do { |
1936 | rc = cifs_async_writev(wdata); | 1937 | server = tlink_tcon(wdata->cfile->tlink)->ses->server; |
1938 | rc = server->ops->async_writev(wdata); | ||
1937 | } while (rc == -EAGAIN); | 1939 | } while (rc == -EAGAIN); |
1938 | 1940 | ||
1939 | for (i = 0; i < wdata->nr_pages; i++) { | 1941 | for (i = 0; i < wdata->nr_pages; i++) { |