linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Btrfs: add datacow flag in inode flag
@ 2011-03-03  8:35 liubo
  2011-03-15 20:26 ` Chris Mason
  0 siblings, 1 reply; 9+ messages in thread
From: liubo @ 2011-03-03  8:35 UTC (permalink / raw)
  To: Linux Btrfs; +Cc: linux-fsdevel


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 */
-- 
1.6.5.2

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-17 14:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03  8:35 [PATCH 1/2] Btrfs: add datacow flag in inode flag liubo
2011-03-15 20:26 ` Chris Mason
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-17  2:10           ` liubo
2011-03-17 14:21             ` Chris Mason
2011-03-17 14:37               ` Amir Goldstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).