gfs2: Automatically set GFS2_DIF_SYSTEM flag on system files
authorAbhi Das <adas@redhat.com>
Tue, 10 Nov 2015 21:07:26 +0000 (15:07 -0600)
committerBob Peterson <rpeterso@redhat.com>
Tue, 10 Nov 2015 21:11:06 +0000 (15:11 -0600)
commitacc546fd6108cb17f87f985e4235b68756d7b01f
treed32aca1fb2da92bc056e736ef03eba26d8843d9d
parent42d4ebb42a17754d2e8344dc1aa486119671d0eb
gfs2: Automatically set GFS2_DIF_SYSTEM flag on system files

When new files and directories are created inside a parent directory
we automatically inherit the GFS2_DIF_SYSTEM flag (if set) and assign
it to the new file/dirs.

All new system files/dirs created in the metafs by, say gfs2_jadd,
will have this flag set because they will have parent directories in
the metafs whose GFS2_DIF_SYSTEM flag has already been set (most likely
by a previous mkfs.gfs2)

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/file.c
fs/gfs2/inode.c