On Sun, Apr 07, 2024 at 09:11:20PM +0100, Matthew Wilcox (Oracle) wrote: > -static inline bool is_file_hugepages(struct file *file) > +static inline bool is_file_hugepages(const struct file *file) > { > - if (file->f_op == &hugetlbfs_file_operations) > - return true; > - > - return is_file_shm_hugepages(file); > + return file->f_op->fop_flags & FOP_HUGE_PAGES; > } Extra cacheline to pull can be costly on a sufficiently hot path...