All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Mason <chris.mason@oracle.com>
To: liubo <liubo2009@cn.fujitsu.com>
Cc: Linux Btrfs <linux-btrfs@vger.kernel.org>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>,
	hch@lst.de, "Theodore Tso" <tytso@mit.edu>
Subject: Re: [PATCH 1/2] Btrfs: add datacow flag in inode flag
Date: Tue, 15 Mar 2011 16:26:50 -0400	[thread overview]
Message-ID: <1300220702-sup-5062@think> (raw)
In-Reply-To: <4D6F52DE.5080508@cn.fujitsu.com>

Excerpts from liubo's message of 2011-03-03 03:35:42 -0500:
> 
> For datacow control, the corresponding inode flags are needed.
> This is for the following patch.
> 
> Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
> ---
>  include/linux/fs.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/fs.h b/include/linux/fs.h
> index 63d069b..bef47ff 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            0x01000000 /* Cow file */
>  #define FS_RESERVED_FL            0x80000000 /* reserved for ext2 lib */
>  
>  #define FS_FL_USER_VISIBLE        0x0003DFFF /* User visible flags */

Hi everyone,

I'd like to go ahead and include these for btrfs to use.  Are there
objections or a different preferred interface?

-chris

  reply	other threads:[~2011-03-15 20:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03  8:35 [PATCH 1/2] Btrfs: add datacow flag in inode flag liubo
2011-03-15 20:26 ` Chris Mason [this message]
2011-03-15 20:57   ` Christoph Hellwig
2011-03-15 22:06     ` Andreas Dilger
2011-03-15 23:35       ` Chris Mason
2011-03-16  9:06         ` Amir Goldstein
2011-03-16  9:06           ` Amir Goldstein
2011-03-17  2:10           ` liubo
2011-03-17 14:21             ` Chris Mason
2011-03-17 14:37               ` Amir Goldstein
2011-03-17 14:37                 ` Amir Goldstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1300220702-sup-5062@think \
    --to=chris.mason@oracle.com \
    --cc=hch@lst.de \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=liubo2009@cn.fujitsu.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.