Lukas Czerner 56bdf855e6 xfs: Fix per-inode DAX flag inheritance
According to the commit that implemented per-inode DAX flag:
commit 58f88ca2df72 ("xfs: introduce per-inode DAX enablement")
the flag is supposed to act as "inherit flag".

Currently this only works in the situations where parent directory
already has a flag in di_flags set, otherwise inheritance does not
work. This is because setting the XFS_DIFLAG2_DAX flag is done in a
wrong branch designated for di_flags, not di_flags2.

Fix this by moving the code to branch designated for setting di_flags2,
which does test for flags in di_flags2.

Fixes: 58f88ca2df72 ("xfs: introduce per-inode DAX enablement")
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
2017-08-04 13:43:36 -07:00
..
2017-07-10 10:51:53 -07:00
2016-11-30 14:37:15 +11:00
2017-07-10 10:51:53 -07:00
2017-07-10 10:51:53 -07:00
2017-04-03 15:18:17 -07:00
2017-07-10 10:51:53 -07:00
2017-07-10 10:51:53 -07:00
2017-07-10 10:51:53 -07:00
2017-08-04 13:43:36 -07:00
2017-07-10 10:51:53 -07:00
2017-06-27 18:23:21 -07:00
2017-07-10 10:51:53 -07:00
2017-07-10 10:51:53 -07:00
2017-04-03 15:18:17 -07:00
2017-05-06 11:46:16 -07:00