diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 22:05:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 22:05:45 -0500 |
commit | df32e43a54d04eda35d2859beaf90e3864d53288 (patch) | |
tree | 7a61cf658b2949bd426285eb9902be7758ced1ba /fs/ocfs2/stackglue.h | |
parent | fbd918a2026d0464ce9c23f57b7de4bcfccdc2e6 (diff) | |
parent | 78d5506e82b21a1a1de68c24182db2c2fe521422 (diff) |
Merge branch 'akpm' (incoming from Andrew)
Merge first patch-bomb from Andrew Morton:
- a couple of misc things
- inotify/fsnotify work from Jan
- ocfs2 updates (partial)
- about half of MM
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (117 commits)
mm/migrate: remove unused function, fail_migrate_page()
mm/migrate: remove putback_lru_pages, fix comment on putback_movable_pages
mm/migrate: correct failure handling if !hugepage_migration_support()
mm/migrate: add comment about permanent failure path
mm, page_alloc: warn for non-blockable __GFP_NOFAIL allocation failure
mm: compaction: reset scanner positions immediately when they meet
mm: compaction: do not mark unmovable pageblocks as skipped in async compaction
mm: compaction: detect when scanners meet in isolate_freepages
mm: compaction: reset cached scanner pfn's before reading them
mm: compaction: encapsulate defer reset logic
mm: compaction: trace compaction begin and end
memcg, oom: lock mem_cgroup_print_oom_info
sched: add tracepoints related to NUMA task migration
mm: numa: do not automatically migrate KSM pages
mm: numa: trace tasks that fail migration due to rate limiting
mm: numa: limit scope of lock for NUMA migrate rate limiting
mm: numa: make NUMA-migrate related functions static
lib/show_mem.c: show num_poisoned_pages when oom
mm/hwpoison: add '#' to hwpoison_inject
mm/memblock: use WARN_ONCE when MAX_NUMNODES passed as input parameter
...
Diffstat (limited to 'fs/ocfs2/stackglue.h')
-rw-r--r-- | fs/ocfs2/stackglue.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/fs/ocfs2/stackglue.h b/fs/ocfs2/stackglue.h index 1ec56fdb8d0d..66334a30cea8 100644 --- a/fs/ocfs2/stackglue.h +++ b/fs/ocfs2/stackglue.h | |||
@@ -45,6 +45,9 @@ struct file_lock; | |||
45 | */ | 45 | */ |
46 | #define GROUP_NAME_MAX 64 | 46 | #define GROUP_NAME_MAX 64 |
47 | 47 | ||
48 | /* This shadows OCFS2_CLUSTER_NAME_LEN */ | ||
49 | #define CLUSTER_NAME_MAX 16 | ||
50 | |||
48 | 51 | ||
49 | /* | 52 | /* |
50 | * ocfs2_protocol_version changes when ocfs2 does something different in | 53 | * ocfs2_protocol_version changes when ocfs2 does something different in |
@@ -97,8 +100,10 @@ struct ocfs2_locking_protocol { | |||
97 | * locking compatibility. | 100 | * locking compatibility. |
98 | */ | 101 | */ |
99 | struct ocfs2_cluster_connection { | 102 | struct ocfs2_cluster_connection { |
100 | char cc_name[GROUP_NAME_MAX]; | 103 | char cc_name[GROUP_NAME_MAX + 1]; |
101 | int cc_namelen; | 104 | int cc_namelen; |
105 | char cc_cluster_name[CLUSTER_NAME_MAX + 1]; | ||
106 | int cc_cluster_name_len; | ||
102 | struct ocfs2_protocol_version cc_version; | 107 | struct ocfs2_protocol_version cc_version; |
103 | struct ocfs2_locking_protocol *cc_proto; | 108 | struct ocfs2_locking_protocol *cc_proto; |
104 | void (*cc_recovery_handler)(int node_num, void *recovery_data); | 109 | void (*cc_recovery_handler)(int node_num, void *recovery_data); |
@@ -152,7 +157,8 @@ struct ocfs2_stack_operations { | |||
152 | * ->this_node() returns the cluster's unique identifier for the | 157 | * ->this_node() returns the cluster's unique identifier for the |
153 | * local node. | 158 | * local node. |
154 | */ | 159 | */ |
155 | int (*this_node)(unsigned int *node); | 160 | int (*this_node)(struct ocfs2_cluster_connection *conn, |
161 | unsigned int *node); | ||
156 | 162 | ||
157 | /* | 163 | /* |
158 | * Call the underlying dlm lock function. The ->dlm_lock() | 164 | * Call the underlying dlm lock function. The ->dlm_lock() |
@@ -239,6 +245,8 @@ struct ocfs2_stack_plugin { | |||
239 | 245 | ||
240 | /* Used by the filesystem */ | 246 | /* Used by the filesystem */ |
241 | int ocfs2_cluster_connect(const char *stack_name, | 247 | int ocfs2_cluster_connect(const char *stack_name, |
248 | const char *cluster_name, | ||
249 | int cluster_name_len, | ||
242 | const char *group, | 250 | const char *group, |
243 | int grouplen, | 251 | int grouplen, |
244 | struct ocfs2_locking_protocol *lproto, | 252 | struct ocfs2_locking_protocol *lproto, |
@@ -260,7 +268,8 @@ int ocfs2_cluster_connect_agnostic(const char *group, | |||
260 | int ocfs2_cluster_disconnect(struct ocfs2_cluster_connection *conn, | 268 | int ocfs2_cluster_disconnect(struct ocfs2_cluster_connection *conn, |
261 | int hangup_pending); | 269 | int hangup_pending); |
262 | void ocfs2_cluster_hangup(const char *group, int grouplen); | 270 | void ocfs2_cluster_hangup(const char *group, int grouplen); |
263 | int ocfs2_cluster_this_node(unsigned int *node); | 271 | int ocfs2_cluster_this_node(struct ocfs2_cluster_connection *conn, |
272 | unsigned int *node); | ||
264 | 273 | ||
265 | struct ocfs2_lock_res; | 274 | struct ocfs2_lock_res; |
266 | int ocfs2_dlm_lock(struct ocfs2_cluster_connection *conn, | 275 | int ocfs2_dlm_lock(struct ocfs2_cluster_connection *conn, |