From: "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx> Christoph sent me a patch a few months ago called "XFS THP wip". I've redone it based on current linus tree, plus the page_size() / compound_nr() / page_shift() patches currently found in -mm. I fixed the logic bugs that I noticed in his patch and may have introduced some of my own. I have only compile tested this code. Matthew Wilcox (Oracle) (2): iomap: Support large pages xfs: Support large pages fs/iomap/buffered-io.c | 82 ++++++++++++++++++++++++++---------------- fs/xfs/xfs_aops.c | 37 +++++++++---------- include/linux/iomap.h | 2 +- 3 files changed, 72 insertions(+), 49 deletions(-) -- 2.20.1