From patchwork Mon Mar 21 08:54:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liubo X-Patchwork-Id: 647351 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2L8rWU6000690 for ; Mon, 21 Mar 2011 08:53:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752230Ab1CUIx1 (ORCPT ); Mon, 21 Mar 2011 04:53:27 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:64284 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751623Ab1CUIx0 (ORCPT ); Mon, 21 Mar 2011 04:53:26 -0400 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id B37E5170123; Mon, 21 Mar 2011 16:53:24 +0800 (CST) Received: from mailserver.fnst.cn.fujitus.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id p2L8lIiH011995; Mon, 21 Mar 2011 16:47:19 +0800 Received: from localhost.localdomain ([10.167.225.27]) by mailserver.fnst.cn.fujitus.com (Lotus Domino Release 8.5.1FP4) with ESMTP id 2011032116515692-65827 ; Mon, 21 Mar 2011 16:51:56 +0800 Message-ID: <4D871243.2060001@cn.fujitsu.com> Date: Mon, 21 Mar 2011 16:54:27 +0800 From: liubo User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Linux Btrfs CC: linux-fsdevel , Andreas Dilger , Christoph Hellwig , tytso , Chris Mason Subject: [PATCH 1/2 v2] Btrfs: add datacow flag in inode flag X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-03-21 16:51:56, Serialize by Router on mailserver/fnst(Release 8.5.1FP4|July 25, 2010) at 2011-03-21 16:52:00, Serialize complete at 2011-03-21 16:52:00 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 21 Mar 2011 08:53:32 +0000 (UTC) diff --git a/include/linux/fs.h b/include/linux/fs.h index 63d069b..dbcb47e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -353,6 +353,8 @@ struct inodes_stat_t { #define FS_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/ #define FS_EXTENT_FL 0x00080000 /* Extents */ #define FS_DIRECTIO_FL 0x00100000 /* Use direct i/o */ +#define FS_NOCOW_FL 0x00800000 /* Do not cow file */ +#define FS_COW_FL 0x02000000 /* Cow file */ #define FS_RESERVED_FL 0x80000000 /* reserved for ext2 lib */ #define FS_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */