]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ocfs2: Fix cleancache initialization call to correctly pass uuid
authorDan Magenheimer <dan.magenheimer@oracle.com>
Fri, 21 Oct 2011 06:35:53 +0000 (23:35 -0700)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Fri, 21 Oct 2011 06:35:53 +0000 (23:35 -0700)
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 <swhiteho@redhat.com>
Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
fs/ocfs2/super.c

index a1c0f41e432e1c206ebda1ca609b2f3c898b268b..8b1924a1e3866a854403f1d075bde43b62697c76 100644 (file)
@@ -2374,7 +2374,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
                mlog_errno(status);
                goto bail;
        }
-       cleancache_init_shared_fs((char *)&uuid_net_key, sb);
+       cleancache_init_shared_fs((char *)&di->id2.i_super.s_uuid, sb);
 
 bail:
        return status;