Skip to content

Commit e41d33a

Browse files
Dan Magenheimerjlbec
authored andcommitted
ocfs2: send correct UUID to cleancache initialization
ocfs2: Fix cleancache initialization call to correctly pass uuid As reported by Steven Whitehouse in https://lkml.org/lkml/2011/5/27/221 the ocfs2 volume UUID is incorrectly passed to cleancache. As a result, shared-ephemeral tmem pools will not actually be created; instead they will be private (unshared) which misses out on a major benefit of tmem. Reported-by: Steven Whitehouse <[email protected]> Signed-off-by: Dan Magenheimer <[email protected]> Signed-off-by: Joel Becker <[email protected]>
1 parent b8a0ae5 commit e41d33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ocfs2/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
23602360
mlog_errno(status);
23612361
goto bail;
23622362
}
2363-
cleancache_init_shared_fs((char *)&uuid_net_key, sb);
2363+
cleancache_init_shared_fs((char *)&di->id2.i_super.s_uuid, sb);
23642364

23652365
bail:
23662366
return status;

0 commit comments

Comments
 (0)