diff options
author | liubo <liubo2009@cn.fujitsu.com> | 2011-03-21 04:54:27 -0400 |
---|---|---|
committer | root <Chris Mason chris.mason@oracle.com> | 2011-03-28 05:37:40 -0400 |
commit | 32471f6e1983922473573da62cbee58699574aa4 (patch) | |
tree | 64f17f694f86f72c6d847d6dceb9eb5f78c20a45 /include/linux/fs.h | |
parent | fc0e4a314e361af3b13d9320e92c64118f9a3e61 (diff) |
Btrfs: add datacow flag in inode flag
For datacow control, the corresponding inode flags are needed.
This is for btrfs use.
v1->v2:
Change FS_COW_FL to another bit due to conflict with the upstream e2fsprogs
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | 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 e38b50a4b9d2..de9dd8119b71 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -364,6 +364,8 @@ struct inodes_stat_t { | |||
364 | #define FS_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/ | 364 | #define FS_TOPDIR_FL 0x00020000 /* Top of directory hierarchies*/ |
365 | #define FS_EXTENT_FL 0x00080000 /* Extents */ | 365 | #define FS_EXTENT_FL 0x00080000 /* Extents */ |
366 | #define FS_DIRECTIO_FL 0x00100000 /* Use direct i/o */ | 366 | #define FS_DIRECTIO_FL 0x00100000 /* Use direct i/o */ |
367 | #define FS_NOCOW_FL 0x00800000 /* Do not cow file */ | ||
368 | #define FS_COW_FL 0x02000000 /* Cow file */ | ||
367 | #define FS_RESERVED_FL 0x80000000 /* reserved for ext2 lib */ | 369 | #define FS_RESERVED_FL 0x80000000 /* reserved for ext2 lib */ |
368 | 370 | ||
369 | #define FS_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */ | 371 | #define FS_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */ |