blob: ef1492e2d4454cfa4a9ffd13058d4684271c14cd [file] [log] [blame]
David Teiglandb3b94fa2006-01-16 16:50:04 +00001/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
Steven Whitehouse3a8a9a12006-05-18 15:09:15 -04003 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
David Teiglandb3b94fa2006-01-16 16:50:04 +00004 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
Steven Whitehousee9fc2aa2006-09-01 11:05:15 -04007 * of the GNU General Public License version 2.
David Teiglandb3b94fa2006-01-16 16:50:04 +00008 */
9
10#include <linux/sched.h>
11#include <linux/slab.h>
12#include <linux/spinlock.h>
13#include <linux/completion.h>
14#include <linux/buffer_head.h>
Steven Whitehouse5c676f62006-02-27 17:23:27 -050015#include <linux/gfs2_ondisk.h>
Fabio Massimo Di Nitto7d308592006-09-19 07:56:29 +020016#include <linux/lm_interface.h>
David Teiglandb3b94fa2006-01-16 16:50:04 +000017
18#include "gfs2.h"
Steven Whitehouse5c676f62006-02-27 17:23:27 -050019#include "incore.h"
David Teiglandb3b94fa2006-01-16 16:50:04 +000020#include "bmap.h"
21#include "glock.h"
22#include "glops.h"
23#include "inode.h"
24#include "log.h"
25#include "meta_io.h"
David Teiglandb3b94fa2006-01-16 16:50:04 +000026#include "recovery.h"
27#include "rgrp.h"
Steven Whitehouse5c676f62006-02-27 17:23:27 -050028#include "util.h"
David Teiglandb3b94fa2006-01-16 16:50:04 +000029
Steven Whitehouseba7f7292006-07-26 11:27:10 -040030
31/**
32 * gfs2_pte_inval - Sync and invalidate all PTEs associated with a glock
33 * @gl: the glock
34 *
35 */
36
37static void gfs2_pte_inval(struct gfs2_glock *gl)
38{
39 struct gfs2_inode *ip;
40 struct inode *inode;
41
42 ip = gl->gl_object;
43 inode = &ip->i_inode;
44 if (!ip || !S_ISREG(ip->i_di.di_mode))
45 return;
46
47 if (!test_bit(GIF_PAGED, &ip->i_flags))
48 return;
49
50 unmap_shared_mapping_range(inode->i_mapping, 0, 0);
51
52 if (test_bit(GIF_SW_PAGED, &ip->i_flags))
53 set_bit(GLF_DIRTY, &gl->gl_flags);
54
55 clear_bit(GIF_SW_PAGED, &ip->i_flags);
56}
57
58/**
59 * gfs2_page_inval - Invalidate all pages associated with a glock
60 * @gl: the glock
61 *
62 */
63
64static void gfs2_page_inval(struct gfs2_glock *gl)
65{
66 struct gfs2_inode *ip;
67 struct inode *inode;
68
69 ip = gl->gl_object;
70 inode = &ip->i_inode;
71 if (!ip || !S_ISREG(ip->i_di.di_mode))
72 return;
73
74 truncate_inode_pages(inode->i_mapping, 0);
75 gfs2_assert_withdraw(GFS2_SB(&ip->i_inode), !inode->i_mapping->nrpages);
76 clear_bit(GIF_PAGED, &ip->i_flags);
77}
78
79/**
Steven Whitehouse7276b3b2006-09-21 17:05:23 -040080 * gfs2_page_wait - Wait for writeback of data
Steven Whitehouseba7f7292006-07-26 11:27:10 -040081 * @gl: the glock
Steven Whitehouseba7f7292006-07-26 11:27:10 -040082 *
83 * Syncs data (not metadata) for a regular file.
84 * No-op for all other types.
85 */
86
Steven Whitehouse7276b3b2006-09-21 17:05:23 -040087static void gfs2_page_wait(struct gfs2_glock *gl)
Steven Whitehouseba7f7292006-07-26 11:27:10 -040088{
Steven Whitehouse7276b3b2006-09-21 17:05:23 -040089 struct gfs2_inode *ip = gl->gl_object;
90 struct inode *inode = &ip->i_inode;
91 struct address_space *mapping = inode->i_mapping;
92 int error;
Steven Whitehouseba7f7292006-07-26 11:27:10 -040093
Steven Whitehouse7276b3b2006-09-21 17:05:23 -040094 if (!S_ISREG(ip->i_di.di_mode))
Steven Whitehouseba7f7292006-07-26 11:27:10 -040095 return;
96
Steven Whitehouse7276b3b2006-09-21 17:05:23 -040097 error = filemap_fdatawait(mapping);
Steven Whitehouseba7f7292006-07-26 11:27:10 -040098
99 /* Put back any errors cleared by filemap_fdatawait()
100 so they can be caught by someone who can pass them
101 up to user space. */
102
103 if (error == -ENOSPC)
104 set_bit(AS_ENOSPC, &mapping->flags);
105 else if (error)
106 set_bit(AS_EIO, &mapping->flags);
107
108}
109
Steven Whitehouse7276b3b2006-09-21 17:05:23 -0400110static void gfs2_page_writeback(struct gfs2_glock *gl)
111{
112 struct gfs2_inode *ip = gl->gl_object;
113 struct inode *inode = &ip->i_inode;
114 struct address_space *mapping = inode->i_mapping;
115
116 if (!S_ISREG(ip->i_di.di_mode))
117 return;
118
119 filemap_fdatawrite(mapping);
120}
121
David Teiglandb3b94fa2006-01-16 16:50:04 +0000122/**
123 * meta_go_sync - sync out the metadata for this glock
124 * @gl: the glock
125 * @flags: DIO_*
126 *
127 * Called when demoting or unlocking an EX glock. We must flush
128 * to disk all dirty buffers/pages relating to this glock, and must not
129 * not return to caller to demote/unlock the glock until I/O is complete.
130 */
131
132static void meta_go_sync(struct gfs2_glock *gl, int flags)
133{
134 if (!(flags & DIO_METADATA))
135 return;
136
137 if (test_and_clear_bit(GLF_DIRTY, &gl->gl_flags)) {
Steven Whitehouseb09e5932006-04-07 11:17:32 -0400138 gfs2_log_flush(gl->gl_sbd, gl);
Steven Whitehouse7276b3b2006-09-21 17:05:23 -0400139 gfs2_meta_sync(gl);
David Teiglandb3b94fa2006-01-16 16:50:04 +0000140 if (flags & DIO_RELEASE)
141 gfs2_ail_empty_gl(gl);
142 }
143
David Teiglandb3b94fa2006-01-16 16:50:04 +0000144}
145
146/**
147 * meta_go_inval - invalidate the metadata for this glock
148 * @gl: the glock
149 * @flags:
150 *
151 */
152
153static void meta_go_inval(struct gfs2_glock *gl, int flags)
154{
155 if (!(flags & DIO_METADATA))
156 return;
157
158 gfs2_meta_inval(gl);
159 gl->gl_vn++;
160}
161
162/**
David Teiglandb3b94fa2006-01-16 16:50:04 +0000163 * inode_go_xmote_th - promote/demote a glock
164 * @gl: the glock
165 * @state: the requested state
166 * @flags:
167 *
168 */
169
170static void inode_go_xmote_th(struct gfs2_glock *gl, unsigned int state,
171 int flags)
172{
173 if (gl->gl_state != LM_ST_UNLOCKED)
174 gfs2_pte_inval(gl);
175 gfs2_glock_xmote_th(gl, state, flags);
176}
177
178/**
179 * inode_go_xmote_bh - After promoting/demoting a glock
180 * @gl: the glock
181 *
182 */
183
184static void inode_go_xmote_bh(struct gfs2_glock *gl)
185{
186 struct gfs2_holder *gh = gl->gl_req_gh;
187 struct buffer_head *bh;
188 int error;
189
190 if (gl->gl_state != LM_ST_UNLOCKED &&
191 (!gh || !(gh->gh_flags & GL_SKIP))) {
Steven Whitehouse7276b3b2006-09-21 17:05:23 -0400192 error = gfs2_meta_read(gl, gl->gl_name.ln_number, 0, &bh);
David Teiglandb3b94fa2006-01-16 16:50:04 +0000193 if (!error)
194 brelse(bh);
195 }
196}
197
198/**
199 * inode_go_drop_th - unlock a glock
200 * @gl: the glock
201 *
202 * Invoked from rq_demote().
203 * Another node needs the lock in EXCLUSIVE mode, or lock (unused for too long)
204 * is being purged from our node's glock cache; we're dropping lock.
205 */
206
207static void inode_go_drop_th(struct gfs2_glock *gl)
208{
209 gfs2_pte_inval(gl);
210 gfs2_glock_drop_th(gl);
211}
212
213/**
214 * inode_go_sync - Sync the dirty data and/or metadata for an inode glock
215 * @gl: the glock protecting the inode
216 * @flags:
217 *
218 */
219
220static void inode_go_sync(struct gfs2_glock *gl, int flags)
221{
222 int meta = (flags & DIO_METADATA);
223 int data = (flags & DIO_DATA);
224
225 if (test_bit(GLF_DIRTY, &gl->gl_flags)) {
226 if (meta && data) {
Steven Whitehouse7276b3b2006-09-21 17:05:23 -0400227 gfs2_page_writeback(gl);
Steven Whitehouseb09e5932006-04-07 11:17:32 -0400228 gfs2_log_flush(gl->gl_sbd, gl);
Steven Whitehouse7276b3b2006-09-21 17:05:23 -0400229 gfs2_meta_sync(gl);
230 gfs2_page_wait(gl);
David Teiglandb3b94fa2006-01-16 16:50:04 +0000231 clear_bit(GLF_DIRTY, &gl->gl_flags);
232 } else if (meta) {
Steven Whitehouseb09e5932006-04-07 11:17:32 -0400233 gfs2_log_flush(gl->gl_sbd, gl);
Steven Whitehouse7276b3b2006-09-21 17:05:23 -0400234 gfs2_meta_sync(gl);
235 } else if (data) {
236 gfs2_page_writeback(gl);
237 gfs2_page_wait(gl);
238 }
David Teiglandb3b94fa2006-01-16 16:50:04 +0000239 if (flags & DIO_RELEASE)
240 gfs2_ail_empty_gl(gl);
241 }
David Teiglandb3b94fa2006-01-16 16:50:04 +0000242}
243
244/**
245 * inode_go_inval - prepare a inode glock to be released
246 * @gl: the glock
247 * @flags:
248 *
249 */
250
251static void inode_go_inval(struct gfs2_glock *gl, int flags)
252{
253 int meta = (flags & DIO_METADATA);
254 int data = (flags & DIO_DATA);
255
256 if (meta) {
257 gfs2_meta_inval(gl);
258 gl->gl_vn++;
259 }
260 if (data)
261 gfs2_page_inval(gl);
262}
263
264/**
265 * inode_go_demote_ok - Check to see if it's ok to unlock an inode glock
266 * @gl: the glock
267 *
268 * Returns: 1 if it's ok
269 */
270
271static int inode_go_demote_ok(struct gfs2_glock *gl)
272{
273 struct gfs2_sbd *sdp = gl->gl_sbd;
274 int demote = 0;
275
Steven Whitehouse5c676f62006-02-27 17:23:27 -0500276 if (!gl->gl_object && !gl->gl_aspace->i_mapping->nrpages)
David Teiglandb3b94fa2006-01-16 16:50:04 +0000277 demote = 1;
278 else if (!sdp->sd_args.ar_localcaching &&
279 time_after_eq(jiffies, gl->gl_stamp +
280 gfs2_tune_get(sdp, gt_demote_secs) * HZ))
281 demote = 1;
282
283 return demote;
284}
285
286/**
287 * inode_go_lock - operation done after an inode lock is locked by a process
288 * @gl: the glock
289 * @flags:
290 *
291 * Returns: errno
292 */
293
294static int inode_go_lock(struct gfs2_holder *gh)
295{
296 struct gfs2_glock *gl = gh->gh_gl;
Steven Whitehouse5c676f62006-02-27 17:23:27 -0500297 struct gfs2_inode *ip = gl->gl_object;
David Teiglandb3b94fa2006-01-16 16:50:04 +0000298 int error = 0;
299
300 if (!ip)
301 return 0;
302
303 if (ip->i_vn != gl->gl_vn) {
304 error = gfs2_inode_refresh(ip);
305 if (error)
306 return error;
307 gfs2_inode_attr_in(ip);
308 }
309
310 if ((ip->i_di.di_flags & GFS2_DIF_TRUNC_IN_PROG) &&
311 (gl->gl_state == LM_ST_EXCLUSIVE) &&
312 (gh->gh_flags & GL_LOCAL_EXCL))
313 error = gfs2_truncatei_resume(ip);
314
315 return error;
316}
317
318/**
319 * inode_go_unlock - operation done before an inode lock is unlocked by a
320 * process
321 * @gl: the glock
322 * @flags:
323 *
324 */
325
326static void inode_go_unlock(struct gfs2_holder *gh)
327{
328 struct gfs2_glock *gl = gh->gh_gl;
Steven Whitehouse5c676f62006-02-27 17:23:27 -0500329 struct gfs2_inode *ip = gl->gl_object;
David Teiglandb3b94fa2006-01-16 16:50:04 +0000330
Steven Whitehouse75d3b812006-09-04 11:41:31 -0400331 if (ip == NULL)
332 return;
333 if (test_bit(GLF_DIRTY, &gl->gl_flags))
334 gfs2_inode_attr_in(ip);
335 gfs2_meta_cache_flush(ip);
David Teiglandb3b94fa2006-01-16 16:50:04 +0000336}
337
338/**
339 * inode_greedy -
340 * @gl: the glock
341 *
342 */
343
344static void inode_greedy(struct gfs2_glock *gl)
345{
346 struct gfs2_sbd *sdp = gl->gl_sbd;
Steven Whitehouse5c676f62006-02-27 17:23:27 -0500347 struct gfs2_inode *ip = gl->gl_object;
David Teiglandb3b94fa2006-01-16 16:50:04 +0000348 unsigned int quantum = gfs2_tune_get(sdp, gt_greedy_quantum);
349 unsigned int max = gfs2_tune_get(sdp, gt_greedy_max);
350 unsigned int new_time;
351
352 spin_lock(&ip->i_spin);
353
354 if (time_after(ip->i_last_pfault + quantum, jiffies)) {
355 new_time = ip->i_greedy + quantum;
356 if (new_time > max)
357 new_time = max;
358 } else {
359 new_time = ip->i_greedy - quantum;
360 if (!new_time || new_time > max)
361 new_time = 1;
362 }
363
364 ip->i_greedy = new_time;
365
366 spin_unlock(&ip->i_spin);
367
Steven Whitehousefeaa7bb2006-06-14 15:32:57 -0400368 iput(&ip->i_inode);
David Teiglandb3b94fa2006-01-16 16:50:04 +0000369}
370
371/**
372 * rgrp_go_demote_ok - Check to see if it's ok to unlock a RG's glock
373 * @gl: the glock
374 *
375 * Returns: 1 if it's ok
376 */
377
378static int rgrp_go_demote_ok(struct gfs2_glock *gl)
379{
380 return !gl->gl_aspace->i_mapping->nrpages;
381}
382
383/**
384 * rgrp_go_lock - operation done after an rgrp lock is locked by
385 * a first holder on this node.
386 * @gl: the glock
387 * @flags:
388 *
389 * Returns: errno
390 */
391
392static int rgrp_go_lock(struct gfs2_holder *gh)
393{
Steven Whitehouse5c676f62006-02-27 17:23:27 -0500394 return gfs2_rgrp_bh_get(gh->gh_gl->gl_object);
David Teiglandb3b94fa2006-01-16 16:50:04 +0000395}
396
397/**
398 * rgrp_go_unlock - operation done before an rgrp lock is unlocked by
399 * a last holder on this node.
400 * @gl: the glock
401 * @flags:
402 *
403 */
404
405static void rgrp_go_unlock(struct gfs2_holder *gh)
406{
Steven Whitehouse5c676f62006-02-27 17:23:27 -0500407 gfs2_rgrp_bh_put(gh->gh_gl->gl_object);
David Teiglandb3b94fa2006-01-16 16:50:04 +0000408}
409
410/**
411 * trans_go_xmote_th - promote/demote the transaction glock
412 * @gl: the glock
413 * @state: the requested state
414 * @flags:
415 *
416 */
417
418static void trans_go_xmote_th(struct gfs2_glock *gl, unsigned int state,
419 int flags)
420{
421 struct gfs2_sbd *sdp = gl->gl_sbd;
422
423 if (gl->gl_state != LM_ST_UNLOCKED &&
424 test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) {
425 gfs2_meta_syncfs(sdp);
426 gfs2_log_shutdown(sdp);
427 }
428
429 gfs2_glock_xmote_th(gl, state, flags);
430}
431
432/**
433 * trans_go_xmote_bh - After promoting/demoting the transaction glock
434 * @gl: the glock
435 *
436 */
437
438static void trans_go_xmote_bh(struct gfs2_glock *gl)
439{
440 struct gfs2_sbd *sdp = gl->gl_sbd;
Steven Whitehousefeaa7bb2006-06-14 15:32:57 -0400441 struct gfs2_inode *ip = GFS2_I(sdp->sd_jdesc->jd_inode);
Steven Whitehouse5c676f62006-02-27 17:23:27 -0500442 struct gfs2_glock *j_gl = ip->i_gl;
David Teiglandb3b94fa2006-01-16 16:50:04 +0000443 struct gfs2_log_header head;
444 int error;
445
446 if (gl->gl_state != LM_ST_UNLOCKED &&
447 test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) {
Steven Whitehousefeaa7bb2006-06-14 15:32:57 -0400448 gfs2_meta_cache_flush(GFS2_I(sdp->sd_jdesc->jd_inode));
David Teiglandb3b94fa2006-01-16 16:50:04 +0000449 j_gl->gl_ops->go_inval(j_gl, DIO_METADATA | DIO_DATA);
450
451 error = gfs2_find_jhead(sdp->sd_jdesc, &head);
452 if (error)
453 gfs2_consist(sdp);
454 if (!(head.lh_flags & GFS2_LOG_HEAD_UNMOUNT))
455 gfs2_consist(sdp);
456
457 /* Initialize some head of the log stuff */
458 if (!test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
459 sdp->sd_log_sequence = head.lh_sequence + 1;
460 gfs2_log_pointers_init(sdp, head.lh_blkno);
461 }
462 }
463}
464
465/**
466 * trans_go_drop_th - unlock the transaction glock
467 * @gl: the glock
468 *
469 * We want to sync the device even with localcaching. Remember
470 * that localcaching journal replay only marks buffers dirty.
471 */
472
473static void trans_go_drop_th(struct gfs2_glock *gl)
474{
475 struct gfs2_sbd *sdp = gl->gl_sbd;
476
477 if (test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) {
478 gfs2_meta_syncfs(sdp);
479 gfs2_log_shutdown(sdp);
480 }
481
482 gfs2_glock_drop_th(gl);
483}
484
485/**
486 * quota_go_demote_ok - Check to see if it's ok to unlock a quota glock
487 * @gl: the glock
488 *
489 * Returns: 1 if it's ok
490 */
491
492static int quota_go_demote_ok(struct gfs2_glock *gl)
493{
494 return !atomic_read(&gl->gl_lvb_count);
495}
496
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400497const struct gfs2_glock_operations gfs2_meta_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000498 .go_xmote_th = gfs2_glock_xmote_th,
499 .go_drop_th = gfs2_glock_drop_th,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400500 .go_type = LM_TYPE_META,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000501};
502
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400503const struct gfs2_glock_operations gfs2_inode_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000504 .go_xmote_th = inode_go_xmote_th,
505 .go_xmote_bh = inode_go_xmote_bh,
506 .go_drop_th = inode_go_drop_th,
507 .go_sync = inode_go_sync,
508 .go_inval = inode_go_inval,
509 .go_demote_ok = inode_go_demote_ok,
510 .go_lock = inode_go_lock,
511 .go_unlock = inode_go_unlock,
512 .go_greedy = inode_greedy,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400513 .go_type = LM_TYPE_INODE,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000514};
515
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400516const struct gfs2_glock_operations gfs2_rgrp_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000517 .go_xmote_th = gfs2_glock_xmote_th,
518 .go_drop_th = gfs2_glock_drop_th,
519 .go_sync = meta_go_sync,
520 .go_inval = meta_go_inval,
521 .go_demote_ok = rgrp_go_demote_ok,
522 .go_lock = rgrp_go_lock,
523 .go_unlock = rgrp_go_unlock,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400524 .go_type = LM_TYPE_RGRP,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000525};
526
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400527const struct gfs2_glock_operations gfs2_trans_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000528 .go_xmote_th = trans_go_xmote_th,
529 .go_xmote_bh = trans_go_xmote_bh,
530 .go_drop_th = trans_go_drop_th,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400531 .go_type = LM_TYPE_NONDISK,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000532};
533
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400534const struct gfs2_glock_operations gfs2_iopen_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000535 .go_xmote_th = gfs2_glock_xmote_th,
536 .go_drop_th = gfs2_glock_drop_th,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400537 .go_type = LM_TYPE_IOPEN,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000538};
539
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400540const struct gfs2_glock_operations gfs2_flock_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000541 .go_xmote_th = gfs2_glock_xmote_th,
542 .go_drop_th = gfs2_glock_drop_th,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400543 .go_type = LM_TYPE_FLOCK,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000544};
545
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400546const struct gfs2_glock_operations gfs2_nondisk_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000547 .go_xmote_th = gfs2_glock_xmote_th,
548 .go_drop_th = gfs2_glock_drop_th,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400549 .go_type = LM_TYPE_NONDISK,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000550};
551
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400552const struct gfs2_glock_operations gfs2_quota_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000553 .go_xmote_th = gfs2_glock_xmote_th,
554 .go_drop_th = gfs2_glock_drop_th,
555 .go_demote_ok = quota_go_demote_ok,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400556 .go_type = LM_TYPE_QUOTA,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000557};
558
Steven Whitehouse8fb4b532006-08-30 09:30:00 -0400559const struct gfs2_glock_operations gfs2_journal_glops = {
David Teiglandb3b94fa2006-01-16 16:50:04 +0000560 .go_xmote_th = gfs2_glock_xmote_th,
561 .go_drop_th = gfs2_glock_drop_th,
Steven Whitehouseea67eed2006-09-05 10:53:09 -0400562 .go_type = LM_TYPE_JOURNAL,
David Teiglandb3b94fa2006-01-16 16:50:04 +0000563};
564