glops.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. /*
  2. * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
  3. * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
  4. *
  5. * This copyrighted material is made available to anyone wishing to use,
  6. * modify, copy, or redistribute it subject to the terms and conditions
  7. * of the GNU General Public License version 2.
  8. */
  9. #include <linux/spinlock.h>
  10. #include <linux/completion.h>
  11. #include <linux/buffer_head.h>
  12. #include <linux/gfs2_ondisk.h>
  13. #include <linux/bio.h>
  14. #include <linux/posix_acl.h>
  15. #include "gfs2.h"
  16. #include "incore.h"
  17. #include "bmap.h"
  18. #include "glock.h"
  19. #include "glops.h"
  20. #include "inode.h"
  21. #include "log.h"
  22. #include "meta_io.h"
  23. #include "recovery.h"
  24. #include "rgrp.h"
  25. #include "util.h"
  26. #include "trans.h"
  27. #include "dir.h"
  28. /**
  29. * __gfs2_ail_flush - remove all buffers for a given lock from the AIL
  30. * @gl: the glock
  31. *
  32. * None of the buffers should be dirty, locked, or pinned.
  33. */
  34. static void __gfs2_ail_flush(struct gfs2_glock *gl)
  35. {
  36. struct gfs2_sbd *sdp = gl->gl_sbd;
  37. struct list_head *head = &gl->gl_ail_list;
  38. struct gfs2_bufdata *bd;
  39. struct buffer_head *bh;
  40. spin_lock(&sdp->sd_ail_lock);
  41. while (!list_empty(head)) {
  42. bd = list_entry(head->next, struct gfs2_bufdata,
  43. bd_ail_gl_list);
  44. bh = bd->bd_bh;
  45. gfs2_remove_from_ail(bd);
  46. bd->bd_bh = NULL;
  47. bh->b_private = NULL;
  48. spin_unlock(&sdp->sd_ail_lock);
  49. bd->bd_blkno = bh->b_blocknr;
  50. gfs2_log_lock(sdp);
  51. gfs2_assert_withdraw(sdp, !buffer_busy(bh));
  52. gfs2_trans_add_revoke(sdp, bd);
  53. gfs2_log_unlock(sdp);
  54. spin_lock(&sdp->sd_ail_lock);
  55. }
  56. gfs2_assert_withdraw(sdp, !atomic_read(&gl->gl_ail_count));
  57. spin_unlock(&sdp->sd_ail_lock);
  58. }
  59. static void gfs2_ail_empty_gl(struct gfs2_glock *gl)
  60. {
  61. struct gfs2_sbd *sdp = gl->gl_sbd;
  62. struct gfs2_trans tr;
  63. memset(&tr, 0, sizeof(tr));
  64. tr.tr_revokes = atomic_read(&gl->gl_ail_count);
  65. if (!tr.tr_revokes)
  66. return;
  67. /* A shortened, inline version of gfs2_trans_begin() */
  68. tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64));
  69. tr.tr_ip = (unsigned long)__builtin_return_address(0);
  70. INIT_LIST_HEAD(&tr.tr_list_buf);
  71. gfs2_log_reserve(sdp, tr.tr_reserved);
  72. BUG_ON(current->journal_info);
  73. current->journal_info = &tr;
  74. __gfs2_ail_flush(gl);
  75. gfs2_trans_end(sdp);
  76. gfs2_log_flush(sdp, NULL);
  77. }
  78. void gfs2_ail_flush(struct gfs2_glock *gl)
  79. {
  80. struct gfs2_sbd *sdp = gl->gl_sbd;
  81. unsigned int revokes = atomic_read(&gl->gl_ail_count);
  82. int ret;
  83. if (!revokes)
  84. return;
  85. ret = gfs2_trans_begin(sdp, 0, revokes);
  86. if (ret)
  87. return;
  88. __gfs2_ail_flush(gl);
  89. gfs2_trans_end(sdp);
  90. gfs2_log_flush(sdp, NULL);
  91. }
  92. /**
  93. * rgrp_go_sync - sync out the metadata for this glock
  94. * @gl: the glock
  95. *
  96. * Called when demoting or unlocking an EX glock. We must flush
  97. * to disk all dirty buffers/pages relating to this glock, and must not
  98. * not return to caller to demote/unlock the glock until I/O is complete.
  99. */
  100. static void rgrp_go_sync(struct gfs2_glock *gl)
  101. {
  102. struct address_space *metamapping = gfs2_glock2aspace(gl);
  103. int error;
  104. if (!test_and_clear_bit(GLF_DIRTY, &gl->gl_flags))
  105. return;
  106. BUG_ON(gl->gl_state != LM_ST_EXCLUSIVE);
  107. gfs2_log_flush(gl->gl_sbd, gl);
  108. filemap_fdatawrite(metamapping);
  109. error = filemap_fdatawait(metamapping);
  110. mapping_set_error(metamapping, error);
  111. gfs2_ail_empty_gl(gl);
  112. }
  113. /**
  114. * rgrp_go_inval - invalidate the metadata for this glock
  115. * @gl: the glock
  116. * @flags:
  117. *
  118. * We never used LM_ST_DEFERRED with resource groups, so that we
  119. * should always see the metadata flag set here.
  120. *
  121. */
  122. static void rgrp_go_inval(struct gfs2_glock *gl, int flags)
  123. {
  124. struct address_space *mapping = gfs2_glock2aspace(gl);
  125. BUG_ON(!(flags & DIO_METADATA));
  126. gfs2_assert_withdraw(gl->gl_sbd, !atomic_read(&gl->gl_ail_count));
  127. truncate_inode_pages(mapping, 0);
  128. if (gl->gl_object) {
  129. struct gfs2_rgrpd *rgd = (struct gfs2_rgrpd *)gl->gl_object;
  130. rgd->rd_flags &= ~GFS2_RDF_UPTODATE;
  131. }
  132. }
  133. /**
  134. * inode_go_sync - Sync the dirty data and/or metadata for an inode glock
  135. * @gl: the glock protecting the inode
  136. *
  137. */
  138. static void inode_go_sync(struct gfs2_glock *gl)
  139. {
  140. struct gfs2_inode *ip = gl->gl_object;
  141. struct address_space *metamapping = gfs2_glock2aspace(gl);
  142. int error;
  143. if (ip && !S_ISREG(ip->i_inode.i_mode))
  144. ip = NULL;
  145. if (ip && test_and_clear_bit(GIF_SW_PAGED, &ip->i_flags))
  146. unmap_shared_mapping_range(ip->i_inode.i_mapping, 0, 0);
  147. if (!test_and_clear_bit(GLF_DIRTY, &gl->gl_flags))
  148. return;
  149. BUG_ON(gl->gl_state != LM_ST_EXCLUSIVE);
  150. gfs2_log_flush(gl->gl_sbd, gl);
  151. filemap_fdatawrite(metamapping);
  152. if (ip) {
  153. struct address_space *mapping = ip->i_inode.i_mapping;
  154. filemap_fdatawrite(mapping);
  155. error = filemap_fdatawait(mapping);
  156. mapping_set_error(mapping, error);
  157. }
  158. error = filemap_fdatawait(metamapping);
  159. mapping_set_error(metamapping, error);
  160. gfs2_ail_empty_gl(gl);
  161. /*
  162. * Writeback of the data mapping may cause the dirty flag to be set
  163. * so we have to clear it again here.
  164. */
  165. smp_mb__before_clear_bit();
  166. clear_bit(GLF_DIRTY, &gl->gl_flags);
  167. }
  168. /**
  169. * inode_go_inval - prepare a inode glock to be released
  170. * @gl: the glock
  171. * @flags:
  172. *
  173. * Normally we invlidate everything, but if we are moving into
  174. * LM_ST_DEFERRED from LM_ST_SHARED or LM_ST_EXCLUSIVE then we
  175. * can keep hold of the metadata, since it won't have changed.
  176. *
  177. */
  178. static void inode_go_inval(struct gfs2_glock *gl, int flags)
  179. {
  180. struct gfs2_inode *ip = gl->gl_object;
  181. gfs2_assert_withdraw(gl->gl_sbd, !atomic_read(&gl->gl_ail_count));
  182. if (flags & DIO_METADATA) {
  183. struct address_space *mapping = gfs2_glock2aspace(gl);
  184. truncate_inode_pages(mapping, 0);
  185. if (ip) {
  186. set_bit(GIF_INVALID, &ip->i_flags);
  187. forget_all_cached_acls(&ip->i_inode);
  188. gfs2_dir_hash_inval(ip);
  189. }
  190. }
  191. if (ip == GFS2_I(gl->gl_sbd->sd_rindex)) {
  192. gfs2_log_flush(gl->gl_sbd, NULL);
  193. gl->gl_sbd->sd_rindex_uptodate = 0;
  194. }
  195. if (ip && S_ISREG(ip->i_inode.i_mode))
  196. truncate_inode_pages(ip->i_inode.i_mapping, 0);
  197. }
  198. /**
  199. * inode_go_demote_ok - Check to see if it's ok to unlock an inode glock
  200. * @gl: the glock
  201. *
  202. * Returns: 1 if it's ok
  203. */
  204. static int inode_go_demote_ok(const struct gfs2_glock *gl)
  205. {
  206. struct gfs2_sbd *sdp = gl->gl_sbd;
  207. struct gfs2_holder *gh;
  208. if (sdp->sd_jindex == gl->gl_object || sdp->sd_rindex == gl->gl_object)
  209. return 0;
  210. if (!list_empty(&gl->gl_holders)) {
  211. gh = list_entry(gl->gl_holders.next, struct gfs2_holder, gh_list);
  212. if (gh->gh_list.next != &gl->gl_holders)
  213. return 0;
  214. }
  215. return 1;
  216. }
  217. /**
  218. * gfs2_set_nlink - Set the inode's link count based on on-disk info
  219. * @inode: The inode in question
  220. * @nlink: The link count
  221. *
  222. * If the link count has hit zero, it must never be raised, whatever the
  223. * on-disk inode might say. When new struct inodes are created the link
  224. * count is set to 1, so that we can safely use this test even when reading
  225. * in on disk information for the first time.
  226. */
  227. static void gfs2_set_nlink(struct inode *inode, u32 nlink)
  228. {
  229. /*
  230. * We will need to review setting the nlink count here in the
  231. * light of the forthcoming ro bind mount work. This is a reminder
  232. * to do that.
  233. */
  234. if ((inode->i_nlink != nlink) && (inode->i_nlink != 0)) {
  235. if (nlink == 0)
  236. clear_nlink(inode);
  237. else
  238. inode->i_nlink = nlink;
  239. }
  240. }
  241. static int gfs2_dinode_in(struct gfs2_inode *ip, const void *buf)
  242. {
  243. const struct gfs2_dinode *str = buf;
  244. struct timespec atime;
  245. u16 height, depth;
  246. if (unlikely(ip->i_no_addr != be64_to_cpu(str->di_num.no_addr)))
  247. goto corrupt;
  248. ip->i_no_formal_ino = be64_to_cpu(str->di_num.no_formal_ino);
  249. ip->i_inode.i_mode = be32_to_cpu(str->di_mode);
  250. ip->i_inode.i_rdev = 0;
  251. switch (ip->i_inode.i_mode & S_IFMT) {
  252. case S_IFBLK:
  253. case S_IFCHR:
  254. ip->i_inode.i_rdev = MKDEV(be32_to_cpu(str->di_major),
  255. be32_to_cpu(str->di_minor));
  256. break;
  257. };
  258. ip->i_inode.i_uid = be32_to_cpu(str->di_uid);
  259. ip->i_inode.i_gid = be32_to_cpu(str->di_gid);
  260. gfs2_set_nlink(&ip->i_inode, be32_to_cpu(str->di_nlink));
  261. i_size_write(&ip->i_inode, be64_to_cpu(str->di_size));
  262. gfs2_set_inode_blocks(&ip->i_inode, be64_to_cpu(str->di_blocks));
  263. atime.tv_sec = be64_to_cpu(str->di_atime);
  264. atime.tv_nsec = be32_to_cpu(str->di_atime_nsec);
  265. if (timespec_compare(&ip->i_inode.i_atime, &atime) < 0)
  266. ip->i_inode.i_atime = atime;
  267. ip->i_inode.i_mtime.tv_sec = be64_to_cpu(str->di_mtime);
  268. ip->i_inode.i_mtime.tv_nsec = be32_to_cpu(str->di_mtime_nsec);
  269. ip->i_inode.i_ctime.tv_sec = be64_to_cpu(str->di_ctime);
  270. ip->i_inode.i_ctime.tv_nsec = be32_to_cpu(str->di_ctime_nsec);
  271. ip->i_goal = be64_to_cpu(str->di_goal_meta);
  272. ip->i_generation = be64_to_cpu(str->di_generation);
  273. ip->i_diskflags = be32_to_cpu(str->di_flags);
  274. gfs2_set_inode_flags(&ip->i_inode);
  275. height = be16_to_cpu(str->di_height);
  276. if (unlikely(height > GFS2_MAX_META_HEIGHT))
  277. goto corrupt;
  278. ip->i_height = (u8)height;
  279. depth = be16_to_cpu(str->di_depth);
  280. if (unlikely(depth > GFS2_DIR_MAX_DEPTH))
  281. goto corrupt;
  282. ip->i_depth = (u8)depth;
  283. ip->i_entries = be32_to_cpu(str->di_entries);
  284. ip->i_eattr = be64_to_cpu(str->di_eattr);
  285. if (S_ISREG(ip->i_inode.i_mode))
  286. gfs2_set_aops(&ip->i_inode);
  287. return 0;
  288. corrupt:
  289. gfs2_consist_inode(ip);
  290. return -EIO;
  291. }
  292. /**
  293. * gfs2_inode_refresh - Refresh the incore copy of the dinode
  294. * @ip: The GFS2 inode
  295. *
  296. * Returns: errno
  297. */
  298. int gfs2_inode_refresh(struct gfs2_inode *ip)
  299. {
  300. struct buffer_head *dibh;
  301. int error;
  302. error = gfs2_meta_inode_buffer(ip, &dibh);
  303. if (error)
  304. return error;
  305. if (gfs2_metatype_check(GFS2_SB(&ip->i_inode), dibh, GFS2_METATYPE_DI)) {
  306. brelse(dibh);
  307. return -EIO;
  308. }
  309. error = gfs2_dinode_in(ip, dibh->b_data);
  310. brelse(dibh);
  311. clear_bit(GIF_INVALID, &ip->i_flags);
  312. return error;
  313. }
  314. /**
  315. * inode_go_lock - operation done after an inode lock is locked by a process
  316. * @gl: the glock
  317. * @flags:
  318. *
  319. * Returns: errno
  320. */
  321. static int inode_go_lock(struct gfs2_holder *gh)
  322. {
  323. struct gfs2_glock *gl = gh->gh_gl;
  324. struct gfs2_sbd *sdp = gl->gl_sbd;
  325. struct gfs2_inode *ip = gl->gl_object;
  326. int error = 0;
  327. if (!ip || (gh->gh_flags & GL_SKIP))
  328. return 0;
  329. if (test_bit(GIF_INVALID, &ip->i_flags)) {
  330. error = gfs2_inode_refresh(ip);
  331. if (error)
  332. return error;
  333. }
  334. if ((ip->i_diskflags & GFS2_DIF_TRUNC_IN_PROG) &&
  335. (gl->gl_state == LM_ST_EXCLUSIVE) &&
  336. (gh->gh_state == LM_ST_EXCLUSIVE)) {
  337. spin_lock(&sdp->sd_trunc_lock);
  338. if (list_empty(&ip->i_trunc_list))
  339. list_add(&sdp->sd_trunc_list, &ip->i_trunc_list);
  340. spin_unlock(&sdp->sd_trunc_lock);
  341. wake_up(&sdp->sd_quota_wait);
  342. return 1;
  343. }
  344. return error;
  345. }
  346. /**
  347. * inode_go_dump - print information about an inode
  348. * @seq: The iterator
  349. * @ip: the inode
  350. *
  351. * Returns: 0 on success, -ENOBUFS when we run out of space
  352. */
  353. static int inode_go_dump(struct seq_file *seq, const struct gfs2_glock *gl)
  354. {
  355. const struct gfs2_inode *ip = gl->gl_object;
  356. if (ip == NULL)
  357. return 0;
  358. gfs2_print_dbg(seq, " I: n:%llu/%llu t:%u f:0x%02lx d:0x%08x s:%llu\n",
  359. (unsigned long long)ip->i_no_formal_ino,
  360. (unsigned long long)ip->i_no_addr,
  361. IF2DT(ip->i_inode.i_mode), ip->i_flags,
  362. (unsigned int)ip->i_diskflags,
  363. (unsigned long long)i_size_read(&ip->i_inode));
  364. return 0;
  365. }
  366. /**
  367. * rgrp_go_lock - operation done after an rgrp lock is locked by
  368. * a first holder on this node.
  369. * @gl: the glock
  370. * @flags:
  371. *
  372. * Returns: errno
  373. */
  374. static int rgrp_go_lock(struct gfs2_holder *gh)
  375. {
  376. return gfs2_rgrp_bh_get(gh->gh_gl->gl_object);
  377. }
  378. /**
  379. * rgrp_go_unlock - operation done before an rgrp lock is unlocked by
  380. * a last holder on this node.
  381. * @gl: the glock
  382. * @flags:
  383. *
  384. */
  385. static void rgrp_go_unlock(struct gfs2_holder *gh)
  386. {
  387. gfs2_rgrp_bh_put(gh->gh_gl->gl_object);
  388. }
  389. /**
  390. * trans_go_sync - promote/demote the transaction glock
  391. * @gl: the glock
  392. * @state: the requested state
  393. * @flags:
  394. *
  395. */
  396. static void trans_go_sync(struct gfs2_glock *gl)
  397. {
  398. struct gfs2_sbd *sdp = gl->gl_sbd;
  399. if (gl->gl_state != LM_ST_UNLOCKED &&
  400. test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) {
  401. gfs2_meta_syncfs(sdp);
  402. gfs2_log_shutdown(sdp);
  403. }
  404. }
  405. /**
  406. * trans_go_xmote_bh - After promoting/demoting the transaction glock
  407. * @gl: the glock
  408. *
  409. */
  410. static int trans_go_xmote_bh(struct gfs2_glock *gl, struct gfs2_holder *gh)
  411. {
  412. struct gfs2_sbd *sdp = gl->gl_sbd;
  413. struct gfs2_inode *ip = GFS2_I(sdp->sd_jdesc->jd_inode);
  414. struct gfs2_glock *j_gl = ip->i_gl;
  415. struct gfs2_log_header_host head;
  416. int error;
  417. if (test_bit(SDF_JOURNAL_LIVE, &sdp->sd_flags)) {
  418. j_gl->gl_ops->go_inval(j_gl, DIO_METADATA);
  419. error = gfs2_find_jhead(sdp->sd_jdesc, &head);
  420. if (error)
  421. gfs2_consist(sdp);
  422. if (!(head.lh_flags & GFS2_LOG_HEAD_UNMOUNT))
  423. gfs2_consist(sdp);
  424. /* Initialize some head of the log stuff */
  425. if (!test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
  426. sdp->sd_log_sequence = head.lh_sequence + 1;
  427. gfs2_log_pointers_init(sdp, head.lh_blkno);
  428. }
  429. }
  430. return 0;
  431. }
  432. /**
  433. * trans_go_demote_ok
  434. * @gl: the glock
  435. *
  436. * Always returns 0
  437. */
  438. static int trans_go_demote_ok(const struct gfs2_glock *gl)
  439. {
  440. return 0;
  441. }
  442. /**
  443. * iopen_go_callback - schedule the dcache entry for the inode to be deleted
  444. * @gl: the glock
  445. *
  446. * gl_spin lock is held while calling this
  447. */
  448. static void iopen_go_callback(struct gfs2_glock *gl)
  449. {
  450. struct gfs2_inode *ip = (struct gfs2_inode *)gl->gl_object;
  451. struct gfs2_sbd *sdp = gl->gl_sbd;
  452. if (sdp->sd_vfs->s_flags & MS_RDONLY)
  453. return;
  454. if (gl->gl_demote_state == LM_ST_UNLOCKED &&
  455. gl->gl_state == LM_ST_SHARED && ip) {
  456. gfs2_glock_hold(gl);
  457. if (queue_work(gfs2_delete_workqueue, &gl->gl_delete) == 0)
  458. gfs2_glock_put_nolock(gl);
  459. }
  460. }
  461. const struct gfs2_glock_operations gfs2_meta_glops = {
  462. .go_type = LM_TYPE_META,
  463. };
  464. const struct gfs2_glock_operations gfs2_inode_glops = {
  465. .go_xmote_th = inode_go_sync,
  466. .go_inval = inode_go_inval,
  467. .go_demote_ok = inode_go_demote_ok,
  468. .go_lock = inode_go_lock,
  469. .go_dump = inode_go_dump,
  470. .go_type = LM_TYPE_INODE,
  471. .go_min_hold_time = HZ / 5,
  472. .go_flags = GLOF_ASPACE,
  473. };
  474. const struct gfs2_glock_operations gfs2_rgrp_glops = {
  475. .go_xmote_th = rgrp_go_sync,
  476. .go_inval = rgrp_go_inval,
  477. .go_lock = rgrp_go_lock,
  478. .go_unlock = rgrp_go_unlock,
  479. .go_dump = gfs2_rgrp_dump,
  480. .go_type = LM_TYPE_RGRP,
  481. .go_min_hold_time = HZ / 5,
  482. .go_flags = GLOF_ASPACE,
  483. };
  484. const struct gfs2_glock_operations gfs2_trans_glops = {
  485. .go_xmote_th = trans_go_sync,
  486. .go_xmote_bh = trans_go_xmote_bh,
  487. .go_demote_ok = trans_go_demote_ok,
  488. .go_type = LM_TYPE_NONDISK,
  489. };
  490. const struct gfs2_glock_operations gfs2_iopen_glops = {
  491. .go_type = LM_TYPE_IOPEN,
  492. .go_callback = iopen_go_callback,
  493. };
  494. const struct gfs2_glock_operations gfs2_flock_glops = {
  495. .go_type = LM_TYPE_FLOCK,
  496. };
  497. const struct gfs2_glock_operations gfs2_nondisk_glops = {
  498. .go_type = LM_TYPE_NONDISK,
  499. };
  500. const struct gfs2_glock_operations gfs2_quota_glops = {
  501. .go_type = LM_TYPE_QUOTA,
  502. };
  503. const struct gfs2_glock_operations gfs2_journal_glops = {
  504. .go_type = LM_TYPE_JOURNAL,
  505. };
  506. const struct gfs2_glock_operations *gfs2_glops_list[] = {
  507. [LM_TYPE_META] = &gfs2_meta_glops,
  508. [LM_TYPE_INODE] = &gfs2_inode_glops,
  509. [LM_TYPE_RGRP] = &gfs2_rgrp_glops,
  510. [LM_TYPE_IOPEN] = &gfs2_iopen_glops,
  511. [LM_TYPE_FLOCK] = &gfs2_flock_glops,
  512. [LM_TYPE_NONDISK] = &gfs2_nondisk_glops,
  513. [LM_TYPE_QUOTA] = &gfs2_quota_glops,
  514. [LM_TYPE_JOURNAL] = &gfs2_journal_glops,
  515. };