File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -3197,14 +3197,6 @@ static struct file *do_sync_mmap_readahead(struct vm_fault *vmf)
3197
3197
unsigned long vm_flags = vmf -> vma -> vm_flags ;
3198
3198
unsigned int mmap_miss ;
3199
3199
3200
- /*
3201
- * If we have pre-content watches we need to disable readahead to make
3202
- * sure that we don't populate our mapping with 0 filled pages that we
3203
- * never emitted an event for.
3204
- */
3205
- if (unlikely (FMODE_FSNOTIFY_HSM (file -> f_mode )))
3206
- return fpin ;
3207
-
3208
3200
#ifdef CONFIG_TRANSPARENT_HUGEPAGE
3209
3201
/* Use the readahead code, even if readahead is disabled */
3210
3202
if ((vm_flags & VM_HUGEPAGE ) && HPAGE_PMD_ORDER <= MAX_PAGECACHE_ORDER ) {
@@ -3273,10 +3265,6 @@ static struct file *do_async_mmap_readahead(struct vm_fault *vmf,
3273
3265
struct file * fpin = NULL ;
3274
3266
unsigned int mmap_miss ;
3275
3267
3276
- /* See comment in do_sync_mmap_readahead. */
3277
- if (unlikely (FMODE_FSNOTIFY_HSM (file -> f_mode )))
3278
- return fpin ;
3279
-
3280
3268
/* If we don't want any read-ahead, don't bother */
3281
3269
if (vmf -> vma -> vm_flags & VM_RAND_READ || !ra -> ra_pages )
3282
3270
return fpin ;
Original file line number Diff line number Diff line change 128
128
#include <linux/blk-cgroup.h>
129
129
#include <linux/fadvise.h>
130
130
#include <linux/sched/mm.h>
131
- #include <linux/fsnotify.h>
132
131
133
132
#include "internal.h"
134
133
@@ -558,15 +557,6 @@ void page_cache_sync_ra(struct readahead_control *ractl,
558
557
unsigned long max_pages , contig_count ;
559
558
pgoff_t prev_index , miss ;
560
559
561
- /*
562
- * If we have pre-content watches we need to disable readahead to make
563
- * sure that we don't find 0 filled pages in cache that we never emitted
564
- * events for. Filesystems supporting HSM must make sure to not call
565
- * this function with ractl->file unset for files handled by HSM.
566
- */
567
- if (ractl -> file && unlikely (FMODE_FSNOTIFY_HSM (ractl -> file -> f_mode )))
568
- return ;
569
-
570
560
/*
571
561
* Even if readahead is disabled, issue this request as readahead
572
562
* as we'll need it to satisfy the requested range. The forced
@@ -645,10 +635,6 @@ void page_cache_async_ra(struct readahead_control *ractl,
645
635
if (!ra -> ra_pages )
646
636
return ;
647
637
648
- /* See the comment in page_cache_sync_ra. */
649
- if (ractl -> file && unlikely (FMODE_FSNOTIFY_HSM (ractl -> file -> f_mode )))
650
- return ;
651
-
652
638
/*
653
639
* Same bit is used for PG_readahead and PG_reclaim.
654
640
*/
You can’t perform that action at this time.
0 commit comments