summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorShani Moideen <shani.moideen@wipro.com>2007-06-11 06:08:19 +0200
committerMark Fasheh <mark.fasheh@oracle.com>2007-07-11 02:19:52 +0200
commit5fb0f7f010ba07e373c30c3e99b0efd868c6c977 (patch)
tree41c18e9921c409d939b6557ffa16411d44b64b18 /fs
parent[PATCH] ocfs2: use list_for_each_entry where benefical (diff)
downloadlinux-5fb0f7f010ba07e373c30c3e99b0efd868c6c977.tar.xz
linux-5fb0f7f010ba07e373c30c3e99b0efd868c6c977.zip
[KJ PATCH] Replacing memset(<addr>,0,PAGE_SIZE) with clear_page() in fs/ocfs2/dlm/dlmrecovery.c
Replacing memset(<addr>,0,PAGE_SIZE) with clear_page() in fs/ocfs2/dlm/dlmrecovery.c Signed-off-by: Shani Moideen <shani.moideen@wipro.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs')
-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,
u8 flags, u8 master)
{
/* mres here is one full page */
- memset(mres, 0, PAGE_SIZE);
+ clear_page(mres);
mres->lockname_len = namelen;
memcpy(mres->lockname, lockname, namelen);
mres->num_locks = 0;