Commit 24aa338
ocfs2: shift allocation ocfs2_live_connection to user_connect()
We perform this because the DLM recovery callbacks will require the
ocfs2_live_connection structure to record the node information when
dlm_new_lockspace() is updated (in the last patch of the series).
Before calling dlm_new_lockspace(), we need the structure ready for the
.recover_done() callback, which would set oc_this_node. This is the
reason we allocate ocfs2_live_connection beforehand in user_connect().
[AKPM] rc initialization is not required because it assigned in case of
errors. It will be cleared by compiler anyways.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reveiwed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 66e188f commit 24aa338
1 file changed
+18
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
| 203 | + | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 207 | | |
213 | 208 | | |
214 | 209 | | |
| |||
222 | 217 | | |
223 | 218 | | |
224 | 219 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 220 | | |
232 | 221 | | |
233 | 222 | | |
| |||
840 | 829 | | |
841 | 830 | | |
842 | 831 | | |
843 | | - | |
844 | | - | |
| 832 | + | |
| 833 | + | |
845 | 834 | | |
846 | 835 | | |
847 | 836 | | |
848 | | - | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
849 | 844 | | |
850 | 845 | | |
851 | 846 | | |
| |||
861 | 856 | | |
862 | 857 | | |
863 | 858 | | |
864 | | - | |
| 859 | + | |
| 860 | + | |
865 | 861 | | |
866 | 862 | | |
867 | 863 | | |
868 | 864 | | |
869 | 865 | | |
870 | 866 | | |
871 | | - | |
| 867 | + | |
| 868 | + | |
872 | 869 | | |
873 | 870 | | |
874 | 871 | | |
875 | | - | |
| 872 | + | |
876 | 873 | | |
877 | 874 | | |
| 875 | + | |
| 876 | + | |
878 | 877 | | |
879 | 878 | | |
880 | 879 | | |
| |||
0 commit comments