From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sukadev Bhattiprolu Subject: [PATCH 10/16][cr][v3]: Initialize ->fl_break_time to 0 Date: Tue, 3 Aug 2010 16:11:31 -0700 Message-ID: <1280877097-12377-11-git-send-email-sukadev@linux.vnet.ibm.com> References: <1280877097-12377-1-git-send-email-sukadev@linux.vnet.ibm.com> Cc: Serge Hallyn , Matt Helsley , Dan Smith , John Stultz , Matthew Wilcox , Jamie Lokier , , Containers To: Oren Laadan Return-path: Received: from e2.ny.us.ibm.com ([32.97.182.142]:49197 "EHLO e2.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757863Ab0HCXG6 (ORCPT ); Tue, 3 Aug 2010 19:06:58 -0400 Received: from d01relay06.pok.ibm.com (d01relay06.pok.ibm.com [9.56.227.116]) by e2.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o73Mr9DE020373 for ; Tue, 3 Aug 2010 18:53:09 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay06.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o73N6LrI1626126 for ; Tue, 3 Aug 2010 19:06:21 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o73N6J36003878 for ; Tue, 3 Aug 2010 19:06:20 -0400 In-Reply-To: <1280877097-12377-1-git-send-email-sukadev@linux.vnet.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Explicitly initialize ->fl_break_time to 0 in locks_init_lock() and __locks_copy_lock(). ->fl_break_time will be later used during checkpoint/restart of an applicaton that has a file-lease. Signed-off-by: Sukadev Bhattiprolu --- fs/locks.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index c62ab7f..0bd5af7 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -185,6 +185,7 @@ void locks_init_lock(struct file_lock *fl) fl->fl_flags = 0; fl->fl_type = 0; fl->fl_start = fl->fl_end = 0; + fl->fl_break_time = 0UL; fl->fl_ops = NULL; fl->fl_lmops = NULL; } @@ -228,6 +229,7 @@ void __locks_copy_lock(struct file_lock *new, const struct file_lock *fl) new->fl_type = fl->fl_type; new->fl_start = fl->fl_start; new->fl_end = fl->fl_end; + new->fl_break_time = 0UL; new->fl_ops = NULL; new->fl_lmops = NULL; } -- 1.6.0.4