diff options
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 82326d2142e7..802564196510 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -1087,11 +1087,11 @@ refind_writable: | |||
1087 | read_unlock(&GlobalSMBSeslock); | 1087 | read_unlock(&GlobalSMBSeslock); |
1088 | return open_file; | 1088 | return open_file; |
1089 | } | 1089 | } |
1090 | 1090 | ||
1091 | read_unlock(&GlobalSMBSeslock); | 1091 | read_unlock(&GlobalSMBSeslock); |
1092 | /* Had to unlock since following call can block */ | 1092 | /* Had to unlock since following call can block */ |
1093 | rc = cifs_reopen_file(open_file->pfile, FALSE); | 1093 | rc = cifs_reopen_file(open_file->pfile, FALSE); |
1094 | if (!rc) { | 1094 | if (!rc) { |
1095 | if (!open_file->closePend) | 1095 | if (!open_file->closePend) |
1096 | return open_file; | 1096 | return open_file; |
1097 | else { /* start over in case this was deleted */ | 1097 | else { /* start over in case this was deleted */ |
@@ -1114,7 +1114,7 @@ refind_writable: | |||
1114 | /* can not use this handle, no write | 1114 | /* can not use this handle, no write |
1115 | pending on this one after all */ | 1115 | pending on this one after all */ |
1116 | atomic_dec(&open_file->wrtPending); | 1116 | atomic_dec(&open_file->wrtPending); |
1117 | 1117 | ||
1118 | if (open_file->closePend) /* list could have changed */ | 1118 | if (open_file->closePend) /* list could have changed */ |
1119 | goto refind_writable; | 1119 | goto refind_writable; |
1120 | /* else we simply continue to the next entry. Thus | 1120 | /* else we simply continue to the next entry. Thus |