continue;
/*
- * Unwritten extents that have data in the page cache covering
- * them can be identified by the BH_Unwritten state flag.
- * Pages with multiple buffers might have a mix of holes, data
- * and unwritten extents - any buffer with valid data in it
- * should have BH_Uptodate flag set on it.
+ * Any buffer with valid data in it should have BH_Uptodate set.
*/
-
- if ((buffer_unwritten(bh) || buffer_uptodate(bh)) == seek_data)
+ if (buffer_uptodate(bh) == seek_data)
return lastoff;
lastoff = offset;
* 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.
*/