]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remove the di_dmevmask and di_dmstate fields from struct xfs_icdinode
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Mar 2021 18:11:38 +0000 (11:11 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 Apr 2021 21:37:03 +0000 (14:37 -0700)
commit3c3d3065c32d259dc8b4d79aeddb3ffb1ec65513
treed33f9c76a931fff692c597900a70f06e49850d9e
parent23e9c8b4dde41e6be5662bef9e5288408b6d2560
xfs: remove the di_dmevmask and di_dmstate fields from struct xfs_icdinode

The legacy DMAPI fields were never set by upstream Linux XFS, and have no
way to be read using the kernel APIs.  So instead of bloating the in-core
inode for them just copy them from the on-disk inode into the log when
logging the inode.  The only caveat is that we need to make sure to zero
the fields for newly read or deleted inodes, which is solved using a new
flag in the inode.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/libxfs/xfs_inode_buf.h
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_log_recover.c