diff mbox

[04/33] fs: remove the buffer_unwritten check in page_seek_hole_data

Message ID CAHpGcM+i1sAPGLxN9m5tcu973cx-Jr-DU2D7xWYScp7hfpcvnA@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andreas Grünbacher May 17, 2018, 11:33 a.m. UTC
2018-05-09 9:48 GMT+02:00 Christoph Hellwig <hch@lst.de>:
> We only call into this function through the iomap iterators, so we already
> know the buffer is unwritten.  In addition to that we always require the
> uptodate flag that is ORed with the result anyway.

Please update the page_cache_seek_hole_data description as well:


Thanks,
Andreas
diff mbox

Patch

--- a/fs/iomap.c
+++ b/fs/iomap.c
@@ -647,8 +647,8 @@ 
  * Seek for SEEK_DATA / SEEK_HOLE in the page cache.
  *
  * Within unwritten extents, the page cache determines which parts are holes
- * and which are data: unwritten and uptodate buffer heads count as data;
- * everything else counts as a hole.
+ * and which are data: uptodate buffer heads count as data; everything else
+ * counts as a hole.
  *
  * Returns the resulting offset on successs, and -ENOENT otherwise.
  */