]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor xfs_iomap_prealloc_size
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 23 May 2020 16:43:30 +0000 (09:43 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 May 2020 15:49:28 +0000 (08:49 -0700)
commit9af6f67d049b7b3b3432881225d45b6ee0a8b7ce
treed8845cd9f923caeb56764a9301ba03b14ba758fc
parent1d39d33bcfc5d23652011e2c6158ee6cb9372761
xfs: refactor xfs_iomap_prealloc_size

Refactor xfs_iomap_prealloc_size to be the function that dynamically
computes the per-file preallocation size by moving the allocsize= case
to the caller.  Break up the huge comment preceding the function to
annotate the relevant parts of the code, and remove the impossible
check_writeio case.

Suggested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_iomap.c