WSL2-Linux-Kernel/fs/ext4
Ira Weiny 043546e46d fs/ext4: Only change S_DAX on inode load
To prevent complications with in memory inodes we only set S_DAX on
inode load.  FS_XFLAG_DAX can be changed at any time and S_DAX will
change after inode eviction and reload.

Add init bool to ext4_set_inode_flags() to indicate if the inode is
being newly initialized.

Assert that S_DAX is not set on an inode which is just being loaded.

Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>

Link: https://lore.kernel.org/r/20200528150003.828793-6-ira.weiny@intel.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2020-05-28 22:09:47 -04:00
..
Kconfig
Makefile
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c
dir.c
ext4.h fs/ext4: Only change S_DAX on inode load 2020-05-28 22:09:47 -04:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
extents.c
extents_status.c
extents_status.h
file.c
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c fs/ext4: Only change S_DAX on inode load 2020-05-28 22:09:47 -04:00
indirect.c
inline.c
inode-test.c
inode.c fs/ext4: Only change S_DAX on inode load 2020-05-28 22:09:47 -04:00
ioctl.c fs/ext4: Only change S_DAX on inode load 2020-05-28 22:09:47 -04:00
mballoc.c
mballoc.h
migrate.c
mmp.c
move_extent.c
namei.c
page-io.c
readpage.c
resize.c
super.c fs/ext4: Only change S_DAX on inode load 2020-05-28 22:09:47 -04:00
symlink.c
sysfs.c
truncate.h
verity.c fs/ext4: Only change S_DAX on inode load 2020-05-28 22:09:47 -04:00
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c