Skip to content

Commit f7be987

Browse files
author
Andreas Gruenbacher
committed
gfs2: Remove GFS2_MIN_LVB_SIZE define
The dlm lockspace is set up to have lock value blocks of GDLM_LVB_SIZE bytes, and dlm is the only lock manager we support, so there is no point in claiming that the lock value block could have any other size. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 5d43975 commit f7be987

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

fs/gfs2/glock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
826826
memset(&gl->gl_lksb, 0, sizeof(struct dlm_lksb));
827827

828828
if (glops->go_flags & GLOF_LVB) {
829-
gl->gl_lksb.sb_lvbptr = kzalloc(GFS2_MIN_LVB_SIZE, GFP_NOFS);
829+
gl->gl_lksb.sb_lvbptr = kzalloc(GDLM_LVB_SIZE, GFP_NOFS);
830830
if (!gl->gl_lksb.sb_lvbptr) {
831831
kmem_cache_free(cachep, gl);
832832
return -ENOMEM;

fs/gfs2/incore.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,6 @@ struct gfs2_glock {
387387
struct rhash_head gl_node;
388388
};
389389

390-
#define GFS2_MIN_LVB_SIZE 32 /* Min size of LVB that gfs2 supports */
391-
392390
enum {
393391
GIF_INVALID = 0,
394392
GIF_QD_LOCKED = 1,

0 commit comments

Comments
 (0)