diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.de> | 2014-01-21 15:48:23 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 16:19:41 -0800 |
commit | 24aa338611e9b02d045a1a99050135b0d49f41b5 (patch) | |
tree | d243aea4b478586f8dbaaf2845c0f34f66d7568b /fs/ocfs2/stackglue.h | |
parent | 66e188fc3173eaeb32d3479758685e34889aff14 (diff) | |
download | talos-obmc-linux-24aa338611e9b02d045a1a99050135b0d49f41b5.tar.gz talos-obmc-linux-24aa338611e9b02d045a1a99050135b0d49f41b5.zip |
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>
Diffstat (limited to 'fs/ocfs2/stackglue.h')
0 files changed, 0 insertions, 0 deletions