From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nate Diller Subject: [PATCH 12/13] xfs: use zero_user_page Date: Tue, 10 Apr 2007 20:36:00 -0700 Message-ID: <20070411033600.11000.41337.patchbomb.py@localhost> References: <20070411033600.11000.38285.patchbomb.py@localhost> Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Andrew Morton , Alexander Viro Return-path: Received: from py-out-1112.google.com ([64.233.166.179]:15870 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030358AbXDKDjT (ORCPT ); Tue, 10 Apr 2007 23:39:19 -0400 Received: by py-out-1112.google.com with SMTP id a29so46480pyi for ; Tue, 10 Apr 2007 20:39:19 -0700 (PDT) In-Reply-To: <20070411033600.11000.38285.patchbomb.py@localhost> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Use zero_user_page() instead of the newly deprecated memclear_highpage_flush(). Signed-off-by: Nate Diller --- diff -urpN -X dontdiff linux-2.6.21-rc6-mm1/fs/xfs/linux-2.6/xfs_lrw.c linux-2.6.21-rc6-mm1-test/fs/xfs/linux-2.6/xfs_lrw.c --- linux-2.6.21-rc6-mm1/fs/xfs/linux-2.6/xfs_lrw.c 2007-04-09 17:24:03.000000000 -0700 +++ linux-2.6.21-rc6-mm1-test/fs/xfs/linux-2.6/xfs_lrw.c 2007-04-09 18:18:23.000000000 -0700 @@ -159,7 +159,7 @@ xfs_iozero( if (status) goto unlock; - memclear_highpage_flush(page, offset, bytes); + zero_user_page(page, offset, bytes); status = mapping->a_ops->commit_write(NULL, page, offset, offset + bytes);