aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gfs2_ondisk.h
diff options
context:
space:
mode:
authorSteven Whitehouse <steve@chygwyn.com>2012-05-28 10:26:56 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2012-06-06 06:27:36 -0400
commit23d0bb834e264f38335f19fe601564b8422431e7 (patch)
treeb6c93a163ef1e24cae77d4204c15206375e0d175 /include/linux/gfs2_ondisk.h
parent5407e24229408d7586ee451a384fc13e4a2332be (diff)
GFS2: Add "top dir" flag support
This patch adds support for the "top dir" flag. Currently this is unused but a subsequent patch is planned which will add support for the Orlov allocation policy when allocating subdirectories in a parent with this flag set. In order to ensure backward compatible behaviour, mkfs.gfs2 does not currently tag the root directory with this flag, it must always be set manually. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include/linux/gfs2_ondisk.h')
-rw-r--r--include/linux/gfs2_ondisk.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h
index fa98bdb073b9..e8ccf6ff3b4d 100644
--- a/include/linux/gfs2_ondisk.h
+++ b/include/linux/gfs2_ondisk.h
@@ -214,6 +214,7 @@ enum {
214 gfs2fl_NoAtime = 7, 214 gfs2fl_NoAtime = 7,
215 gfs2fl_Sync = 8, 215 gfs2fl_Sync = 8,
216 gfs2fl_System = 9, 216 gfs2fl_System = 9,
217 gfs2fl_TopLevel = 10,
217 gfs2fl_TruncInProg = 29, 218 gfs2fl_TruncInProg = 29,
218 gfs2fl_InheritDirectio = 30, 219 gfs2fl_InheritDirectio = 30,
219 gfs2fl_InheritJdata = 31, 220 gfs2fl_InheritJdata = 31,
@@ -230,8 +231,9 @@ enum {
230#define GFS2_DIF_NOATIME 0x00000080 231#define GFS2_DIF_NOATIME 0x00000080
231#define GFS2_DIF_SYNC 0x00000100 232#define GFS2_DIF_SYNC 0x00000100
232#define GFS2_DIF_SYSTEM 0x00000200 /* New in gfs2 */ 233#define GFS2_DIF_SYSTEM 0x00000200 /* New in gfs2 */
234#define GFS2_DIF_TOPDIR 0x00000400 /* New in gfs2 */
233#define GFS2_DIF_TRUNC_IN_PROG 0x20000000 /* New in gfs2 */ 235#define GFS2_DIF_TRUNC_IN_PROG 0x20000000 /* New in gfs2 */
234#define GFS2_DIF_INHERIT_DIRECTIO 0x40000000 236#define GFS2_DIF_INHERIT_DIRECTIO 0x40000000 /* only in gfs1 */
235#define GFS2_DIF_INHERIT_JDATA 0x80000000 237#define GFS2_DIF_INHERIT_JDATA 0x80000000
236 238
237struct gfs2_dinode { 239struct gfs2_dinode {