From patchwork Mon Sep 9 20:21:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jon ernst X-Patchwork-Id: 273707 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 3365E2C0117 for ; Tue, 10 Sep 2013 06:21:24 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755301Ab3IIUVX (ORCPT ); Mon, 9 Sep 2013 16:21:23 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:58184 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754649Ab3IIUVX (ORCPT ); Mon, 9 Sep 2013 16:21:23 -0400 Received: by mail-wi0-f175.google.com with SMTP id ez12so3947917wid.2 for ; Mon, 09 Sep 2013 13:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5W+vRcp4a5/oz/px2/51AyCcdWfQWvxo2cRVzM0OP5s=; b=GbfD1deCY4XIyV360t2verHA7GHyeQJ5vRZPWbw/C33JCdoBx9duupMVDbMe/jDOw3 o1FyYBZvbUn4Ua03oZxeUzlIKTykFT9RJYphT23YVh2A1StjbpHaEm1Kahfz0xfNn/GU 3go+3jxdxrB+y9w6uQsKMjPYUJEU3g9OxIrXtgNlTVYUHRSH+J5AfekZIB71cAwMLorp W48nDx8emNFV8allUOkWP+jWKq9U2FQq8KDUFSA/yDIlfl7YthV9bBG/AqtdMKZAfcp3 krc6PA7AQjNweAokk4lAkOl1sD5IXTonSOTK466YR4WyEvnDyfLfOj7JDDU/qyV6pHwf CkSg== MIME-Version: 1.0 X-Received: by 10.180.76.48 with SMTP id h16mr9942254wiw.32.1378758081929; Mon, 09 Sep 2013 13:21:21 -0700 (PDT) Received: by 10.180.187.75 with HTTP; Mon, 9 Sep 2013 13:21:21 -0700 (PDT) Date: Mon, 9 Sep 2013 20:21:21 +0000 Message-ID: Subject: [PATCH] make new_inode call a little bit clearer. From: jon ernst To: Zheng Liu , linux-ext4@vger.kernel.org Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Zheng, on e2fsprog pu branch, I know it not worth to commit this alone, maybe you combine with you future commit later. thank you! Best, Jon --- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c index ea3736c..4bf19c1 100644 --- a/lib/ext2fs/inline_data.c +++ b/lib/ext2fs/inline_data.c @@ -933,7 +933,7 @@ static errcode_t test_file(ext2_filsys fs) char *buf, *cmpbuf; int inline_size; - retval = ext2fs_new_inode(fs, 2, 010755, 0, &newfile); + retval = ext2fs_new_inode(fs, EXT2_ROOT_INO, 010755, 0, &newfile); if (retval) { com_err("test_file", retval, "While creating a new file");