aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmrecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/dlm/dlmrecovery.c')
-rw-r--r--fs/ocfs2/dlm/dlmrecovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.c
index 74d276ec276f..a2c33160bfd6 100644
--- a/fs/ocfs2/dlm/dlmrecovery.c
+++ b/fs/ocfs2/dlm/dlmrecovery.c
@@ -1155,7 +1155,7 @@ static void dlm_init_migratable_lockres(struct dlm_migratable_lockres *mres,
1155 u8 flags, u8 master) 1155 u8 flags, u8 master)
1156{ 1156{
1157 /* mres here is one full page */ 1157 /* mres here is one full page */
1158 memset(mres, 0, PAGE_SIZE); 1158 clear_page(mres);
1159 mres->lockname_len = namelen; 1159 mres->lockname_len = namelen;
1160 memcpy(mres->lockname, lockname, namelen); 1160 memcpy(mres->lockname, lockname, namelen);
1161 mres->num_locks = 0; 1161 mres->num_locks = 0;