]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: ignore non-shared or non-data blocks in xfs_file_dirty
authorChristoph Hellwig <hch@lst.de>
Fri, 18 Oct 2019 23:41:34 +0000 (16:41 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 15:51:59 +0000 (08:51 -0700)
commitf0986a8d3e90e2315d7816bf200a66bab24103b5
tree054b216406d4302b620ab981e700a7ba82a25b07
parent45d3e611579bf44ce3e53fdec9d9a4a1f1158737
iomap: ignore non-shared or non-data blocks in xfs_file_dirty

xfs_file_dirty is used to unshare reflink blocks.  Rename the function
to xfs_file_unshare to better document that purpose, and skip iomaps
that are not shared and don't need zeroing.  This will allow to simplify
the caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap/buffered-io.c
fs/xfs/xfs_reflink.c
include/linux/iomap.h