android_kernel_xiaomi_sm8350/arch/i386/kernel
Amit Arora 97ac73506c sys_fallocate() implementation on i386, x86_64 and powerpc
fallocate() is a new system call being proposed here which will allow
applications to preallocate space to any file(s) in a file system.
Each file system implementation that wants to use this feature will need
to support an inode operation called ->fallocate().
Applications can use this feature to avoid fragmentation to certain
level and thus get faster access speed. With preallocation, applications
also get a guarantee of space for particular file(s) - even if later the
the system becomes full.

Currently, glibc provides an interface called posix_fallocate() which
can be used for similar cause. Though this has the advantage of working
on all file systems, but it is quite slow (since it writes zeroes to
each block that has to be preallocated). Without a doubt, file systems
can do this more efficiently within the kernel, by implementing
the proposed fallocate() system call. It is expected that
posix_fallocate() will be modified to call this new system call first
and incase the kernel/filesystem does not implement it, it should fall
back to the current implementation of writing zeroes to the new blocks.
ToDos:
1. Implementation on other architectures (other than i386, x86_64,
   and ppc). Patches for s390(x) and ia64 are already available from
   previous posts, but it was decided that they should be added later
   once fallocate is in the mainline. Hence not including those patches
   in this take.
2. Changes to glibc,
   a) to support fallocate() system call
   b) to make posix_fallocate() and posix_fallocate64() call fallocate()

Signed-off-by: Amit Arora <aarora@in.ibm.com>
2007-07-17 21:42:44 -04:00
..
acpi Remove some unused variables 2007-07-03 18:27:53 -07:00
cpu HOTPLUG: Adapt thermal throttle to CPU_DYING 2007-07-16 12:05:50 +03:00
.gitignore
alternative.c
apic.c
apm.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
asm-offsets.c
bootflag.c
cpuid.c
crash_dump.c
crash.c
doublefault.c
e820.c Make definitions for struct e820entry and struct e820map consistent 2007-07-12 10:55:54 -07:00
early_printk.c
efi_stub.S
efi.c arch/i386/* fs/* ipc/*: mark variables with uninitialized_var() 2007-07-17 16:23:19 -04:00
entry.S i386: fix regression, endless loop in ptrace singlestep over an int80 2007-07-06 10:23:43 -07:00
head.S x86: initial fixmap support 2007-07-16 09:05:35 -07:00
hpet.c
i386_ksyms.c
i387.c
i8237.c
i8253.c
i8259.c
init_task.c
io_apic.c Freezer: make kernel threads nonfreezable by default 2007-07-17 10:23:02 -07:00
ioport.c
irq.c
kprobes.c
ldt.c
legacy_serial.c
machine_kexec.c
Makefile i386: move common parts of smp into their own file 2007-05-15 08:54:00 -07:00
mca.c
microcode.c microcode: fix section mismatch warning 2007-06-01 08:18:30 -07:00
module.c
mpparse.c
msr.c
nmi.c i386: speedup touch_nmi_watchdog 2007-07-17 10:23:04 -07:00
numaq.c
paravirt.c
pci-dma.c x86: Disable DAC on VIA bridges 2007-06-20 14:27:25 -07:00
pcspeaker.c
process.c make seccomp zerocost in schedule 2007-07-16 09:05:50 -07:00
ptrace.c PTRACE_POKEDATA consolidation 2007-07-17 10:23:03 -07:00
quirks.c Clean up E7520/7320/7525 quirk printk. 2007-07-07 13:53:13 -07:00
reboot_fixups.c GEODE: reboot fixup for geode machines with CS5536 boards 2007-07-06 11:45:11 -07:00
reboot.c Work around Dell E520 BIOS reboot bug 2007-06-01 08:18:28 -07:00
relocate_kernel.S
scx200.c
setup.c Make struct boot_params a real structure, and remove obsolete fields 2007-07-12 10:55:54 -07:00
sigframe.h
signal.c
smp.c i386: don't check_pgt_cache in flush_tlb_mm 2007-05-17 05:23:05 -07:00
smpboot.c sched: zap the migration init / cache-hot balancing code 2007-07-09 18:51:57 +02:00
smpcommon.c i386: Allow smp_call_function_single() to current cpu 2007-07-16 12:05:50 +03:00
srat.c
summit.c
sys_i386.c
syscall_table.S sys_fallocate() implementation on i386, x86_64 and powerpc 2007-07-17 21:42:44 -04:00
sysenter.c
time.c
topology.c
trampoline.S
traps.c Report that kernel is tainted if there was an OOPS 2007-07-17 10:23:02 -07:00
tsc_sync.c
tsc.c sched: x86, track TSC-unstable events 2007-07-09 18:51:59 +02:00
vm86.c
vmi.c Fix vmi.c compilation 2007-06-01 08:18:27 -07:00
vmiclock.c
vmlinux.lds.S all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
vsyscall-int80.S
vsyscall-note.S
vsyscall-sigreturn.S
vsyscall-sysenter.S
vsyscall.lds.S
vsyscall.S