summaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorGou Hao <gouhao@uniontech.com>2025-04-10 15:12:36 +0800
committerChristian Brauner <brauner@kernel.org>2025-04-11 16:02:27 +0200
commit8e3c15ee0d292c413c66fe10201d1b035a0bea72 (patch)
treeaafa6e329d9efdc12ff55fc5e02522d874f15cd9 /rust/helpers/platform.c
parentb463d7fd118b984884da7493ae999a62c9892aa3 (diff)
downloadlinux-8e3c15ee0d292c413c66fe10201d1b035a0bea72.tar.gz
linux-8e3c15ee0d292c413c66fe10201d1b035a0bea72.tar.bz2
linux-8e3c15ee0d292c413c66fe10201d1b035a0bea72.zip
iomap: skip unnecessary ifs_block_is_uptodate check
In iomap_adjust_read_range, i is either the first !uptodate block, or it is past last for the second loop looking for trailing uptodate blocks. Assuming there's no overflow (there's no combination of huge folios and tiny blksize) then yeah, there is no point in retesting that the same block pointed to by i is uptodate since we hold the folio lock so nobody else could have set it uptodate. Signed-off-by: Gou Hao <gouhao@uniontech.com> Link: https://lore.kernel.org/20250410071236.16017-1-gouhao@uniontech.com Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Suggested-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions