From patchwork Mon Jul 25 13:02:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Sheng-Hui X-Patchwork-Id: 106658 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6B87BB6F90 for ; Mon, 25 Jul 2011 23:02:40 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750827Ab1GYNCh (ORCPT ); Mon, 25 Jul 2011 09:02:37 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:64103 "EHLO mail-pz0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776Ab1GYNCh (ORCPT ); Mon, 25 Jul 2011 09:02:37 -0400 Received: by pzk37 with SMTP id 37so8482298pzk.1 for ; Mon, 25 Jul 2011 06:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=5yCKV31ht60kteBIjSABCFM7rNFxuJHRTYplOsPvq1E=; b=L0PGtrDpPFI5msY0MUi/QD3ZklKMgQGS1tznwKZPDKZsaqqlbK/qFH8sw57VKF1oWc kYj5XL5RMI8UYE1wdoKDw3P2+TS6PwjHZ/dLbSKZm6UAvsWxnyPuW4U0YExWemN5r1As 44vWRaj1EvzMJptMt8OSpbJMhDwOf583f6NO0= Received: by 10.68.56.132 with SMTP id a4mr7415994pbq.89.1311598956682; Mon, 25 Jul 2011 06:02:36 -0700 (PDT) Received: from [192.168.1.100] ([121.18.126.171]) by mx.google.com with ESMTPS id m7sm4538496pbk.70.2011.07.25.06.02.32 (version=SSLv3 cipher=OTHER); Mon, 25 Jul 2011 06:02:35 -0700 (PDT) Message-ID: <4E2D6961.9000909@gmail.com> Date: Mon, 25 Jul 2011 21:02:25 +0800 From: Wang Sheng-Hui User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: Andrew Morton , Jan Kara , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] jbd: change the field "b_cow_tid" of struct journal_head from type unsigned to tid_t Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org The patch is against 3.0 In the definition of struct journal_head, the comment for the field "unsigned b_cow_tid" says the field tracks the last transaction id in which this buffer has been cowed. In the header part of file journal-head.h, it defines typedef unsigned int tid_t; We should use type tid_t to define transaction id fields. Change the field "b_cow_tid" of struct journal_head from type unsigned to tid_t. Signed-off-by: Wang Sheng-Hui Acked-by: Amir Goldstein --- include/linux/journal-head.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/journal-head.h b/include/linux/journal-head.h index 44e95d0..423cb6d 100644 --- a/include/linux/journal-head.h +++ b/include/linux/journal-head.h @@ -45,7 +45,7 @@ struct journal_head { * has been cowed * [jbd_lock_bh_state()] */ - unsigned b_cow_tid; + tid_t b_cow_tid; /* * Copy of the buffer data frozen for writing to the log.