|
|
|
[PATCH 0/4] [RFC] Fallocate Volatile Ranges | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
So here's the first pass at re-implementing the volatile range idea using the fallocate interface, as suggested by Dave Chinner. The range tree code is mostly unchanged. The volatile range management code has been somewhat abstracted out as helper functions that allow filesystems to get the same logic but leaving it to the filesystem to handle the page purging. Finally there is the tmpfs enablement for FALLOC_FL_MARK_VOLATILE. This is all done on top of Hugh/Cong's tmpfs FALLOC_FL_PUNCH_HOLE enablement. I've only managed to do minimal testing at this point, but I wanted to get this out before the long-weekend holiday in the US. Few of the things still on my todo list: * Move the volatile mapping hash to be per volatile_fs_head * Kill the extra hash locking * Keep track of unpurged pages in volatile_fs_head, to avoid running through the lru at shrink time. Your thoughts and feedback will be appreciated! thanks -john CC: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> CC: Android Kernel Team <kernel-team@xxxxxxxxxxx> CC: Robert Love <rlove@xxxxxxxxxx> CC: Mel Gorman <mel@xxxxxxxxx> CC: Hugh Dickins <hughd@xxxxxxxxxx> CC: Dave Hansen <dave@xxxxxxxxxxxxxxxxxx> CC: Rik van Riel <riel@xxxxxxxxxx> CC: Dmitry Adamushko <dmitry.adamushko@xxxxxxxxx> CC: Dave Chinner <david@xxxxxxxxxxxxx> CC: Neil Brown <neilb@xxxxxxx> CC: Andrea Righi <andrea@xxxxxxxxxxxxxxx> CC: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> CC: Taras Glek <tgek@xxxxxxxxxxx> CC: Mike Hommey <mh@xxxxxxxxxxxx> Hugh Dickins (1): tmpfs: support fallocate FALLOC_FL_PUNCH_HOLE John Stultz (3): [RFC] Range tree implementation [RFC] Add volatile range management code [RFC] tmpfs: Add FALLOC_FL_MARK_VOLATILE/UNMARK_VOLATILE handlers fs/open.c | 3 +- include/linux/falloc.h | 7 +- include/linux/rangetree.h | 53 +++++ include/linux/volatile.h | 43 ++++ lib/Makefile | 2 +- lib/rangetree.c | 107 ++++++++++ mm/Makefile | 2 +- mm/shmem.c | 175 +++++++++++++++- mm/volatile.c | 493 +++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 868 insertions(+), 17 deletions(-) create mode 100644 include/linux/rangetree.h create mode 100644 include/linux/volatile.h create mode 100644 lib/rangetree.c create mode 100644 mm/volatile.c -- 1.7.3.2.146.gca209 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[Other Archives] [Linux Kernel Newbies] [Linux Driver Development] [Linux Kbuild] [Fedora Kernel] [Linux Kernel Testers] [Linux SH] [Linux Omap] [Linux Tape] [Linux Input] [Linux Kernel Janitors] [Linux Kernel Packagers] [Linux Doc] [Linux Man Pages] [Linux API] [Linux Memory Management] [Linux Modules] [Linux Standards] [Kernel Announce] [Netdev] [Git] [Linux PCI] Linux CAN Development [Linux I2C] [Linux RDMA] [Linux NUMA] [Netfilter] [Netfilter Devel] [SELinux] [Bugtraq] [FIO] [Linux Perf Users] [Linux Serial] [Linux PPP] [Linux ISDN] [Linux Next] [Kernel Stable Commits] [Linux Tip Commits] [Kernel MM Commits] [Linux Security Module] [AutoFS] [Filesystem Development] [Ext3 Filesystem] [Linux bcache] [Ext4 Filesystem] [Linux BTRFS] [Linux CEPH Filesystem] [Linux XFS] [XFS] [Linux NFS] [Linux CIFS] [Ecryptfs] [Linux NILFS] [Linux Cachefs] [Reiser FS] [Initramfs] [Linux FB Devel] [Linux OpenGL] [DRI Devel] [Fastboot] [Linux RT Users] [Linux RT Stable] [eCos] [Corosync] [Linux Clusters] [LVS Devel] [Hot Plug] [Linux Virtualization] [KVM] [KVM PPC] [KVM ia64] [Linux Containers] [Linux Hexagon] [Linux Cgroups] [Util Linux] [Wireless] [Linux Bluetooth] [Bluez Devel] [Ethernet Bridging] [Embedded Linux] [Barebox] [Linux MMC] [Linux IIO] [Sparse] [Smatch] [Linux Arch] [x86 Platform Driver] [Linux ACPI] [Linux IBM ACPI] [LM Sensors] [CPU Freq] [Linux Power Management] [Linmodems] [Linux DCCP] [Linux SCTP] [ALSA Devel] [Linux USB] [Linux PA RISC] [Linux Samsung SOC] [MIPS Linux] [IBM S/390 Linux] [ARM Linux] [ARM Kernel] [ARM MSM] [Tegra Devel] [Sparc Linux] [Linux Security] [Linux Sound] [Linux Media] [Video 4 Linux] [Linux IRDA Users] [Linux for the blind] [Linux RAID] [Linux ATA RAID] [Device Mapper] [Linux SCSI] [SCSI Target Devel] [Linux SCSI Target Infrastructure] [Linux IDE] [Linux SMP] [Linux AXP] [Linux Alpha] [Linux M68K] [Linux ia64] [Linux 8086] [Linux x86_64] [Linux Config] [Linux Apps] [Linux MSDOS] [Linux X.25] [Linux Crypto] [DM Crypt] [Linux Trace Users] [Linux Btrace] [Linux Watchdog] [Utrace Devel] [Linux C Programming] [Linux Assembly] [Dash] [DWARVES] [Hail Devel] [Linux Kernel Debugger] [Linux gcc] [Gcc Help] [X.Org] [Wine]
![]() |
![]() |
[Older Kernel Discussion] [Yosemite National Park Forum] [Large Format Photos] [Gimp] [Yosemite Photos] [Stuff]