aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
AgeCommit message (Expand)AuthorFilesLines
2022-01-22mm: simplify try_to_unuseChristoph Hellwig1-27/+6
2022-01-15Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-24/+67
2022-01-15mm: drop node from alloc_pages_vmaMichal Hocko1-2/+1
2022-01-15shmem: fix a race between shmem_unused_huge_shrink and shmem_evict_inodeGang Li1-16/+21
2022-01-15mm: shmem: don't truncate page if memory failure happensYang Shi1-6/+45
2022-01-08mm: Use multi-index entries in the page cacheMatthew Wilcox (Oracle)1-11/+8
2022-01-08truncate,shmem: Handle truncates that split large foliosMatthew Wilcox (Oracle)1-63/+45
2022-01-08mm: Convert find_lock_entries() to use a folio_batchMatthew Wilcox (Oracle)1-8/+6
2022-01-08filemap: Return only folios from find_get_entries()Matthew Wilcox (Oracle)1-16/+20
2022-01-08truncate,shmem: Add truncate_inode_folio()Matthew Wilcox (Oracle)1-2/+3
2022-01-08shmem: Convert part of shmem_undo_range() to use a folioMatthew Wilcox (Oracle)1-7/+7
2021-11-17fs: Remove FS_THP_SUPPORTMatthew Wilcox (Oracle)1-1/+2
2021-11-13Revert "mm: shmem: don't truncate page if memory failure happens"Linus Torvalds1-35/+3
2021-11-11Merge tag 'net-5.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-23/+1
2021-11-06Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-7/+37
2021-11-06mm: shmem: don't truncate page if memory failure happensYang Shi1-3/+35
2021-11-06mm/shmem: unconditionally set pte dirty in mfill_atomic_install_ptePeter Xu1-1/+0
2021-11-06mm/smaps: use vma->vm_pgoff directly when counting partial swapPeter Xu1-3/+2
2021-11-03libfs: Move shmem_exchange to simple_rename_exchangeLorenz Bauer1-23/+1
2021-11-01Merge tag 'for-5.16/block-2021-10-29' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+0
2021-10-18mm: remove spurious blkdev.h includesChristoph Hellwig1-1/+0
2021-09-27mm/memcg: Convert mem_cgroup_migrate() to take foliosMatthew Wilcox (Oracle)1-1/+4
2021-09-27mm/memcg: Convert mem_cgroup_charge() to take a folioMatthew Wilcox (Oracle)1-1/+1
2021-09-24mm/shmem.c: fix judgment error in shmem_is_huge()Liu Yuntao1-2/+2
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-148/+123
2021-09-03shmem: shmem_writepage() split unlikely i915 THPHugh Dickins1-1/+13
2021-09-03huge tmpfs: decide stat.st_blksize by shmem_is_huge()Hugh Dickins1-11/+1
2021-09-03huge tmpfs: shmem_is_huge(vma, inode, index)Hugh Dickins1-59/+25
2021-09-03huge tmpfs: SGP_NOALLOC to stop collapse_file() on raceHugh Dickins1-12/+17
2021-09-03huge tmpfs: move shmem_huge_enabled() upwardsHugh Dickins1-37/+35
2021-09-03huge tmpfs: revert shmem's use of transhuge_vma_enabled()Hugh Dickins1-1/+2
2021-09-03huge tmpfs: remove shrinklist addition from shmem_setattr()Hugh Dickins1-19/+0
2021-09-03huge tmpfs: fix split_huge_page() after FALLOC_FL_KEEP_SIZEHugh Dickins1-1/+14
2021-09-03huge tmpfs: fix fallocate(vanilla) advance over huge pagesHugh Dickins1-3/+16
2021-09-03shmem: include header file to declare swap_infoMiaohe Lin1-2/+1
2021-09-03shmem: remove unneeded function forward declarationMiaohe Lin1-3/+0
2021-09-03shmem: remove unneeded header fileMiaohe Lin1-2/+0
2021-09-03shmem: remove unneeded variable retMiaohe Lin1-2/+1
2021-09-03shmem: use raw_spinlock_t for ->stat_lockSebastian Andrzej Siewior1-14/+17
2021-08-30Merge tag 'hole_punch_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-10/+10
2021-08-20Revert "mm/shmem: fix shmem_swapin() race with swapoff"Yang Shi1-13/+1
2021-07-12mm: Fix comments mentioning i_mutexJan Kara1-10/+10
2021-07-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-84/+39
2021-06-30userfaultfd/shmem: modify shmem_mfill_atomic_pte to use install_pte()Axel Rasmussen1-46/+12
2021-06-30userfaultfd/shmem: support minor fault registration for shmemAxel Rasmussen1-1/+11
2021-06-30userfaultfd/shmem: combine shmem_{mcopy_atomic,mfill_zeropage}_pteAxel Rasmussen1-36/+16
2021-06-30mm/huge_memory.c: add missing read-only THP checking in transparent_hugepage_...Miaohe Lin1-2/+1
2021-06-29Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-3/+15
2021-06-29mm: charge active memcg when no mm is setDan Schatzberg1-2/+2
2021-06-29mm/shmem: fix shmem_swapin() race with swapoffMiaohe Lin1-1/+13
2021-06-28Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-5/+5
2021-05-14userfaultfd: release page in error path to avoid BUG_ONAxel Rasmussen1-1/+11
2021-05-14mm/hugetlb: fix F_SEAL_FUTURE_WRITEPeter Xu1-18/+4
2021-05-05mm/mempool: minor coding style tweaksZhiyuan Dai1-1/+1
2021-04-30Reimplement RLIMIT_MEMLOCK on top of ucountsAlexey Gladkov1-5/+5
2021-04-19shmem: allow reporting fanotify events with file handles on tmpfsAmir Goldstein1-0/+3
2021-02-26mm,shmem,thp: limit shmem THP allocations to requested zonesRik van Riel1-1/+5
2021-02-26mm,thp,shm: limit gfp mask to no more than specifiedRik van Riel1-0/+21
2021-02-26mm,thp,shmem: limit shmem THP alloc gfp_maskRik van Riel1-3/+5
2021-02-26mm: pass pvec directly to find_get_entriesMatthew Wilcox (Oracle)1-3/+2
2021-02-26mm: add an 'end' parameter to find_get_entriesMatthew Wilcox (Oracle)1-8/+2
2021-02-26mm: add and use find_lock_entriesMatthew Wilcox (Oracle)1-17/+5
2021-02-26mm/filemap: add mapping_seek_hole_dataMatthew Wilcox (Oracle)1-70/+4
2021-02-26mm: add FGP_ENTRYMatthew Wilcox (Oracle)1-1/+2
2021-02-26mm/shmem: use pagevec_lookup in shmem_unlock_mappingMatthew Wilcox (Oracle)1-10/+1
2021-02-24mm: memcontrol: convert NR_SHMEM_THPS account to pagesMuchun Song1-1/+1
2021-02-23Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-19/+31
2021-01-24fs: make helpers idmap mount awareChristian Brauner1-14/+25
2021-01-24stat: handle idmapped mountsChristian Brauner1-1/+1
2021-01-24acl: handle idmapped mountsChristian Brauner1-1/+2
2021-01-24attr: handle idmapped mountsChristian Brauner1-2/+2
2021-01-24inode: make init and permission helpers idmapped mount awareChristian Brauner1-1/+1
2021-01-21mm: Use static initialisers for immutable fields of 'struct vm_fault'Will Deacon1-3/+3
2020-12-15mm: shmem: convert shmem_enabled_show to use sysfs_emit_atJoe Perches1-9/+12
2020-12-15mm: memcontrol: add file_thp, shmem_thp to memory.statJohannes Weiner1-1/+1
2020-12-15mm/shmem.c: make shmem_mapping() inlineHui Su1-10/+6
2020-10-16fs: add a filesystem flag for THPsMatthew Wilcox (Oracle)1-1/+1
2020-10-13mm/shmem: return head page from find_lock_entryMatthew Wilcox (Oracle)1-9/+10
2020-10-12Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-0/+9
2020-09-19tmpfs: restore functionality of nr_inodes=0Byron Stanoszek1-4/+6
2020-09-04mm: Add arch hooks for saving/restoring tagsSteven Price1-0/+6
2020-09-04mm: Allow arm64 mmap(PROT_MTE) on RAM-based filesCatalin Marinas1-0/+3
2020-08-12mm/shmem.c: delete duplicated wordRandy Dunlap1-1/+1
2020-08-12mm/swapcache: support to handle the shadow entriesJoonsoo Kim1-1/+2
2020-08-07mm: remove unnecessary wrapper function do_mmap_pgoff()Peter Collingbourne1-1/+1
2020-08-07tmpfs: support 64-bit inums per-sbChris Down1-2/+63
2020-08-07tmpfs: per-superblock i_ino supportChris Down1-5/+61
2020-07-24vfs/xattr: mm/shmem: kernfs: release simple xattr entry in a right wayChengguang Xu1-1/+1
2020-06-09mmap locking API: convert mmap_sem commentsMichel Lespinasse1-2/+2
2020-06-09mm: don't include asm/pgtable.h if linux/mm.h is already includedMike Rapoport1-1/+0
2020-06-03mm: fold and remove lru_cache_add_anon() and lru_cache_add_file()Johannes Weiner1-3/+3
2020-06-03mm: memcontrol: delete unused lrucare handlingJohannes Weiner1-1/+1
2020-06-03mm: memcontrol: charge swapin pages on instantiationJohannes Weiner1-6/+8
2020-06-03mm: memcontrol: switch to native NR_FILE_PAGES and NR_SHMEM countersJohannes Weiner1-7/+7
2020-06-03mm: memcontrol: convert page cache to a new mem_cgroup_charge() APIJohannes Weiner1-43/+30
2020-06-03mm: shmem: remove rare optimization when swapin races with hole punchingJohannes Weiner1-18/+7
2020-06-03mm: memcontrol: drop @compound parameter from memcg charging APIJohannes Weiner1-13/+9
2020-04-21mm: shmem: disable interrupt when acquiring info->lock in userfaultfd_copy pathYang Shi1-2/+2
2020-04-21shmem: fix possible deadlocks on shmlock_user_lockHugh Dickins1-2/+5
2020-04-21mm/shmem: fix build without THPHugh Dickins1-1/+1
2020-04-07mm: use fallthrough;Joe Perches1-1/+1
2020-04-07mm: huge tmpfs: try to split_huge_page() when punching holeHugh Dickins1-55/+43
2020-04-07mm/shmem.c: clean code by removing unnecessary assignmentMateusz Nosek1-6/+3
2020-04-07mm/shmem.c: distribute switch variables for initializationKees Cook1-4/+7
2020-04-07mm: remove CONFIG_TRANSPARENT_HUGE_PAGECACHEMatthew Wilcox (Oracle)1-17/+17
2020-04-07mm, thp: track fallbacks due to failed memcg charges separatelyDavid Rientjes1-1/+3
2020-04-07mm, shmem: add vmstat for hugepage fallbackDavid Rientjes1-4/+6
2020-04-03Merge branch 'for-5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cg...Linus Torvalds1-1/+1
2020-03-16kernfs: Add removed_size out param for simple_xattr_setDaniel Xu1-1/+1
2020-02-18tmpfs: deny and force are not huge mount optionsHugh Dickins1-2/+0
2020-02-07tmpfs: switch to use of invalfc()Al Viro1-3/+3
2020-02-07fs_parse: fold fs_parameter_desc/fs_parameter_specAl Viro1-8/+4
2020-02-07fs_parser: remove fs_parameter_description name fieldEric Sandeen1-1/+0
2020-02-07fold struct fs_parameter_enum into struct constant_tableAl Viro1-1/+1
2020-02-07fs_parse: get rid of ->enumsAl Viro1-10/+11
2020-01-13mm/shmem.c: thp, shmem: fix conflict of above-47bit hint address and PMD alig...Kirill A. Shutemov1-3/+4
2019-12-01mm/shmem.c: cast the type of unmap_start to u64Chen Jun1-1/+1
2019-12-01mm: shmem: use proper gfp flags for shmem_writepage()Yang Shi1-1/+2
2019-12-01mm/shmem.c: make array 'values' static const, makes object smallerColin Ian King1-1/+1
2019-12-01mm, memfd: fix COW issue on MAP_PRIVATE and F_SEAL_FUTURE_WRITE mappingsNicolas Geoffray1-4/+7
2019-12-01shmem: pin the file in shmem_fault() if mmap_sem is droppedKirill A. Shutemov1-5/+6
2019-10-10Merge branch 'work.mount3' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-0/+6
2019-10-09shmem: fix LSM options parsingAl Viro1-0/+6
2019-09-28Merge branch 'hugepage-fallbacks' (hugepatch patches from David Rientjes)Linus Torvalds1-1/+1
2019-09-28Revert "Revert "Revert "mm, thp: consolidate THP gfp handling into alloc_huge...David Rientjes1-1/+1
2019-09-24shmem: fix obsolete comment in shmem_getpage_gfp()Miles Chen1-1/+1
2019-09-24mm: page cache: store only head pages in i_pagesMatthew Wilcox (Oracle)1-1/+1
2019-09-24mm: introduce compound_nr()Matthew Wilcox (Oracle)1-4/+4
2019-09-12vfs: Convert ramfs, shmem, tmpfs, devtmpfs, rootfs to use the new mount APIDavid Howells1-79/+108
2019-09-12shmem_parse_one(): switch to use of fs_parse()Al Viro1-67/+116
2019-09-12shmem_parse_options(): take handling a single option into a helperAl Viro1-69/+79
2019-09-12shmem_parse_options(): don't bother with mpol in separate variableAl Viro1-6/+5
2019-09-12shmem_parse_options(): use a separate structure to keep the resultsAl Viro1-43/+67
2019-09-05make shmem_fill_super() staticAl Viro1-2/+2
2019-08-13Revert "Revert "mm, thp: consolidate THP gfp handling into alloc_hugepage_dir...Andrea Arcangeli1-1/+1
2019-07-19Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-4/+0
2019-07-18mm: thp: fix false negative of shmem vma's THP eligibilityYang Shi1-0/+3
2019-07-16mm/shmem.c: fix unused shmem_parse_huge() function warningArnd Bergmann1-1/+3
2019-07-05Revert "mm: page cache: store only head pages in i_pages"Linus Torvalds1-1/+1
2019-07-04mnt_init(): call shmem_init() unconditionallyAl Viro1-4/+0
2019-05-14mm: page cache: store only head pages in i_pagesMatthew Wilcox1-1/+1
2019-05-07Merge branch 'work.icache' of git://git.kernel.org/pub/scm/linux/kernel/git/v...Linus Torvalds1-3/+2
2019-05-01shmem: make use of ->free_inode()Al Viro1-3/+2
2019-04-19mm: swapoff: shmem_unuse() stop eviction without igrab()Hugh Dickins1-22/+18
2019-04-19mm: swapoff: shmem_find_swap_entries() filter out other typesHugh Dickins1-9/+9
2019-03-05mm/memfd: add an F_SEAL_FUTURE_WRITE seal to memfdJoel Fernandes (Google)1-3/+22
2019-03-05mm: rid swapoff of quadratic complexityVineeth Remanan Pillai1-120/+147
2019-03-05mm: refactor swap-in logic out of shmem_getpage_gfpVineeth Remanan Pillai1-205/+244
2019-02-25tmpfs: fix uninitialized return value in shmem_linkDarrick J. Wong1-1/+1
2019-02-21tmpfs: fix link accounting when a tmpfile is linked inDarrick J. Wong1-3/+7
2018-12-28mm: convert totalram_pages and totalhigh_pages variables to atomicArun KS1-4/+5
2018-12-28mm: reference totalram_pages and managed_pages once per functionArun KS1-1/+2
2018-12-25Merge tag 'drm-next-2018-12-14' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-1/+1
2018-12-13Merge tag 'xarray-4.20-rc7' of git://git.infradead.org/users/willy/linux-daxLinus Torvalds1-3/+1
2018-12-08Revert "mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpm...David Rientjes1-1/+1
2018-12-06XArray: Add xa_cmpxchg_irq and xa_cmpxchg_bhMatthew Wilcox1-3/+1
2018-11-30mm/khugepaged: fix crashes due to misaccounted holesHugh Dickins1-1/+5
2018-11-30userfaultfd: shmem: UFFDIO_COPY: set the page dirty if VM_WRITE is not setAndrea Arcangeli1-0/+11
2018-11-30userfaultfd: shmem: add i_size checksAndrea Arcangeli1-2/+16
2018-11-30userfaultfd: use ENOENT instead of EFAULT if the atomic copy user failsAndrea Arcangeli1-1/+1
2018-11-30mm: use swp_offset as key in shmem_replace_page()Yu Zhao1-2/+4
2018-11-20Merge drm/drm-next into drm-intel-next-queuedJani Nikula1-124/+75
2018-11-18tmpfs: make lseek(SEEK_DATA/SEK_HOLE) return ENXIO with a negative offsetYufen Yu1-3/+1
2018-11-07mm, drm/i915: mark pinned shmemfs pages as unevictableKuo-Hsin Yang1-1/+1
2018-11-03mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpmaskMichal Hocko1-1/+1
2018-10-21shmem: Comment fixupsMatthew Wilcox1-6/+6
2018-10-21shmem: Convert shmem_partial_swap_usage to XArrayMatthew Wilcox1-14/+4
2018-10-21shmem: Convert shmem_free_swap to XArrayMatthew Wilcox1-2/+2
2018-10-21shmem: Convert shmem_alloc_hugepage to XArrayMatthew Wilcox1-10/+4
2018-10-21shmem: Convert shmem_add_to_page_cache to XArrayMatthew Wilcox1-47/+34
2018-10-21shmem: Convert find_swap_entry to XArrayMatthew Wilcox1-17/+10
2018-10-21shmem: Convert shmem_confirm_swap to XArrayMatthew Wilcox1-6/+1
2018-10-21shmem: Convert shmem_radix_tree_replace to XArrayMatthew Wilcox1-14/+8
2018-09-29xarray: Replace exceptional entriesMatthew Wilcox1-5/+5
2018-09-20mm: shmem.c: Correctly annotate new inodes for lockdepJoel Fernandes (Google)1-0/+2
2018-08-23mm: Change return type int to vm_fault_t for fault handlersSouptick Joarder1-2/+3
2018-08-22mm: zero out the vma in vma_init()Andrew Morton1-1/+0
2018-08-17shmem: use monotonic time for i_generationArnd Bergmann1-1/+2
2018-08-14Merge tag 'for-4.19/block-20180812' of git://git.kernel.dk/linux-blockLinus Torvalds1-5/+5
2018-08-13Merge branch 'work.open3' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-38/+11
2018-07-26mm: use vma_init() to initialize VMAs on stack and data segmentsKirill A. Shutemov1-0/+1
2018-07-12... and switch shmem_file_setup() to alloc_file_pseudo()Al Viro1-30/+7
2018-07-12__shmem_file_setup(): reorder allocationsAl Viro1-23/+20
2018-07-12alloc_file(): switch to passing O_... flags instead of FMODE_... modeAl Viro1-2/+1
2018-07-09memcontrol: schedule throttling if we are congestedTejun Heo1-5/+5
2018-06-15mm: use octal not symbolic permissionsJoe Perches1-4/+5
2018-06-07mm/shmem.c: zero out unused vma fields in shmem_pseudo_vma_init()Kirill A. Shutemov1-2/+1
2018-06-07mm/shmem.c: use new return type vm_fault_tSouptick Joarder1-6/+6
2018-06-07tmpfs: allow decoding a file handle of an unlinked fileAmir Goldstein1-1/+10
2018-06-07mm: shmem: make stat.st_blksize return huge page size if THP is onYang Shi1-0/+14
2018-06-07mm: restructure memfd codeMike Kravetz1-324/+0
2018-06-07mm/shmem: update file sealing comments and file checkingMike Kravetz1-24/+26
2018-06-07mm/shmem: add __rcu annotations and properly deref radix entryMike Kravetz1-7/+13
2018-06-07mm, memcontrol: move swap charge handling into get_swap_page()Tejun Heo1-4/+0
2018-04-11page cache: use xa_lockMatthew Wilcox1-30/+30
2018-04-05mm: swap: unify cluster-based and vma-based swap readaheadMinchan Kim1-1/+4
2018-03-22mm/shmem: do not wait for lock_page() in shmem_unused_huge_shrink()Kirill A. Shutemov1-11/+20
2018-01-31shmem: add sealing support to hugetlb-backed memfdMarc-André Lureau1-19/+28
2018-01-31shmem: rename functions that are memfd-relatedMarc-André Lureau1-5/+5
2018-01-31shmem: unexport shmem_add_seals()/shmem_get_seals()Marc-André Lureau1-4/+2