diff options
Diffstat (limited to 'fs/ext4/file.c')
-rw-r--r-- | fs/ext4/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 64848b595b24..1bc4523541d6 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c | |||
@@ -464,7 +464,7 @@ static loff_t ext4_seek_data(struct file *file, loff_t offset, loff_t maxsize) | |||
464 | * If there is a delay extent at this offset, | 464 | * If there is a delay extent at this offset, |
465 | * it will be as a data. | 465 | * it will be as a data. |
466 | */ | 466 | */ |
467 | ext4_es_find_delayed_extent(inode, last, &es); | 467 | ext4_es_find_delayed_extent_range(inode, last, last, &es); |
468 | if (es.es_len != 0 && in_range(last, es.es_lblk, es.es_len)) { | 468 | if (es.es_len != 0 && in_range(last, es.es_lblk, es.es_len)) { |
469 | if (last != start) | 469 | if (last != start) |
470 | dataoff = last << blkbits; | 470 | dataoff = last << blkbits; |
@@ -547,7 +547,7 @@ static loff_t ext4_seek_hole(struct file *file, loff_t offset, loff_t maxsize) | |||
547 | * If there is a delay extent at this offset, | 547 | * If there is a delay extent at this offset, |
548 | * we will skip this extent. | 548 | * we will skip this extent. |
549 | */ | 549 | */ |
550 | ext4_es_find_delayed_extent(inode, last, &es); | 550 | ext4_es_find_delayed_extent_range(inode, last, last, &es); |
551 | if (es.es_len != 0 && in_range(last, es.es_lblk, es.es_len)) { | 551 | if (es.es_len != 0 && in_range(last, es.es_lblk, es.es_len)) { |
552 | last = es.es_lblk + es.es_len; | 552 | last = es.es_lblk + es.es_len; |
553 | holeoff = last << blkbits; | 553 | holeoff = last << blkbits; |