From 97e1f70773f67bc749cdcc7b1ef35a9c7f4206f2 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 21 Dec 2012 17:10:29 -0800 Subject: [PATCH] --- yaml --- r: 348003 b: refs/heads/master c: 4fe19a136a8871e5fc6e44d72979f18a4968c2ab h: refs/heads/master i: 348001: 00a277e7e52c440f3a9f65d06f93d35797da4571 347999: dec43ae8d2a4449f0e546715d74dd46366102939 v: v3 --- [refs] | 2 +- trunk/Documentation/ABI/testing/sysfs-bus-rbd | 4 + .../ABI/testing/sysfs-devices-node | 7 - trunk/Documentation/DMA-API-HOWTO.txt | 126 ++ trunk/Documentation/DMA-API.txt | 12 + .../bindings/spi/nvidia,tegra20-sflash.txt | 2 +- .../bindings/spi/nvidia,tegra20-slink.txt | 2 +- .../devicetree/bindings/spi/spi_atmel.txt | 26 + trunk/Documentation/filesystems/00-INDEX | 2 + trunk/Documentation/filesystems/Locking | 6 - .../filesystems/caching/backend-api.txt | 38 +- .../filesystems/caching/netfs-api.txt | 46 +- .../filesystems/caching/object.txt | 23 +- .../filesystems/caching/operations.txt | 2 +- trunk/Documentation/filesystems/f2fs.txt | 421 ++++ .../filesystems/nfs/nfs41-server.txt | 20 +- trunk/Documentation/filesystems/porting | 2 +- trunk/Documentation/filesystems/vfs.txt | 11 - trunk/Documentation/hwmon/it87 | 10 + trunk/Documentation/kernel-parameters.txt | 6 - trunk/Makefile | 10 +- trunk/arch/Kconfig | 9 +- trunk/arch/alpha/Kconfig | 3 +- trunk/arch/alpha/include/asm/ptrace.h | 1 + trunk/arch/alpha/include/asm/unistd.h | 1 - trunk/arch/alpha/include/uapi/asm/signal.h | 6 - trunk/arch/alpha/kernel/signal.c | 10 +- trunk/arch/arm/Kconfig | 2 - trunk/arch/arm/boot/compressed/head.S | 2 +- trunk/arch/arm/boot/dts/Makefile | 10 +- trunk/arch/arm/boot/dts/at91sam9263.dtsi | 4 +- trunk/arch/arm/boot/dts/at91sam9g45.dtsi | 4 +- trunk/arch/arm/boot/dts/at91sam9x5.dtsi | 2 +- trunk/arch/arm/boot/dts/imx27-3ds.dts | 8 +- .../arm/boot/dts/imx27-phytec-phycore.dts | 13 +- trunk/arch/arm/boot/dts/imx27.dtsi | 11 +- trunk/arch/arm/boot/dts/omap2420-h4.dts | 2 +- ...ubieboard.dts => sun4i-a10-cubieboard.dts} | 4 +- .../boot/dts/{sun4i.dtsi => sun4i-a10.dtsi} | 0 ...-olinuxino.dts => sun5i-a13-olinuxino.dts} | 4 +- .../boot/dts/{sun5i.dtsi => sun5i-a13.dtsi} | 0 trunk/arch/arm/include/asm/dma-mapping.h | 1 + trunk/arch/arm/include/asm/unistd.h | 1 - trunk/arch/arm/include/uapi/asm/signal.h | 7 - trunk/arch/arm/kernel/setup.c | 2 +- trunk/arch/arm/kernel/swp_emulate.c | 2 + trunk/arch/arm/kernel/vmlinux.lds.S | 4 +- trunk/arch/arm/mach-davinci/board-da850-evm.c | 1 + .../arm/mach-ep93xx/include/mach/uncompress.h | 10 +- trunk/arch/arm/mach-exynos/clock-exynos4.c | 4 +- trunk/arch/arm/mach-exynos/common.c | 3 +- trunk/arch/arm/mach-exynos/common.h | 2 +- trunk/arch/arm/mach-exynos/dev-audio.c | 12 - trunk/arch/arm/mach-exynos/mach-exynos5-dt.c | 2 + trunk/arch/arm/mach-exynos/mach-origen.c | 4 +- trunk/arch/arm/mach-exynos/mach-smdk4x12.c | 4 +- trunk/arch/arm/mach-exynos/mach-smdkv310.c | 4 +- trunk/arch/arm/mach-exynos/platsmp.c | 2 +- trunk/arch/arm/mach-imx/clk-imx51-imx53.c | 16 + .../devices/platform-mx2-emma.c | 4 +- trunk/arch/arm/mach-omap2/Kconfig | 3 +- trunk/arch/arm/mach-omap2/board-3430sdp.c | 1 + trunk/arch/arm/mach-omap2/board-am3517evm.c | 1 + trunk/arch/arm/mach-omap2/board-cm-t35.c | 1 + trunk/arch/arm/mach-omap2/board-devkit8000.c | 1 + trunk/arch/arm/mach-omap2/board-h4.c | 83 +- trunk/arch/arm/mach-omap2/board-omap3evm.c | 1 + .../arch/arm/mach-omap2/board-omap3stalker.c | 1 + trunk/arch/arm/mach-omap2/cclock44xx_data.c | 78 +- trunk/arch/arm/mach-omap2/clock.h | 10 + trunk/arch/arm/mach-omap2/clockdomain.c | 3 +- trunk/arch/arm/mach-omap2/common.c | 3 - trunk/arch/arm/mach-omap2/cpuidle34xx.c | 14 +- trunk/arch/arm/mach-omap2/cpuidle44xx.c | 28 +- trunk/arch/arm/mach-omap2/devices.c | 2 +- trunk/arch/arm/mach-omap2/dpll3xxx.c | 46 +- trunk/arch/arm/mach-omap2/dpll44xx.c | 64 +- trunk/arch/arm/mach-omap2/i2c.c | 1 + trunk/arch/arm/mach-omap2/mux.c | 10 +- trunk/arch/arm/mach-omap2/mux.h | 20 +- trunk/arch/arm/mach-omap2/mux34xx.c | 2 +- trunk/arch/arm/mach-omap2/omap-iommu.c | 167 +- .../arm/mach-omap2/omap_hwmod_44xx_data.c | 4 +- trunk/arch/arm/mach-omap2/serial.c | 3 +- trunk/arch/arm/mach-omap2/timer.c | 8 +- trunk/arch/arm/mach-omap2/usb-host.c | 4 + .../arm/mach-realview/include/mach/board-eb.h | 2 +- trunk/arch/arm/mach-s3c64xx/clock.c | 126 +- trunk/arch/arm/mach-s3c64xx/dev-audio.c | 11 - trunk/arch/arm/mach-s5p64x0/clock-s5p6440.c | 49 +- trunk/arch/arm/mach-s5p64x0/clock-s5p6450.c | 61 +- trunk/arch/arm/mach-s5p64x0/dev-audio.c | 12 - trunk/arch/arm/mach-s5pc100/clock.c | 48 +- trunk/arch/arm/mach-s5pc100/dev-audio.c | 16 - trunk/arch/arm/mach-s5pv210/dev-audio.c | 16 - trunk/arch/arm/mach-tegra/common.c | 2 +- trunk/arch/arm/mach-tegra/tegra30_clocks.c | 4 +- trunk/arch/arm/mach-u300/core.c | 34 - trunk/arch/arm/mach-ux500/devices-db8500.h | 1 + trunk/arch/arm/mm/cache-v7.S | 6 +- trunk/arch/arm/plat-omap/Makefile | 1 - trunk/arch/arm/plat-omap/debug-devices.c | 92 - .../plat-omap/include/plat/debug-devices.h | 2 - .../arm/plat-samsung/include/plat/gpio-core.h | 5 + trunk/arch/arm64/Kconfig | 2 - trunk/arch/arm64/include/asm/compat.h | 5 +- trunk/arch/arm64/include/asm/dma-mapping.h | 1 + trunk/arch/arm64/include/asm/unistd.h | 1 - trunk/arch/avr32/Kconfig | 2 - trunk/arch/avr32/include/asm/ptrace.h | 1 + trunk/arch/avr32/include/asm/unistd.h | 1 - trunk/arch/avr32/include/uapi/asm/signal.h | 6 - trunk/arch/blackfin/Kconfig | 2 - trunk/arch/blackfin/include/asm/ptrace.h | 1 + trunk/arch/blackfin/include/asm/unistd.h | 1 - trunk/arch/c6x/Kconfig | 2 - trunk/arch/c6x/include/asm/Kbuild | 1 + trunk/arch/c6x/include/asm/dma-mapping.h | 1 + trunk/arch/c6x/include/asm/mmu.h | 22 - trunk/arch/c6x/include/uapi/asm/unistd.h | 1 - trunk/arch/cris/Kconfig | 2 - trunk/arch/cris/include/arch-v10/arch/Kbuild | 5 +- trunk/arch/cris/include/arch-v32/arch/Kbuild | 3 +- .../cris/include/arch-v32/arch/cryptocop.h | 116 +- .../cris/include/arch-v32/arch/spinlock.h | 2 +- trunk/arch/cris/include/asm/Kbuild | 5 - trunk/arch/cris/include/asm/ptrace.h | 6 +- trunk/arch/cris/include/asm/signal.h | 121 +- trunk/arch/cris/include/asm/swab.h | 3 +- trunk/arch/cris/include/asm/termios.h | 43 +- trunk/arch/cris/include/asm/types.h | 5 +- trunk/arch/cris/include/asm/unistd.h | 343 +--- .../cris/include/uapi/arch-v10/arch/Kbuild | 4 + .../{ => uapi}/arch-v10/arch/sv_addr.agh | 0 .../{ => uapi}/arch-v10/arch/sv_addr_ag.h | 0 .../include/{ => uapi}/arch-v10/arch/svinto.h | 0 .../include/{ => uapi}/arch-v10/arch/user.h | 0 .../cris/include/uapi/arch-v32/arch/Kbuild | 2 + .../include/uapi/arch-v32/arch/cryptocop.h | 122 ++ .../include/{ => uapi}/arch-v32/arch/user.h | 0 trunk/arch/cris/include/uapi/asm/Kbuild | 34 + .../arch/cris/include/{ => uapi}/asm/auxvec.h | 0 .../cris/include/{ => uapi}/asm/bitsperlong.h | 0 .../cris/include/{ => uapi}/asm/byteorder.h | 0 .../arch/cris/include/{ => uapi}/asm/errno.h | 0 .../cris/include/{ => uapi}/asm/ethernet.h | 0 .../cris/include/{ => uapi}/asm/etraxgpio.h | 0 .../arch/cris/include/{ => uapi}/asm/fcntl.h | 0 .../arch/cris/include/{ => uapi}/asm/ioctl.h | 0 .../arch/cris/include/{ => uapi}/asm/ioctls.h | 0 .../arch/cris/include/{ => uapi}/asm/ipcbuf.h | 0 trunk/arch/cris/include/{ => uapi}/asm/mman.h | 0 .../arch/cris/include/{ => uapi}/asm/msgbuf.h | 0 .../arch/cris/include/{ => uapi}/asm/param.h | 0 trunk/arch/cris/include/{ => uapi}/asm/poll.h | 0 .../cris/include/{ => uapi}/asm/posix_types.h | 0 trunk/arch/cris/include/uapi/asm/ptrace.h | 1 + .../cris/include/{ => uapi}/asm/resource.h | 0 .../arch/cris/include/{ => uapi}/asm/rs485.h | 0 .../arch/cris/include/{ => uapi}/asm/sembuf.h | 0 .../arch/cris/include/{ => uapi}/asm/setup.h | 0 .../arch/cris/include/{ => uapi}/asm/shmbuf.h | 0 .../cris/include/{ => uapi}/asm/sigcontext.h | 0 .../cris/include/{ => uapi}/asm/siginfo.h | 0 trunk/arch/cris/include/uapi/asm/signal.h | 116 ++ .../arch/cris/include/{ => uapi}/asm/socket.h | 0 .../cris/include/{ => uapi}/asm/sockios.h | 0 trunk/arch/cris/include/{ => uapi}/asm/stat.h | 0 .../arch/cris/include/{ => uapi}/asm/statfs.h | 0 trunk/arch/cris/include/uapi/asm/swab.h | 3 + .../cris/include/{ => uapi}/asm/sync_serial.h | 0 .../cris/include/{ => uapi}/asm/termbits.h | 0 trunk/arch/cris/include/uapi/asm/termios.h | 45 + trunk/arch/cris/include/uapi/asm/types.h | 1 + trunk/arch/cris/include/uapi/asm/unistd.h | 344 ++++ trunk/arch/cris/kernel/asm-offsets.c | 6 +- trunk/arch/frv/Kconfig | 2 - trunk/arch/frv/include/asm/unistd.h | 1 - trunk/arch/h8300/Kconfig | 2 - trunk/arch/h8300/include/asm/Kbuild | 2 +- trunk/arch/h8300/include/asm/mmu.h | 10 - trunk/arch/h8300/include/asm/param.h | 15 +- trunk/arch/h8300/include/asm/ptrace.h | 41 +- trunk/arch/h8300/include/asm/signal.h | 121 +- trunk/arch/h8300/include/asm/termios.h | 44 +- trunk/arch/h8300/include/asm/types.h | 5 +- trunk/arch/h8300/include/asm/unistd.h | 329 +-- trunk/arch/h8300/include/uapi/asm/Kbuild | 31 + .../h8300/include/{ => uapi}/asm/auxvec.h | 0 .../include/{ => uapi}/asm/bitsperlong.h | 0 .../h8300/include/{ => uapi}/asm/byteorder.h | 0 .../arch/h8300/include/{ => uapi}/asm/errno.h | 0 .../arch/h8300/include/{ => uapi}/asm/fcntl.h | 0 .../arch/h8300/include/{ => uapi}/asm/ioctl.h | 0 .../h8300/include/{ => uapi}/asm/ioctls.h | 0 .../h8300/include/{ => uapi}/asm/ipcbuf.h | 0 .../h8300/include/{ => uapi}/asm/kvm_para.h | 0 .../arch/h8300/include/{ => uapi}/asm/mman.h | 0 .../h8300/include/{ => uapi}/asm/msgbuf.h | 0 trunk/arch/h8300/include/uapi/asm/param.h | 16 + .../arch/h8300/include/{ => uapi}/asm/poll.h | 0 .../include/{ => uapi}/asm/posix_types.h | 0 trunk/arch/h8300/include/uapi/asm/ptrace.h | 44 + .../h8300/include/{ => uapi}/asm/resource.h | 0 .../h8300/include/{ => uapi}/asm/sembuf.h | 0 .../arch/h8300/include/{ => uapi}/asm/setup.h | 0 .../h8300/include/{ => uapi}/asm/shmbuf.h | 0 .../h8300/include/{ => uapi}/asm/sigcontext.h | 0 .../h8300/include/{ => uapi}/asm/siginfo.h | 0 trunk/arch/h8300/include/uapi/asm/signal.h | 115 ++ .../h8300/include/{ => uapi}/asm/socket.h | 0 .../h8300/include/{ => uapi}/asm/sockios.h | 0 .../arch/h8300/include/{ => uapi}/asm/stat.h | 0 .../h8300/include/{ => uapi}/asm/statfs.h | 0 .../arch/h8300/include/{ => uapi}/asm/swab.h | 0 .../h8300/include/{ => uapi}/asm/termbits.h | 0 trunk/arch/h8300/include/uapi/asm/termios.h | 44 + trunk/arch/h8300/include/uapi/asm/types.h | 1 + trunk/arch/h8300/include/uapi/asm/unistd.h | 330 +++ trunk/arch/hexagon/Kconfig | 2 - trunk/arch/hexagon/include/uapi/asm/unistd.h | 1 - trunk/arch/ia64/Kconfig | 2 - trunk/arch/ia64/include/asm/dma-mapping.h | 1 + trunk/arch/ia64/include/asm/ptrace.h | 5 + trunk/arch/ia64/include/asm/unistd.h | 1 - trunk/arch/ia64/include/uapi/asm/signal.h | 6 - trunk/arch/m32r/Kconfig | 2 - trunk/arch/m32r/include/asm/Kbuild | 1 - trunk/arch/m32r/include/asm/ptrace.h | 111 +- trunk/arch/m32r/include/asm/setup.h | 9 +- trunk/arch/m32r/include/asm/signal.h | 123 +- trunk/arch/m32r/include/asm/termios.h | 42 +- trunk/arch/m32r/include/asm/types.h | 5 +- trunk/arch/m32r/include/asm/unistd.h | 334 +-- trunk/arch/m32r/include/uapi/asm/Kbuild | 30 + .../arch/m32r/include/{ => uapi}/asm/auxvec.h | 0 .../m32r/include/{ => uapi}/asm/bitsperlong.h | 0 .../m32r/include/{ => uapi}/asm/byteorder.h | 0 .../arch/m32r/include/{ => uapi}/asm/errno.h | 0 .../arch/m32r/include/{ => uapi}/asm/fcntl.h | 0 .../arch/m32r/include/{ => uapi}/asm/ioctl.h | 0 .../arch/m32r/include/{ => uapi}/asm/ioctls.h | 0 .../arch/m32r/include/{ => uapi}/asm/ipcbuf.h | 0 trunk/arch/m32r/include/{ => uapi}/asm/mman.h | 0 .../arch/m32r/include/{ => uapi}/asm/msgbuf.h | 0 .../arch/m32r/include/{ => uapi}/asm/param.h | 0 trunk/arch/m32r/include/{ => uapi}/asm/poll.h | 0 .../m32r/include/{ => uapi}/asm/posix_types.h | 0 trunk/arch/m32r/include/uapi/asm/ptrace.h | 117 ++ .../m32r/include/{ => uapi}/asm/resource.h | 0 .../arch/m32r/include/{ => uapi}/asm/sembuf.h | 0 trunk/arch/m32r/include/uapi/asm/setup.h | 11 + .../arch/m32r/include/{ => uapi}/asm/shmbuf.h | 0 .../m32r/include/{ => uapi}/asm/sigcontext.h | 0 .../m32r/include/{ => uapi}/asm/siginfo.h | 0 trunk/arch/m32r/include/uapi/asm/signal.h | 117 ++ .../arch/m32r/include/{ => uapi}/asm/socket.h | 0 .../m32r/include/{ => uapi}/asm/sockios.h | 0 trunk/arch/m32r/include/{ => uapi}/asm/stat.h | 0 .../arch/m32r/include/{ => uapi}/asm/statfs.h | 0 trunk/arch/m32r/include/{ => uapi}/asm/swab.h | 0 .../m32r/include/{ => uapi}/asm/termbits.h | 0 trunk/arch/m32r/include/uapi/asm/termios.h | 43 + trunk/arch/m32r/include/uapi/asm/types.h | 1 + trunk/arch/m32r/include/uapi/asm/unistd.h | 335 +++ trunk/arch/m68k/Kconfig | 2 - trunk/arch/m68k/include/asm/ptrace.h | 1 + trunk/arch/m68k/include/asm/unistd.h | 1 - trunk/arch/m68k/include/uapi/asm/signal.h | 6 - trunk/arch/microblaze/Kconfig | 2 - .../arch/microblaze/include/asm/dma-mapping.h | 2 + trunk/arch/microblaze/include/asm/ptrace.h | 1 + trunk/arch/microblaze/include/asm/unistd.h | 1 - trunk/arch/mips/Kconfig | 2 - trunk/arch/mips/include/asm/dma-mapping.h | 2 + trunk/arch/mips/include/asm/ptrace.h | 1 + trunk/arch/mips/include/asm/unistd.h | 1 - trunk/arch/mips/include/uapi/asm/signal.h | 6 - trunk/arch/mn10300/Kconfig | 2 - trunk/arch/mn10300/include/asm/unistd.h | 1 - trunk/arch/mn10300/include/uapi/asm/signal.h | 6 - trunk/arch/openrisc/Kconfig | 2 - trunk/arch/openrisc/include/asm/io.h | 1 + trunk/arch/openrisc/include/uapi/asm/unistd.h | 1 - trunk/arch/parisc/Kconfig | 2 - trunk/arch/parisc/include/asm/unistd.h | 1 - trunk/arch/parisc/include/uapi/asm/signal.h | 6 - trunk/arch/powerpc/Kconfig | 2 - trunk/arch/powerpc/include/asm/dma-mapping.h | 1 + trunk/arch/powerpc/include/asm/unistd.h | 1 - trunk/arch/powerpc/include/uapi/asm/signal.h | 6 - .../powerpc/platforms/cell/spufs/syscalls.c | 2 +- trunk/arch/s390/Kconfig | 2 - trunk/arch/s390/include/asm/compat.h | 3 + trunk/arch/s390/include/asm/unistd.h | 1 - trunk/arch/s390/include/uapi/asm/signal.h | 6 - trunk/arch/score/Kconfig | 2 - trunk/arch/score/include/asm/Kbuild | 1 - trunk/arch/score/include/asm/ptrace.h | 75 +- trunk/arch/score/include/asm/setup.h | 7 +- trunk/arch/score/include/uapi/asm/Kbuild | 31 + .../score/include/{ => uapi}/asm/auxvec.h | 0 .../include/{ => uapi}/asm/bitsperlong.h | 0 .../score/include/{ => uapi}/asm/byteorder.h | 0 .../arch/score/include/{ => uapi}/asm/errno.h | 0 .../arch/score/include/{ => uapi}/asm/fcntl.h | 0 .../arch/score/include/{ => uapi}/asm/ioctl.h | 0 .../score/include/{ => uapi}/asm/ioctls.h | 0 .../score/include/{ => uapi}/asm/ipcbuf.h | 0 .../score/include/{ => uapi}/asm/kvm_para.h | 0 .../arch/score/include/{ => uapi}/asm/mman.h | 0 .../score/include/{ => uapi}/asm/msgbuf.h | 0 .../arch/score/include/{ => uapi}/asm/param.h | 0 .../arch/score/include/{ => uapi}/asm/poll.h | 0 .../include/{ => uapi}/asm/posix_types.h | 0 trunk/arch/score/include/uapi/asm/ptrace.h | 76 + .../score/include/{ => uapi}/asm/resource.h | 0 .../score/include/{ => uapi}/asm/sembuf.h | 0 trunk/arch/score/include/uapi/asm/setup.h | 9 + .../score/include/{ => uapi}/asm/shmbuf.h | 0 .../score/include/{ => uapi}/asm/sigcontext.h | 0 .../score/include/{ => uapi}/asm/siginfo.h | 0 .../score/include/{ => uapi}/asm/signal.h | 0 .../score/include/{ => uapi}/asm/socket.h | 0 .../score/include/{ => uapi}/asm/sockios.h | 0 .../arch/score/include/{ => uapi}/asm/stat.h | 0 .../score/include/{ => uapi}/asm/statfs.h | 0 .../arch/score/include/{ => uapi}/asm/swab.h | 0 .../score/include/{ => uapi}/asm/termbits.h | 0 .../score/include/{ => uapi}/asm/termios.h | 0 .../arch/score/include/{ => uapi}/asm/types.h | 0 .../score/include/{ => uapi}/asm/unistd.h | 1 - trunk/arch/sh/Kconfig | 2 - trunk/arch/sh/include/asm/dma-mapping.h | 1 + trunk/arch/sh/include/asm/unistd.h | 1 - trunk/arch/sparc/Kconfig | 2 - trunk/arch/sparc/crypto/aes_asm.S | 20 +- trunk/arch/sparc/crypto/aes_glue.c | 31 +- trunk/arch/sparc/crypto/camellia_glue.c | 3 + trunk/arch/sparc/crypto/des_asm.S | 1 + trunk/arch/sparc/crypto/des_glue.c | 6 + trunk/arch/sparc/include/asm/dma-mapping.h | 1 + trunk/arch/sparc/include/asm/hugetlb.h | 10 +- trunk/arch/sparc/include/asm/pgtable_64.h | 8 +- trunk/arch/sparc/include/asm/unistd.h | 1 - trunk/arch/sparc/include/uapi/asm/signal.h | 6 - trunk/arch/tile/Kconfig | 2 - trunk/arch/tile/include/asm/dma-mapping.h | 1 + trunk/arch/tile/include/asm/ptrace.h | 1 + trunk/arch/tile/include/asm/unistd.h | 1 - trunk/arch/um/kernel/signal.c | 5 - trunk/arch/unicore32/Kconfig | 2 - trunk/arch/unicore32/include/asm/ptrace.h | 1 + .../arch/unicore32/include/uapi/asm/unistd.h | 1 - trunk/arch/x86/Kconfig | 3 +- trunk/arch/x86/ia32/ia32_signal.c | 55 +- trunk/arch/x86/ia32/ia32entry.S | 1 - trunk/arch/x86/include/asm/dma-mapping.h | 1 + trunk/arch/x86/include/asm/ia32.h | 10 +- trunk/arch/x86/include/asm/ptrace.h | 7 + trunk/arch/x86/include/asm/sys_ia32.h | 2 - trunk/arch/x86/include/asm/syscalls.h | 3 - trunk/arch/x86/include/asm/unistd.h | 1 - trunk/arch/x86/include/uapi/asm/signal.h | 6 - trunk/arch/x86/kernel/entry_32.S | 1 - trunk/arch/x86/kernel/entry_64.S | 3 - trunk/arch/x86/kernel/signal.c | 29 +- trunk/arch/x86/syscalls/syscall_32.tbl | 2 +- trunk/arch/x86/syscalls/syscall_64.tbl | 4 +- trunk/arch/x86/um/Kconfig | 3 +- trunk/arch/x86/um/asm/ptrace.h | 1 + trunk/arch/x86/um/signal.c | 9 +- trunk/arch/x86/um/sys_call_table_32.c | 1 - trunk/arch/x86/um/sys_call_table_64.c | 1 - trunk/arch/xtensa/Kconfig | 2 - trunk/arch/xtensa/include/asm/mmu.h | 2 +- trunk/arch/xtensa/include/asm/nommu.h | 3 - trunk/arch/xtensa/include/asm/ptrace.h | 2 + trunk/arch/xtensa/include/asm/unistd.h | 1 - trunk/arch/xtensa/include/uapi/asm/signal.h | 6 - trunk/drivers/amba/tegra-ahb.c | 2 + trunk/drivers/atm/solos-pci.c | 186 +- trunk/drivers/base/devtmpfs.c | 2 +- trunk/drivers/base/dma-buf.c | 2 + trunk/drivers/block/rbd.c | 1389 +++++++++---- trunk/drivers/block/rbd_types.h | 2 - trunk/drivers/char/random.c | 40 +- trunk/drivers/char/virtio_console.c | 329 ++- trunk/drivers/firmware/dmi_scan.c | 78 +- trunk/drivers/gpio/Kconfig | 1 + trunk/drivers/gpio/gpio-ich.c | 1 + trunk/drivers/gpio/gpio-mvebu.c | 17 - trunk/drivers/gpu/drm/ttm/ttm_bo.c | 2 +- trunk/drivers/hwmon/hwmon-vid.c | 10 + trunk/drivers/hwmon/hwmon.c | 26 +- trunk/drivers/hwmon/it87.c | 918 +++++---- trunk/drivers/hwmon/w83627ehf.c | 99 +- trunk/drivers/hwmon/w83627hf.c | 81 +- trunk/drivers/infiniband/hw/cxgb4/cm.c | 791 +++++++- trunk/drivers/infiniband/hw/cxgb4/device.c | 210 +- trunk/drivers/infiniband/hw/cxgb4/iw_cxgb4.h | 33 + trunk/drivers/infiniband/ulp/ipoib/ipoib_cm.c | 3 + trunk/drivers/infiniband/ulp/ipoib/ipoib_ib.c | 3 +- trunk/drivers/iommu/amd_iommu.c | 196 +- trunk/drivers/iommu/amd_iommu_types.h | 1 + trunk/drivers/iommu/intel-iommu.c | 42 +- trunk/drivers/iommu/omap-iommu.c | 68 +- trunk/drivers/iommu/omap-iommu.h | 3 - trunk/drivers/iommu/omap-iommu2.c | 36 - trunk/drivers/iommu/tegra-gart.c | 2 +- trunk/drivers/iommu/tegra-smmu.c | 6 +- trunk/drivers/isdn/mISDN/dsp_core.c | 3 +- trunk/drivers/lguest/core.c | 2 +- trunk/drivers/md/dm-bio-prison.c | 25 - trunk/drivers/md/dm-bio-prison.h | 1 - trunk/drivers/md/dm-crypt.c | 5 +- trunk/drivers/md/dm-delay.c | 5 +- trunk/drivers/md/dm-flakey.c | 21 +- trunk/drivers/md/dm-io.c | 23 +- trunk/drivers/md/dm-ioctl.c | 64 +- trunk/drivers/md/dm-kcopyd.c | 18 +- trunk/drivers/md/dm-linear.c | 6 +- trunk/drivers/md/dm-raid.c | 8 +- trunk/drivers/md/dm-raid1.c | 75 +- trunk/drivers/md/dm-snap.c | 90 +- trunk/drivers/md/dm-stripe.c | 20 +- trunk/drivers/md/dm-table.c | 41 +- trunk/drivers/md/dm-target.c | 5 +- trunk/drivers/md/dm-thin-metadata.c | 2 +- trunk/drivers/md/dm-thin.c | 234 +-- trunk/drivers/md/dm-verity.c | 25 +- trunk/drivers/md/dm-zero.c | 5 +- trunk/drivers/md/dm.c | 84 +- trunk/drivers/md/dm.h | 2 +- .../md/persistent-data/dm-block-manager.c | 12 +- .../md/persistent-data/dm-btree-internal.h | 16 +- .../md/persistent-data/dm-btree-remove.c | 50 +- .../md/persistent-data/dm-btree-spine.c | 20 +- trunk/drivers/md/persistent-data/dm-btree.c | 31 +- .../md/persistent-data/dm-space-map-common.c | 16 +- .../persistent-data/dm-space-map-metadata.c | 2 +- trunk/drivers/mfd/omap-usb-host.c | 3 +- trunk/drivers/misc/sgi-xp/xpc_main.c | 34 +- trunk/drivers/mtd/ubi/attach.c | 23 +- trunk/drivers/mtd/ubi/build.c | 12 +- trunk/drivers/mtd/ubi/debug.c | 34 +- trunk/drivers/mtd/ubi/debug.h | 57 +- trunk/drivers/mtd/ubi/fastmap.c | 6 +- trunk/drivers/mtd/ubi/gluebi.c | 28 +- trunk/drivers/mtd/ubi/io.c | 14 +- trunk/drivers/mtd/ubi/ubi.h | 40 +- trunk/drivers/mtd/ubi/upd.c | 6 +- trunk/drivers/mtd/ubi/vmt.c | 4 +- trunk/drivers/mtd/ubi/vtbl.c | 2 +- trunk/drivers/mtd/ubi/wl.c | 7 +- trunk/drivers/net/bonding/bond_main.c | 2 - .../net/can/sja1000/sja1000_of_platform.c | 2 +- .../net/ethernet/chelsio/cxgb4/cxgb4.h | 136 ++ .../net/ethernet/chelsio/cxgb4/cxgb4_main.c | 459 ++++- .../net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 23 +- .../drivers/net/ethernet/chelsio/cxgb4/l2t.c | 32 + .../drivers/net/ethernet/chelsio/cxgb4/l2t.h | 3 + .../net/ethernet/chelsio/cxgb4/t4_hw.c | 22 +- .../net/ethernet/chelsio/cxgb4/t4_msg.h | 66 + .../net/ethernet/chelsio/cxgb4/t4_regs.h | 37 + .../net/ethernet/chelsio/cxgb4/t4fw_api.h | 418 ++++ trunk/drivers/net/ethernet/emulex/benet/be.h | 2 +- .../net/ethernet/emulex/benet/be_cmds.c | 5 + .../net/ethernet/emulex/benet/be_main.c | 59 +- trunk/drivers/net/ethernet/freescale/Kconfig | 3 +- trunk/drivers/net/ethernet/mellanox/mlx4/fw.c | 15 +- trunk/drivers/net/ethernet/mellanox/mlx4/fw.h | 1 + .../drivers/net/ethernet/mellanox/mlx4/main.c | 115 +- .../drivers/net/ethernet/mellanox/mlx4/mcg.c | 7 +- .../drivers/net/ethernet/mellanox/mlx4/mlx4.h | 6 +- .../ethernet/mellanox/mlx4/resource_tracker.c | 28 +- trunk/drivers/net/ethernet/micrel/ksz884x.c | 12 +- .../net/ethernet/qlogic/qlcnic/qlcnic.h | 4 +- .../net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 5 +- .../net/ethernet/qlogic/qlcnic/qlcnic_hw.c | 5 +- .../net/ethernet/qlogic/qlcnic/qlcnic_main.c | 5 - .../ethernet/qlogic/qlcnic/qlcnic_minidump.c | 3 +- trunk/drivers/net/ethernet/realtek/8139cp.c | 18 +- trunk/drivers/net/ethernet/smsc/smc91x.c | 4 +- trunk/drivers/net/ethernet/smsc/smsc911x.c | 4 +- .../net/ethernet/stmicro/stmmac/stmmac.h | 6 +- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 22 +- trunk/drivers/net/ethernet/ti/cpts.c | 2 - trunk/drivers/net/tun.c | 87 +- trunk/drivers/net/usb/cdc_ether.c | 45 +- trunk/drivers/net/usb/cdc_ncm.c | 10 +- trunk/drivers/net/usb/qmi_wwan.c | 15 + trunk/drivers/net/usb/usbnet.c | 25 +- trunk/drivers/net/virtio_net.c | 48 +- trunk/drivers/net/wimax/i2400m/i2400m-usb.h | 3 + trunk/drivers/net/wimax/i2400m/usb.c | 6 + trunk/drivers/net/wireless/Makefile | 2 +- trunk/drivers/net/wireless/rt2x00/rt2x00dev.c | 8 + trunk/drivers/of/base.c | 2 +- trunk/drivers/pinctrl/pinctrl-exynos5440.c | 2 +- trunk/drivers/pinctrl/pinctrl-samsung.c | 2 +- trunk/drivers/pinctrl/pinctrl-samsung.h | 2 +- trunk/drivers/rpmsg/virtio_rpmsg_bus.c | 6 +- trunk/drivers/rtc/class.c | 1 - trunk/drivers/rtc/rtc-imxdi.c | 1 + trunk/drivers/scsi/csiostor/t4fw_api_stor.h | 39 - trunk/drivers/scsi/virtio_scsi.c | 24 +- trunk/drivers/spi/spi-atmel.c | 17 +- trunk/drivers/spi/spi-s3c64xx.c | 10 +- trunk/drivers/spi/spi-sh-hspi.c | 2 +- trunk/drivers/spi/spi.c | 5 +- trunk/drivers/tty/serial/omap-serial.c | 3 +- trunk/drivers/vfio/pci/vfio_pci.c | 83 +- trunk/drivers/vfio/vfio.c | 34 +- trunk/drivers/virtio/virtio.c | 30 +- trunk/drivers/virtio/virtio_balloon.c | 7 +- trunk/drivers/virtio/virtio_mmio.c | 30 +- trunk/drivers/virtio/virtio_pci.c | 20 +- trunk/drivers/virtio/virtio_ring.c | 46 +- trunk/fs/Kconfig | 1 + trunk/fs/Makefile | 1 + trunk/fs/adfs/inode.c | 15 +- trunk/fs/affs/file.c | 18 +- trunk/fs/affs/inode.c | 5 +- trunk/fs/bfs/file.c | 15 +- trunk/fs/binfmt_misc.c | 5 +- trunk/fs/binfmt_script.c | 4 +- trunk/fs/btrfs/ctree.c | 14 +- trunk/fs/btrfs/inode.c | 16 +- trunk/fs/cachefiles/interface.c | 57 +- trunk/fs/cachefiles/internal.h | 2 + trunk/fs/cachefiles/key.c | 2 +- trunk/fs/cachefiles/namei.c | 3 +- trunk/fs/cachefiles/rdwr.c | 114 +- trunk/fs/cachefiles/xattr.c | 2 +- trunk/fs/ceph/addr.c | 60 +- trunk/fs/ceph/caps.c | 18 +- trunk/fs/ceph/file.c | 73 +- trunk/fs/ceph/inode.c | 15 +- trunk/fs/ceph/mds_client.c | 11 +- trunk/fs/ceph/super.c | 4 +- trunk/fs/cifs/cifs_debug.h | 6 +- trunk/fs/cifs/cifsfs.c | 1 - trunk/fs/cifs/connect.c | 9 +- trunk/fs/cifs/readdir.c | 19 +- trunk/fs/dcache.c | 35 +- trunk/fs/exec.c | 36 +- trunk/fs/exportfs/expfs.c | 4 +- trunk/fs/f2fs/Kconfig | 53 + trunk/fs/f2fs/Makefile | 7 + trunk/fs/f2fs/acl.c | 414 ++++ trunk/fs/f2fs/acl.h | 57 + trunk/fs/f2fs/checkpoint.c | 794 ++++++++ trunk/fs/f2fs/data.c | 702 +++++++ trunk/fs/f2fs/debug.c | 361 ++++ trunk/fs/f2fs/dir.c | 672 +++++++ trunk/fs/f2fs/f2fs.h | 1083 ++++++++++ trunk/fs/f2fs/file.c | 636 ++++++ trunk/fs/f2fs/gc.c | 742 +++++++ trunk/fs/f2fs/gc.h | 117 ++ trunk/fs/f2fs/hash.c | 97 + trunk/fs/f2fs/inode.c | 268 +++ trunk/fs/f2fs/namei.c | 503 +++++ trunk/fs/f2fs/node.c | 1764 ++++++++++++++++ trunk/fs/f2fs/node.h | 353 ++++ trunk/fs/f2fs/recovery.c | 375 ++++ trunk/fs/f2fs/segment.c | 1791 +++++++++++++++++ trunk/fs/f2fs/segment.h | 618 ++++++ trunk/fs/f2fs/super.c | 657 ++++++ trunk/fs/f2fs/xattr.c | 440 ++++ trunk/fs/f2fs/xattr.h | 145 ++ trunk/fs/fat/dir.c | 5 +- trunk/fs/fat/inode.c | 2 +- trunk/fs/fat/misc.c | 4 + trunk/fs/fhandle.c | 2 +- trunk/fs/file_table.c | 2 +- trunk/fs/fscache/cache.c | 8 +- trunk/fs/fscache/cookie.c | 78 + trunk/fs/fscache/internal.h | 15 +- trunk/fs/fscache/object-list.c | 2 +- trunk/fs/fscache/object.c | 101 +- trunk/fs/fscache/operation.c | 140 +- trunk/fs/fscache/page.c | 195 +- trunk/fs/fscache/stats.c | 17 +- trunk/fs/hfs/inode.c | 26 +- trunk/fs/hfsplus/bitmap.c | 13 +- trunk/fs/hfsplus/btree.c | 5 +- trunk/fs/hfsplus/extents.c | 24 +- trunk/fs/hfsplus/hfsplus_fs.h | 2 +- trunk/fs/hfsplus/inode.c | 27 +- trunk/fs/hfsplus/super.c | 15 +- trunk/fs/hpfs/file.c | 20 +- trunk/fs/hpfs/hpfs_fn.h | 1 + trunk/fs/hpfs/inode.c | 5 +- trunk/fs/jfs/file.c | 6 +- trunk/fs/jfs/inode.c | 20 +- trunk/fs/libfs.c | 2 - trunk/fs/logfs/readwrite.c | 10 +- trunk/fs/minix/file.c | 6 +- trunk/fs/minix/inode.c | 17 +- trunk/fs/namei.c | 118 +- trunk/fs/namespace.c | 2 +- trunk/fs/ncpfs/inode.c | 4 +- trunk/fs/nfs/fscache.c | 1 + trunk/fs/nfs/fscache.h | 21 +- trunk/fs/nfs/inode.c | 20 +- trunk/fs/nfs/nfs4file.c | 2 + trunk/fs/nfs/nfs4proc.c | 3 +- trunk/fs/nfs/super.c | 19 +- trunk/fs/nfs/write.c | 3 +- trunk/fs/nfsd/fault_inject.c | 113 +- trunk/fs/nfsd/fault_inject.h | 28 - trunk/fs/nfsd/netns.h | 66 + trunk/fs/nfsd/nfs2acl.c | 2 +- trunk/fs/nfsd/nfs3acl.c | 2 +- trunk/fs/nfsd/nfs3proc.c | 6 +- trunk/fs/nfsd/nfs3xdr.c | 47 +- trunk/fs/nfsd/nfs4callback.c | 69 +- trunk/fs/nfsd/nfs4proc.c | 74 +- trunk/fs/nfsd/nfs4recover.c | 561 +++++- trunk/fs/nfsd/nfs4state.c | 1015 ++++++---- trunk/fs/nfsd/nfs4xdr.c | 324 ++- trunk/fs/nfsd/nfsctl.c | 100 +- trunk/fs/nfsd/nfsd.h | 36 +- trunk/fs/nfsd/nfsfh.c | 4 +- trunk/fs/nfsd/nfssvc.c | 203 +- trunk/fs/nfsd/nfsxdr.c | 11 +- trunk/fs/nfsd/state.h | 64 +- trunk/fs/nfsd/vfs.c | 52 +- trunk/fs/nfsd/xdr4.h | 15 +- trunk/fs/nilfs2/file.c | 1 - trunk/fs/nilfs2/inode.c | 24 +- trunk/fs/nilfs2/nilfs.h | 1 + trunk/fs/nilfs2/recovery.c | 3 +- trunk/fs/notify/dnotify/dnotify.c | 4 +- trunk/fs/notify/fanotify/fanotify.c | 6 + trunk/fs/notify/fanotify/fanotify_user.c | 37 +- trunk/fs/notify/fdinfo.c | 4 +- trunk/fs/notify/group.c | 47 +- trunk/fs/notify/inode_mark.c | 14 +- trunk/fs/notify/inotify/inotify_fsnotify.c | 4 +- trunk/fs/notify/inotify/inotify_user.c | 34 +- trunk/fs/notify/mark.c | 91 +- trunk/fs/notify/notification.c | 1 + trunk/fs/notify/vfsmount_mark.c | 14 +- trunk/fs/ntfs/file.c | 16 +- trunk/fs/ntfs/inode.c | 8 +- trunk/fs/ntfs/inode.h | 4 + trunk/fs/ocfs2/file.c | 18 - trunk/fs/omfs/file.c | 22 +- trunk/fs/open.c | 97 +- trunk/fs/proc/base.c | 7 - trunk/fs/proc/generic.c | 21 +- trunk/fs/proc/proc_sysctl.c | 7 - trunk/fs/read_write.c | 2 + trunk/fs/reiserfs/file.c | 3 +- trunk/fs/reiserfs/inode.c | 15 +- trunk/fs/reiserfs/reiserfs.h | 1 + trunk/fs/stat.c | 16 +- trunk/fs/statfs.c | 9 +- trunk/fs/sysv/file.c | 5 +- trunk/fs/sysv/itree.c | 17 +- trunk/fs/ufs/inode.c | 15 +- trunk/fs/utimes.c | 6 +- trunk/fs/xattr.c | 72 +- trunk/include/asm-generic/io.h | 31 - trunk/include/asm-generic/mmu.h | 6 +- trunk/include/linux/backing-dev.h | 1 + trunk/include/linux/binfmts.h | 5 +- trunk/include/linux/ceph/libceph.h | 2 - trunk/include/linux/ceph/osdmap.h | 1 + trunk/include/linux/ceph/rados.h | 2 + trunk/include/linux/compat.h | 62 + trunk/include/linux/dcache.h | 8 - trunk/include/linux/device-mapper.h | 55 +- trunk/include/linux/dma-buf.h | 99 - trunk/include/linux/dma-debug.h | 7 + trunk/include/linux/exportfs.h | 5 + trunk/include/linux/f2fs_fs.h | 413 ++++ trunk/include/linux/fs.h | 6 +- trunk/include/linux/fscache-cache.h | 71 +- trunk/include/linux/fscache.h | 50 +- trunk/include/linux/fsnotify_backend.h | 31 +- trunk/include/linux/kernel.h | 6 +- trunk/include/linux/mlx4/device.h | 1 + trunk/include/linux/mm.h | 1 - trunk/include/linux/namei.h | 20 +- trunk/include/linux/of_platform.h | 1 + .../include/linux/platform_data/iommu-omap.h | 9 +- .../linux/platform_data/serial-omap.h} | 0 trunk/include/linux/platform_data/usb-omap.h | 3 + trunk/include/linux/ptrace.h | 4 + trunk/include/linux/sched.h | 2 - trunk/include/linux/signal.h | 3 + trunk/include/linux/sunrpc/cache.h | 6 +- trunk/include/linux/sunrpc/svc.h | 6 +- trunk/include/linux/sunrpc/svcsock.h | 21 +- trunk/include/linux/syscalls.h | 15 +- trunk/include/linux/usb/usbnet.h | 3 + trunk/include/linux/virtio.h | 25 +- trunk/include/linux/virtio_scsi.h | 28 +- trunk/include/net/inet_connection_sock.h | 1 + trunk/include/net/ndisc.h | 7 + trunk/include/sound/soc-dai.h | 1 - trunk/include/sound/soc.h | 1 + trunk/include/uapi/asm-generic/signal.h | 6 - trunk/include/uapi/linux/dm-ioctl.h | 4 +- trunk/include/uapi/linux/if_bridge.h | 3 + trunk/include/uapi/linux/magic.h | 1 + trunk/include/uapi/linux/signal.h | 2 + trunk/include/uapi/linux/virtio_ids.h | 1 + trunk/include/video/omap-panel-tfp410.h | 2 +- trunk/init/main.c | 4 +- trunk/kernel/audit_tree.c | 10 +- trunk/kernel/audit_watch.c | 4 +- trunk/kernel/fork.c | 2 - trunk/kernel/kcmp.c | 1 + trunk/kernel/kmod.c | 6 +- trunk/kernel/modsign_pubkey.c | 15 +- trunk/kernel/posix-cpu-timers.c | 3 + trunk/kernel/sched/fair.c | 5 +- trunk/kernel/signal.c | 74 + trunk/lib/atomic64.c | 17 +- trunk/lib/dma-debug.c | 66 +- trunk/mm/compaction.c | 26 +- trunk/mm/highmem.c | 1 + trunk/mm/huge_memory.c | 6 +- trunk/mm/ksm.c | 16 +- trunk/mm/memcontrol.c | 14 +- trunk/mm/page-writeback.c | 25 +- trunk/mm/page_alloc.c | 11 +- trunk/mm/truncate.c | 23 - trunk/mm/vmscan.c | 12 +- trunk/net/9p/trans_virtio.c | 3 +- trunk/net/atm/atm_sysfs.c | 40 +- trunk/net/bridge/br_mdb.c | 22 +- trunk/net/bridge/br_multicast.c | 13 +- trunk/net/bridge/br_netlink.c | 1 - trunk/net/bridge/br_private.h | 5 +- trunk/net/ceph/ceph_common.c | 3 +- trunk/net/ceph/messenger.c | 107 +- trunk/net/ceph/osd_client.c | 59 +- trunk/net/ceph/osdmap.c | 47 +- trunk/net/dccp/ipv4.c | 4 +- trunk/net/dccp/ipv6.c | 3 +- trunk/net/ipv4/inet_connection_sock.c | 16 + trunk/net/ipv4/tcp_ipv4.c | 6 +- trunk/net/ipv6/Makefile | 2 +- trunk/net/ipv6/addrconf.c | 3 +- trunk/net/ipv6/ndisc.c | 17 + trunk/net/ipv6/tcp_ipv6.c | 3 +- trunk/net/mac802154/ieee802154_dev.c | 4 +- trunk/net/netlink/af_netlink.c | 5 +- trunk/net/sctp/Kconfig | 27 +- trunk/net/sctp/probe.c | 3 +- trunk/net/sctp/protocol.c | 4 +- trunk/net/sunrpc/rpcb_clnt.c | 1 - trunk/net/sunrpc/svc.c | 8 +- trunk/net/sunrpc/svcsock.c | 98 +- trunk/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 10 +- trunk/net/sunrpc/xprtrdma/svc_rdma_sendto.c | 4 +- trunk/scripts/checkpatch.pl | 7 +- trunk/scripts/coccinelle/misc/warn.cocci | 109 + trunk/scripts/config | 1 - trunk/scripts/pnmtologo.c | 7 + trunk/scripts/tags.sh | 57 +- trunk/security/keys/process_keys.c | 2 - trunk/security/selinux/nlmsgtab.c | 2 + trunk/sound/pci/hda/hda_intel.c | 4 +- trunk/sound/pci/hda/patch_hdmi.c | 46 +- trunk/sound/pci/hda/patch_realtek.c | 5 +- trunk/sound/pci/hda/patch_sigmatel.c | 2 +- trunk/sound/soc/codecs/cs42l73.c | 116 +- trunk/sound/soc/codecs/sigmadsp.c | 2 +- trunk/sound/soc/codecs/tpa6130a2.c | 23 +- trunk/sound/soc/soc-compress.c | 2 +- trunk/sound/soc/soc-core.c | 10 +- trunk/sound/soc/soc-pcm.c | 12 +- trunk/sound/usb/midi.c | 4 + trunk/sound/usb/quirks-table.h | 123 ++ trunk/sound/usb/quirks.c | 91 + trunk/sound/usb/usbaudio.h | 1 + trunk/tools/lguest/lguest.c | 84 +- trunk/tools/virtio/virtio_test.c | 4 +- 784 files changed, 26953 insertions(+), 7561 deletions(-) delete mode 100644 trunk/Documentation/ABI/testing/sysfs-devices-node create mode 100644 trunk/Documentation/devicetree/bindings/spi/spi_atmel.txt create mode 100644 trunk/Documentation/filesystems/f2fs.txt rename trunk/arch/arm/boot/dts/{sun4i-cubieboard.dts => sun4i-a10-cubieboard.dts} (87%) rename trunk/arch/arm/boot/dts/{sun4i.dtsi => sun4i-a10.dtsi} (100%) rename trunk/arch/arm/boot/dts/{sun5i-olinuxino.dts => sun5i-a13-olinuxino.dts} (86%) rename trunk/arch/arm/boot/dts/{sun5i.dtsi => sun5i-a13.dtsi} (100%) rename trunk/arch/arm/{plat-mxc => mach-imx}/devices/platform-mx2-emma.c (94%) delete mode 100644 trunk/arch/arm/plat-omap/debug-devices.c delete mode 100644 trunk/arch/arm/plat-omap/include/plat/debug-devices.h delete mode 100644 trunk/arch/c6x/include/asm/mmu.h rename trunk/arch/cris/include/{ => uapi}/arch-v10/arch/sv_addr.agh (100%) rename trunk/arch/cris/include/{ => uapi}/arch-v10/arch/sv_addr_ag.h (100%) rename trunk/arch/cris/include/{ => uapi}/arch-v10/arch/svinto.h (100%) rename trunk/arch/cris/include/{ => uapi}/arch-v10/arch/user.h (100%) create mode 100644 trunk/arch/cris/include/uapi/arch-v32/arch/cryptocop.h rename trunk/arch/cris/include/{ => uapi}/arch-v32/arch/user.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/auxvec.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/bitsperlong.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/byteorder.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/errno.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/ethernet.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/etraxgpio.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/fcntl.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/ioctl.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/ioctls.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/ipcbuf.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/mman.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/msgbuf.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/param.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/poll.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/posix_types.h (100%) create mode 100644 trunk/arch/cris/include/uapi/asm/ptrace.h rename trunk/arch/cris/include/{ => uapi}/asm/resource.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/rs485.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/sembuf.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/setup.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/shmbuf.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/sigcontext.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/siginfo.h (100%) create mode 100644 trunk/arch/cris/include/uapi/asm/signal.h rename trunk/arch/cris/include/{ => uapi}/asm/socket.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/sockios.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/stat.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/statfs.h (100%) create mode 100644 trunk/arch/cris/include/uapi/asm/swab.h rename trunk/arch/cris/include/{ => uapi}/asm/sync_serial.h (100%) rename trunk/arch/cris/include/{ => uapi}/asm/termbits.h (100%) create mode 100644 trunk/arch/cris/include/uapi/asm/termios.h create mode 100644 trunk/arch/cris/include/uapi/asm/types.h create mode 100644 trunk/arch/cris/include/uapi/asm/unistd.h delete mode 100644 trunk/arch/h8300/include/asm/mmu.h rename trunk/arch/h8300/include/{ => uapi}/asm/auxvec.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/bitsperlong.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/byteorder.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/errno.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/fcntl.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/ioctl.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/ioctls.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/ipcbuf.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/kvm_para.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/mman.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/msgbuf.h (100%) create mode 100644 trunk/arch/h8300/include/uapi/asm/param.h rename trunk/arch/h8300/include/{ => uapi}/asm/poll.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/posix_types.h (100%) create mode 100644 trunk/arch/h8300/include/uapi/asm/ptrace.h rename trunk/arch/h8300/include/{ => uapi}/asm/resource.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/sembuf.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/setup.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/shmbuf.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/sigcontext.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/siginfo.h (100%) create mode 100644 trunk/arch/h8300/include/uapi/asm/signal.h rename trunk/arch/h8300/include/{ => uapi}/asm/socket.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/sockios.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/stat.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/statfs.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/swab.h (100%) rename trunk/arch/h8300/include/{ => uapi}/asm/termbits.h (100%) create mode 100644 trunk/arch/h8300/include/uapi/asm/termios.h create mode 100644 trunk/arch/h8300/include/uapi/asm/types.h create mode 100644 trunk/arch/h8300/include/uapi/asm/unistd.h rename trunk/arch/m32r/include/{ => uapi}/asm/auxvec.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/bitsperlong.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/byteorder.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/errno.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/fcntl.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/ioctl.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/ioctls.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/ipcbuf.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/mman.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/msgbuf.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/param.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/poll.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/posix_types.h (100%) create mode 100644 trunk/arch/m32r/include/uapi/asm/ptrace.h rename trunk/arch/m32r/include/{ => uapi}/asm/resource.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/sembuf.h (100%) create mode 100644 trunk/arch/m32r/include/uapi/asm/setup.h rename trunk/arch/m32r/include/{ => uapi}/asm/shmbuf.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/sigcontext.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/siginfo.h (100%) create mode 100644 trunk/arch/m32r/include/uapi/asm/signal.h rename trunk/arch/m32r/include/{ => uapi}/asm/socket.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/sockios.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/stat.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/statfs.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/swab.h (100%) rename trunk/arch/m32r/include/{ => uapi}/asm/termbits.h (100%) create mode 100644 trunk/arch/m32r/include/uapi/asm/termios.h create mode 100644 trunk/arch/m32r/include/uapi/asm/types.h create mode 100644 trunk/arch/m32r/include/uapi/asm/unistd.h rename trunk/arch/score/include/{ => uapi}/asm/auxvec.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/bitsperlong.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/byteorder.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/errno.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/fcntl.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/ioctl.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/ioctls.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/ipcbuf.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/kvm_para.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/mman.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/msgbuf.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/param.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/poll.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/posix_types.h (100%) create mode 100644 trunk/arch/score/include/uapi/asm/ptrace.h rename trunk/arch/score/include/{ => uapi}/asm/resource.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/sembuf.h (100%) create mode 100644 trunk/arch/score/include/uapi/asm/setup.h rename trunk/arch/score/include/{ => uapi}/asm/shmbuf.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/sigcontext.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/siginfo.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/signal.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/socket.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/sockios.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/stat.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/statfs.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/swab.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/termbits.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/termios.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/types.h (100%) rename trunk/arch/score/include/{ => uapi}/asm/unistd.h (90%) delete mode 100644 trunk/arch/xtensa/include/asm/nommu.h create mode 100644 trunk/fs/f2fs/Kconfig create mode 100644 trunk/fs/f2fs/Makefile create mode 100644 trunk/fs/f2fs/acl.c create mode 100644 trunk/fs/f2fs/acl.h create mode 100644 trunk/fs/f2fs/checkpoint.c create mode 100644 trunk/fs/f2fs/data.c create mode 100644 trunk/fs/f2fs/debug.c create mode 100644 trunk/fs/f2fs/dir.c create mode 100644 trunk/fs/f2fs/f2fs.h create mode 100644 trunk/fs/f2fs/file.c create mode 100644 trunk/fs/f2fs/gc.c create mode 100644 trunk/fs/f2fs/gc.h create mode 100644 trunk/fs/f2fs/hash.c create mode 100644 trunk/fs/f2fs/inode.c create mode 100644 trunk/fs/f2fs/namei.c create mode 100644 trunk/fs/f2fs/node.c create mode 100644 trunk/fs/f2fs/node.h create mode 100644 trunk/fs/f2fs/recovery.c create mode 100644 trunk/fs/f2fs/segment.c create mode 100644 trunk/fs/f2fs/segment.h create mode 100644 trunk/fs/f2fs/super.c create mode 100644 trunk/fs/f2fs/xattr.c create mode 100644 trunk/fs/f2fs/xattr.h delete mode 100644 trunk/fs/nfsd/fault_inject.h create mode 100644 trunk/include/linux/f2fs_fs.h rename trunk/{arch/arm/plat-omap/include/plat/omap-serial.h => include/linux/platform_data/serial-omap.h} (100%) create mode 100644 trunk/scripts/coccinelle/misc/warn.cocci diff --git a/[refs] b/[refs] index 53415eef18f5..2a9411ae5f1d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d692170037c0338b31dac5ac4722c1360a4b5257 +refs/heads/master: 4fe19a136a8871e5fc6e44d72979f18a4968c2ab diff --git a/trunk/Documentation/ABI/testing/sysfs-bus-rbd b/trunk/Documentation/ABI/testing/sysfs-bus-rbd index 1cf2adf46b11..cd9213ccf3dc 100644 --- a/trunk/Documentation/ABI/testing/sysfs-bus-rbd +++ b/trunk/Documentation/ABI/testing/sysfs-bus-rbd @@ -70,6 +70,10 @@ snap_* A directory per each snapshot +parent + + Information identifying the pool, image, and snapshot id for + the parent image in a layered rbd image (format 2 only). Entries under /sys/bus/rbd/devices//snap_ ------------------------------------------------------------- diff --git a/trunk/Documentation/ABI/testing/sysfs-devices-node b/trunk/Documentation/ABI/testing/sysfs-devices-node deleted file mode 100644 index 453a210c3ceb..000000000000 --- a/trunk/Documentation/ABI/testing/sysfs-devices-node +++ /dev/null @@ -1,7 +0,0 @@ -What: /sys/devices/system/node/nodeX/compact -Date: February 2010 -Contact: Mel Gorman -Description: - When this file is written to, all memory within that node - will be compacted. When it completes, memory will be freed - into blocks which have as many contiguous pages as possible diff --git a/trunk/Documentation/DMA-API-HOWTO.txt b/trunk/Documentation/DMA-API-HOWTO.txt index a0b6250add79..4a4fb295ceef 100644 --- a/trunk/Documentation/DMA-API-HOWTO.txt +++ b/trunk/Documentation/DMA-API-HOWTO.txt @@ -468,11 +468,46 @@ To map a single region, you do: size_t size = buffer->len; dma_handle = dma_map_single(dev, addr, size, direction); + if (dma_mapping_error(dma_handle)) { + /* + * reduce current DMA mapping usage, + * delay and try again later or + * reset driver. + */ + goto map_error_handling; + } and to unmap it: dma_unmap_single(dev, dma_handle, size, direction); +You should call dma_mapping_error() as dma_map_single() could fail and return +error. Not all dma implementations support dma_mapping_error() interface. +However, it is a good practice to call dma_mapping_error() interface, which +will invoke the generic mapping error check interface. Doing so will ensure +that the mapping code will work correctly on all dma implementations without +any dependency on the specifics of the underlying implementation. Using the +returned address without checking for errors could result in failures ranging +from panics to silent data corruption. Couple of example of incorrect ways to +check for errors that make assumptions about the underlying dma implementation +are as follows and these are applicable to dma_map_page() as well. + +Incorrect example 1: + dma_addr_t dma_handle; + + dma_handle = dma_map_single(dev, addr, size, direction); + if ((dma_handle & 0xffff != 0) || (dma_handle >= 0x1000000)) { + goto map_error; + } + +Incorrect example 2: + dma_addr_t dma_handle; + + dma_handle = dma_map_single(dev, addr, size, direction); + if (dma_handle == DMA_ERROR_CODE) { + goto map_error; + } + You should call dma_unmap_single when the DMA activity is finished, e.g. from the interrupt which told you that the DMA transfer is done. @@ -489,6 +524,14 @@ Specifically: size_t size = buffer->len; dma_handle = dma_map_page(dev, page, offset, size, direction); + if (dma_mapping_error(dma_handle)) { + /* + * reduce current DMA mapping usage, + * delay and try again later or + * reset driver. + */ + goto map_error_handling; + } ... @@ -496,6 +539,12 @@ Specifically: Here, "offset" means byte offset within the given page. +You should call dma_mapping_error() as dma_map_page() could fail and return +error as outlined under the dma_map_single() discussion. + +You should call dma_unmap_page when the DMA activity is finished, e.g. +from the interrupt which told you that the DMA transfer is done. + With scatterlists, you map a region gathered from several regions by: int i, count = dma_map_sg(dev, sglist, nents, direction); @@ -578,6 +627,14 @@ to use the dma_sync_*() interfaces. dma_addr_t mapping; mapping = dma_map_single(cp->dev, buffer, len, DMA_FROM_DEVICE); + if (dma_mapping_error(dma_handle)) { + /* + * reduce current DMA mapping usage, + * delay and try again later or + * reset driver. + */ + goto map_error_handling; + } cp->rx_buf = buffer; cp->rx_len = len; @@ -658,6 +715,75 @@ failure can be determined by: * delay and try again later or * reset driver. */ + goto map_error_handling; + } + +- unmap pages that are already mapped, when mapping error occurs in the middle + of a multiple page mapping attempt. These example are applicable to + dma_map_page() as well. + +Example 1: + dma_addr_t dma_handle1; + dma_addr_t dma_handle2; + + dma_handle1 = dma_map_single(dev, addr, size, direction); + if (dma_mapping_error(dev, dma_handle1)) { + /* + * reduce current DMA mapping usage, + * delay and try again later or + * reset driver. + */ + goto map_error_handling1; + } + dma_handle2 = dma_map_single(dev, addr, size, direction); + if (dma_mapping_error(dev, dma_handle2)) { + /* + * reduce current DMA mapping usage, + * delay and try again later or + * reset driver. + */ + goto map_error_handling2; + } + + ... + + map_error_handling2: + dma_unmap_single(dma_handle1); + map_error_handling1: + +Example 2: (if buffers are allocated a loop, unmap all mapped buffers when + mapping error is detected in the middle) + + dma_addr_t dma_addr; + dma_addr_t array[DMA_BUFFERS]; + int save_index = 0; + + for (i = 0; i < DMA_BUFFERS; i++) { + + ... + + dma_addr = dma_map_single(dev, addr, size, direction); + if (dma_mapping_error(dev, dma_addr)) { + /* + * reduce current DMA mapping usage, + * delay and try again later or + * reset driver. + */ + goto map_error_handling; + } + array[i].dma_addr = dma_addr; + save_index++; + } + + ... + + map_error_handling: + + for (i = 0; i < save_index; i++) { + + ... + + dma_unmap_single(array[i].dma_addr); } Networking drivers must call dev_kfree_skb to free the socket buffer diff --git a/trunk/Documentation/DMA-API.txt b/trunk/Documentation/DMA-API.txt index 66bd97a95f10..78a6c569d204 100644 --- a/trunk/Documentation/DMA-API.txt +++ b/trunk/Documentation/DMA-API.txt @@ -678,3 +678,15 @@ out of dma_debug_entries. These entries are preallocated at boot. The number of preallocated entries is defined per architecture. If it is too low for you boot with 'dma_debug_entries=' to overwrite the architectural default. + +void debug_dmap_mapping_error(struct device *dev, dma_addr_t dma_addr); + +dma-debug interface debug_dma_mapping_error() to debug drivers that fail +to check dma mapping errors on addresses returned by dma_map_single() and +dma_map_page() interfaces. This interface clears a flag set by +debug_dma_map_page() to indicate that dma_mapping_error() has been called by +the driver. When driver does unmap, debug_dma_unmap() checks the flag and if +this flag is still set, prints warning message that includes call trace that +leads up to the unmap. This interface can be called from dma_mapping_error() +routines to enable dma mapping error check debugging. + diff --git a/trunk/Documentation/devicetree/bindings/spi/nvidia,tegra20-sflash.txt b/trunk/Documentation/devicetree/bindings/spi/nvidia,tegra20-sflash.txt index 8cf24f6f0a99..7b53da5cb75b 100644 --- a/trunk/Documentation/devicetree/bindings/spi/nvidia,tegra20-sflash.txt +++ b/trunk/Documentation/devicetree/bindings/spi/nvidia,tegra20-sflash.txt @@ -13,7 +13,7 @@ Recommended properties: Example: -spi@7000d600 { +spi@7000c380 { compatible = "nvidia,tegra20-sflash"; reg = <0x7000c380 0x80>; interrupts = <0 39 0x04>; diff --git a/trunk/Documentation/devicetree/bindings/spi/nvidia,tegra20-slink.txt b/trunk/Documentation/devicetree/bindings/spi/nvidia,tegra20-slink.txt index f5b1ad1a1ec3..eefe15e3d95e 100644 --- a/trunk/Documentation/devicetree/bindings/spi/nvidia,tegra20-slink.txt +++ b/trunk/Documentation/devicetree/bindings/spi/nvidia,tegra20-slink.txt @@ -13,7 +13,7 @@ Recommended properties: Example: -slink@7000d600 { +spi@7000d600 { compatible = "nvidia,tegra20-slink"; reg = <0x7000d600 0x200>; interrupts = <0 82 0x04>; diff --git a/trunk/Documentation/devicetree/bindings/spi/spi_atmel.txt b/trunk/Documentation/devicetree/bindings/spi/spi_atmel.txt new file mode 100644 index 000000000000..07e04cdc0c9e --- /dev/null +++ b/trunk/Documentation/devicetree/bindings/spi/spi_atmel.txt @@ -0,0 +1,26 @@ +Atmel SPI device + +Required properties: +- compatible : should be "atmel,at91rm9200-spi". +- reg: Address and length of the register set for the device +- interrupts: Should contain spi interrupt +- cs-gpios: chipselects + +Example: + +spi1: spi@fffcc000 { + compatible = "atmel,at91rm9200-spi"; + reg = <0xfffcc000 0x4000>; + interrupts = <13 4 5>; + #address-cells = <1>; + #size-cells = <0>; + cs-gpios = <&pioB 3 0>; + status = "okay"; + + mmc-slot@0 { + compatible = "mmc-spi-slot"; + reg = <0>; + gpios = <&pioC 4 0>; /* CD */ + spi-max-frequency = <25000000>; + }; +}; diff --git a/trunk/Documentation/filesystems/00-INDEX b/trunk/Documentation/filesystems/00-INDEX index 7b52ba7bf32a..8042050eb265 100644 --- a/trunk/Documentation/filesystems/00-INDEX +++ b/trunk/Documentation/filesystems/00-INDEX @@ -50,6 +50,8 @@ ext4.txt - info, mount options and specifications for the Ext4 filesystem. files.txt - info on file management in the Linux kernel. +f2fs.txt + - info and mount options for the F2FS filesystem. fuse.txt - info on the Filesystem in User SpacE including mount options. gfs2.txt diff --git a/trunk/Documentation/filesystems/Locking b/trunk/Documentation/filesystems/Locking index e540a24e5d06..f48e0c6b4c42 100644 --- a/trunk/Documentation/filesystems/Locking +++ b/trunk/Documentation/filesystems/Locking @@ -80,7 +80,6 @@ rename: yes (all) (see below) readlink: no follow_link: no put_link: no -truncate: yes (see below) setattr: yes permission: no (may not block if called in rcu-walk mode) get_acl: no @@ -96,11 +95,6 @@ atomic_open: yes Additionally, ->rmdir(), ->unlink() and ->rename() have ->i_mutex on victim. cross-directory ->rename() has (per-superblock) ->s_vfs_rename_sem. - ->truncate() is never called directly - it's a callback, not a -method. It's called by vmtruncate() - deprecated library function used by -->setattr(). Locking information above applies to that call (i.e. is -inherited from ->setattr() - vmtruncate() is used when ATTR_SIZE had been -passed). See Documentation/filesystems/directory-locking for more detailed discussion of the locking scheme for directory operations. diff --git a/trunk/Documentation/filesystems/caching/backend-api.txt b/trunk/Documentation/filesystems/caching/backend-api.txt index 382d52cdaf2d..d78bab9622c6 100644 --- a/trunk/Documentation/filesystems/caching/backend-api.txt +++ b/trunk/Documentation/filesystems/caching/backend-api.txt @@ -308,6 +308,18 @@ performed on the denizens of the cache. These are held in a structure of type: obtained by calling object->cookie->def->get_aux()/get_attr(). + (*) Invalidate data object [mandatory]: + + int (*invalidate_object)(struct fscache_operation *op) + + This is called to invalidate a data object (as pointed to by op->object). + All the data stored for this object should be discarded and an + attr_changed operation should be performed. The caller will follow up + with an object update operation. + + fscache_op_complete() must be called on op before returning. + + (*) Discard object [mandatory]: void (*drop_object)(struct fscache_object *object) @@ -419,7 +431,10 @@ performed on the denizens of the cache. These are held in a structure of type: If an I/O error occurs, fscache_io_error() should be called and -ENOBUFS returned if possible or fscache_end_io() called with a suitable error - code.. + code. + + fscache_put_retrieval() should be called after a page or pages are dealt + with. This will complete the operation when all pages are dealt with. (*) Request pages be read from cache [mandatory]: @@ -526,6 +541,27 @@ FS-Cache provides some utilities that a cache backend may make use of: error value should be 0 if successful and an error otherwise. + (*) Record that one or more pages being retrieved or allocated have been dealt + with: + + void fscache_retrieval_complete(struct fscache_retrieval *op, + int n_pages); + + This is called to record the fact that one or more pages have been dealt + with and are no longer the concern of this operation. When the number of + pages remaining in the operation reaches 0, the operation will be + completed. + + + (*) Record operation completion: + + void fscache_op_complete(struct fscache_operation *op); + + This is called to record the completion of an operation. This deducts + this operation from the parent object's run state, potentially permitting + one or more pending operations to start running. + + (*) Set highest store limit: void fscache_set_store_limit(struct fscache_object *object, diff --git a/trunk/Documentation/filesystems/caching/netfs-api.txt b/trunk/Documentation/filesystems/caching/netfs-api.txt index 7cc6bf2871eb..97e6c0ecc5ef 100644 --- a/trunk/Documentation/filesystems/caching/netfs-api.txt +++ b/trunk/Documentation/filesystems/caching/netfs-api.txt @@ -35,8 +35,9 @@ This document contains the following sections: (12) Index and data file update (13) Miscellaneous cookie operations (14) Cookie unregistration - (15) Index and data file invalidation - (16) FS-Cache specific page flags. + (15) Index invalidation + (16) Data file invalidation + (17) FS-Cache specific page flags. ============================= @@ -767,13 +768,42 @@ the cookies for "child" indices, objects and pages have been relinquished first. -================================ -INDEX AND DATA FILE INVALIDATION -================================ +================== +INDEX INVALIDATION +================== + +There is no direct way to invalidate an index subtree. To do this, the caller +should relinquish and retire the cookie they have, and then acquire a new one. + + +====================== +DATA FILE INVALIDATION +====================== + +Sometimes it will be necessary to invalidate an object that contains data. +Typically this will be necessary when the server tells the netfs of a foreign +change - at which point the netfs has to throw away all the state it had for an +inode and reload from the server. + +To indicate that a cache object should be invalidated, the following function +can be called: + + void fscache_invalidate(struct fscache_cookie *cookie); + +This can be called with spinlocks held as it defers the work to a thread pool. +All extant storage, retrieval and attribute change ops at this point are +cancelled and discarded. Some future operations will be rejected until the +cache has had a chance to insert a barrier in the operations queue. After +that, operations will be queued again behind the invalidation operation. + +The invalidation operation will perform an attribute change operation and an +auxiliary data update operation as it is very likely these will have changed. + +Using the following function, the netfs can wait for the invalidation operation +to have reached a point at which it can start submitting ordinary operations +once again: -There is no direct way to invalidate an index subtree or a data file. To do -this, the caller should relinquish and retire the cookie they have, and then -acquire a new one. + void fscache_wait_on_invalidate(struct fscache_cookie *cookie); =========================== diff --git a/trunk/Documentation/filesystems/caching/object.txt b/trunk/Documentation/filesystems/caching/object.txt index 58313348da87..100ff41127e4 100644 --- a/trunk/Documentation/filesystems/caching/object.txt +++ b/trunk/Documentation/filesystems/caching/object.txt @@ -216,7 +216,14 @@ servicing netfs requests: The normal running state. In this state, requests the netfs makes will be passed on to the cache. - (6) State FSCACHE_OBJECT_UPDATING. + (6) State FSCACHE_OBJECT_INVALIDATING. + + The object is undergoing invalidation. When the state comes here, it + discards all pending read, write and attribute change operations as it is + going to clear out the cache entirely and reinitialise it. It will then + continue to the FSCACHE_OBJECT_UPDATING state. + + (7) State FSCACHE_OBJECT_UPDATING. The state machine comes here to update the object in the cache from the netfs's records. This involves updating the auxiliary data that is used @@ -225,13 +232,13 @@ servicing netfs requests: And there are terminal states in which an object cleans itself up, deallocates memory and potentially deletes stuff from disk: - (7) State FSCACHE_OBJECT_LC_DYING. + (8) State FSCACHE_OBJECT_LC_DYING. The object comes here if it is dying because of a lookup or creation error. This would be due to a disk error or system error of some sort. Temporary data is cleaned up, and the parent is released. - (8) State FSCACHE_OBJECT_DYING. + (9) State FSCACHE_OBJECT_DYING. The object comes here if it is dying due to an error, because its parent cookie has been relinquished by the netfs or because the cache is being @@ -241,27 +248,27 @@ memory and potentially deletes stuff from disk: can destroy themselves. This object waits for all its children to go away before advancing to the next state. - (9) State FSCACHE_OBJECT_ABORT_INIT. +(10) State FSCACHE_OBJECT_ABORT_INIT. The object comes to this state if it was waiting on its parent in FSCACHE_OBJECT_INIT, but its parent died. The object will destroy itself so that the parent may proceed from the FSCACHE_OBJECT_DYING state. -(10) State FSCACHE_OBJECT_RELEASING. -(11) State FSCACHE_OBJECT_RECYCLING. +(11) State FSCACHE_OBJECT_RELEASING. +(12) State FSCACHE_OBJECT_RECYCLING. The object comes to one of these two states when dying once it is rid of all its children, if it is dying because the netfs relinquished its cookie. In the first state, the cached data is expected to persist, and in the second it will be deleted. -(12) State FSCACHE_OBJECT_WITHDRAWING. +(13) State FSCACHE_OBJECT_WITHDRAWING. The object transits to this state if the cache decides it wants to withdraw the object from service, perhaps to make space, but also due to error or just because the whole cache is being withdrawn. -(13) State FSCACHE_OBJECT_DEAD. +(14) State FSCACHE_OBJECT_DEAD. The object transits to this state when the in-memory object record is ready to be deleted. The object processor shouldn't ever see an object in diff --git a/trunk/Documentation/filesystems/caching/operations.txt b/trunk/Documentation/filesystems/caching/operations.txt index b6b070c57cbf..bee2a5f93d60 100644 --- a/trunk/Documentation/filesystems/caching/operations.txt +++ b/trunk/Documentation/filesystems/caching/operations.txt @@ -174,7 +174,7 @@ Operations are used through the following procedure: necessary (the object might have died whilst the thread was waiting). When it has finished doing its processing, it should call - fscache_put_operation() on it. + fscache_op_complete() and fscache_put_operation() on it. (4) The operation holds an effective lock upon the object, preventing other exclusive ops conflicting until it is released. The operation can be diff --git a/trunk/Documentation/filesystems/f2fs.txt b/trunk/Documentation/filesystems/f2fs.txt new file mode 100644 index 000000000000..8fbd8b46ee34 --- /dev/null +++ b/trunk/Documentation/filesystems/f2fs.txt @@ -0,0 +1,421 @@ +================================================================================ +WHAT IS Flash-Friendly File System (F2FS)? +================================================================================ + +NAND flash memory-based storage devices, such as SSD, eMMC, and SD cards, have +been equipped on a variety systems ranging from mobile to server systems. Since +they are known to have different characteristics from the conventional rotating +disks, a file system, an upper layer to the storage device, should adapt to the +changes from the sketch in the design level. + +F2FS is a file system exploiting NAND flash memory-based storage devices, which +is based on Log-structured File System (LFS). The design has been focused on +addressing the fundamental issues in LFS, which are snowball effect of wandering +tree and high cleaning overhead. + +Since a NAND flash memory-based storage device shows different characteristic +according to its internal geometry or flash memory management scheme, namely FTL, +F2FS and its tools support various parameters not only for configuring on-disk +layout, but also for selecting allocation and cleaning algorithms. + +The file system formatting tool, "mkfs.f2fs", is available from the following +git tree: +>> git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git + +For reporting bugs and sending patches, please use the following mailing list: +>> linux-f2fs-devel@lists.sourceforge.net + +================================================================================ +BACKGROUND AND DESIGN ISSUES +================================================================================ + +Log-structured File System (LFS) +-------------------------------- +"A log-structured file system writes all modifications to disk sequentially in +a log-like structure, thereby speeding up both file writing and crash recovery. +The log is the only structure on disk; it contains indexing information so that +files can be read back from the log efficiently. In order to maintain large free +areas on disk for fast writing, we divide the log into segments and use a +segment cleaner to compress the live information from heavily fragmented +segments." from Rosenblum, M. and Ousterhout, J. K., 1992, "The design and +implementation of a log-structured file system", ACM Trans. Computer Systems +10, 1, 26–52. + +Wandering Tree Problem +---------------------- +In LFS, when a file data is updated and written to the end of log, its direct +pointer block is updated due to the changed location. Then the indirect pointer +block is also updated due to the direct pointer block update. In this manner, +the upper index structures such as inode, inode map, and checkpoint block are +also updated recursively. This problem is called as wandering tree problem [1], +and in order to enhance the performance, it should eliminate or relax the update +propagation as much as possible. + +[1] Bityutskiy, A. 2005. JFFS3 design issues. http://www.linux-mtd.infradead.org/ + +Cleaning Overhead +----------------- +Since LFS is based on out-of-place writes, it produces so many obsolete blocks +scattered across the whole storage. In order to serve new empty log space, it +needs to reclaim these obsolete blocks seamlessly to users. This job is called +as a cleaning process. + +The process consists of three operations as follows. +1. A victim segment is selected through referencing segment usage table. +2. It loads parent index structures of all the data in the victim identified by + segment summary blocks. +3. It checks the cross-reference between the data and its parent index structure. +4. It moves valid data selectively. + +This cleaning job may cause unexpected long delays, so the most important goal +is to hide the latencies to users. And also definitely, it should reduce the +amount of valid data to be moved, and move them quickly as well. + +================================================================================ +KEY FEATURES +================================================================================ + +Flash Awareness +--------------- +- Enlarge the random write area for better performance, but provide the high + spatial locality +- Align FS data structures to the operational units in FTL as best efforts + +Wandering Tree Problem +---------------------- +- Use a term, “node”, that represents inodes as well as various pointer blocks +- Introduce Node Address Table (NAT) containing the locations of all the “node” + blocks; this will cut off the update propagation. + +Cleaning Overhead +----------------- +- Support a background cleaning process +- Support greedy and cost-benefit algorithms for victim selection policies +- Support multi-head logs for static/dynamic hot and cold data separation +- Introduce adaptive logging for efficient block allocation + +================================================================================ +MOUNT OPTIONS +================================================================================ + +background_gc_off Turn off cleaning operations, namely garbage collection, + triggered in background when I/O subsystem is idle. +disable_roll_forward Disable the roll-forward recovery routine +discard Issue discard/TRIM commands when a segment is cleaned. +no_heap Disable heap-style segment allocation which finds free + segments for data from the beginning of main area, while + for node from the end of main area. +nouser_xattr Disable Extended User Attributes. Note: xattr is enabled + by default if CONFIG_F2FS_FS_XATTR is selected. +noacl Disable POSIX Access Control List. Note: acl is enabled + by default if CONFIG_F2FS_FS_POSIX_ACL is selected. +active_logs=%u Support configuring the number of active logs. In the + current design, f2fs supports only 2, 4, and 6 logs. + Default number is 6. +disable_ext_identify Disable the extension list configured by mkfs, so f2fs + does not aware of cold files such as media files. + +================================================================================ +DEBUGFS ENTRIES +================================================================================ + +/sys/kernel/debug/f2fs/ contains information about all the partitions mounted as +f2fs. Each file shows the whole f2fs information. + +/sys/kernel/debug/f2fs/status includes: + - major file system information managed by f2fs currently + - average SIT information about whole segments + - current memory footprint consumed by f2fs. + +================================================================================ +USAGE +================================================================================ + +1. Download userland tools and compile them. + +2. Skip, if f2fs was compiled statically inside kernel. + Otherwise, insert the f2fs.ko module. + # insmod f2fs.ko + +3. Create a directory trying to mount + # mkdir /mnt/f2fs + +4. Format the block device, and then mount as f2fs + # mkfs.f2fs -l label /dev/block_device + # mount -t f2fs /dev/block_device /mnt/f2fs + +Format options +-------------- +-l [label] : Give a volume label, up to 256 unicode name. +-a [0 or 1] : Split start location of each area for heap-based allocation. + 1 is set by default, which performs this. +-o [int] : Set overprovision ratio in percent over volume size. + 5 is set by default. +-s [int] : Set the number of segments per section. + 1 is set by default. +-z [int] : Set the number of sections per zone. + 1 is set by default. +-e [str] : Set basic extension list. e.g. "mp3,gif,mov" + +================================================================================ +DESIGN +================================================================================ + +On-disk Layout +-------------- + +F2FS divides the whole volume into a number of segments, each of which is fixed +to 2MB in size. A section is composed of consecutive segments, and a zone +consists of a set of sections. By default, section and zone sizes are set to one +segment size identically, but users can easily modify the sizes by mkfs. + +F2FS splits the entire volume into six areas, and all the areas except superblock +consists of multiple segments as described below. + + align with the zone size <-| + |-> align with the segment size + _________________________________________________________________________ + | | | Node | Segment | Segment | | + | Superblock | Checkpoint | Address | Info. | Summary | Main | + | (SB) | (CP) | Table (NAT) | Table (SIT) | Area (SSA) | | + |____________|_____2______|______N______|______N______|______N_____|__N___| + . . + . . + . . + ._________________________________________. + |_Segment_|_..._|_Segment_|_..._|_Segment_| + . . + ._________._________ + |_section_|__...__|_ + . . + .________. + |__zone__| + +- Superblock (SB) + : It is located at the beginning of the partition, and there exist two copies + to avoid file system crash. It contains basic partition information and some + default parameters of f2fs. + +- Checkpoint (CP) + : It contains file system information, bitmaps for valid NAT/SIT sets, orphan + inode lists, and summary entries of current active segments. + +- Node Address Table (NAT) + : It is composed of a block address table for all the node blocks stored in + Main area. + +- Segment Information Table (SIT) + : It contains segment information such as valid block count and bitmap for the + validity of all the blocks. + +- Segment Summary Area (SSA) + : It contains summary entries which contains the owner information of all the + data and node blocks stored in Main area. + +- Main Area + : It contains file and directory data including their indices. + +In order to avoid misalignment between file system and flash-based storage, F2FS +aligns the start block address of CP with the segment size. Also, it aligns the +start block address of Main area with the zone size by reserving some segments +in SSA area. + +Reference the following survey for additional technical details. +https://wiki.linaro.org/WorkingGroups/Kernel/Projects/FlashCardSurvey + +File System Metadata Structure +------------------------------ + +F2FS adopts the checkpointing scheme to maintain file system consistency. At +mount time, F2FS first tries to find the last valid checkpoint data by scanning +CP area. In order to reduce the scanning time, F2FS uses only two copies of CP. +One of them always indicates the last valid data, which is called as shadow copy +mechanism. In addition to CP, NAT and SIT also adopt the shadow copy mechanism. + +For file system consistency, each CP points to which NAT and SIT copies are +valid, as shown as below. + + +--------+----------+---------+ + | CP | NAT | SIT | + +--------+----------+---------+ + . . . . + . . . . + . . . . + +-------+-------+--------+--------+--------+--------+ + | CP #0 | CP #1 | NAT #0 | NAT #1 | SIT #0 | SIT #1 | + +-------+-------+--------+--------+--------+--------+ + | ^ ^ + | | | + `----------------------------------------' + +Index Structure +--------------- + +The key data structure to manage the data locations is a "node". Similar to +traditional file structures, F2FS has three types of node: inode, direct node, +indirect node. F2FS assigns 4KB to an inode block which contains 923 data block +indices, two direct node pointers, two indirect node pointers, and one double +indirect node pointer as described below. One direct node block contains 1018 +data blocks, and one indirect node block contains also 1018 node blocks. Thus, +one inode block (i.e., a file) covers: + + 4KB * (923 + 2 * 1018 + 2 * 1018 * 1018 + 1018 * 1018 * 1018) := 3.94TB. + + Inode block (4KB) + |- data (923) + |- direct node (2) + | `- data (1018) + |- indirect node (2) + | `- direct node (1018) + | `- data (1018) + `- double indirect node (1) + `- indirect node (1018) + `- direct node (1018) + `- data (1018) + +Note that, all the node blocks are mapped by NAT which means the location of +each node is translated by the NAT table. In the consideration of the wandering +tree problem, F2FS is able to cut off the propagation of node updates caused by +leaf data writes. + +Directory Structure +------------------- + +A directory entry occupies 11 bytes, which consists of the following attributes. + +- hash hash value of the file name +- ino inode number +- len the length of file name +- type file type such as directory, symlink, etc + +A dentry block consists of 214 dentry slots and file names. Therein a bitmap is +used to represent whether each dentry is valid or not. A dentry block occupies +4KB with the following composition. + + Dentry Block(4 K) = bitmap (27 bytes) + reserved (3 bytes) + + dentries(11 * 214 bytes) + file name (8 * 214 bytes) + + [Bucket] + +--------------------------------+ + |dentry block 1 | dentry block 2 | + +--------------------------------+ + . . + . . + . [Dentry Block Structure: 4KB] . + +--------+----------+----------+------------+ + | bitmap | reserved | dentries | file names | + +--------+----------+----------+------------+ + [Dentry Block: 4KB] . . + . . + . . + +------+------+-----+------+ + | hash | ino | len | type | + +------+------+-----+------+ + [Dentry Structure: 11 bytes] + +F2FS implements multi-level hash tables for directory structure. Each level has +a hash table with dedicated number of hash buckets as shown below. Note that +"A(2B)" means a bucket includes 2 data blocks. + +---------------------- +A : bucket +B : block +N : MAX_DIR_HASH_DEPTH +---------------------- + +level #0 | A(2B) + | +level #1 | A(2B) - A(2B) + | +level #2 | A(2B) - A(2B) - A(2B) - A(2B) + . | . . . . +level #N/2 | A(2B) - A(2B) - A(2B) - A(2B) - A(2B) - ... - A(2B) + . | . . . . +level #N | A(4B) - A(4B) - A(4B) - A(4B) - A(4B) - ... - A(4B) + +The number of blocks and buckets are determined by, + + ,- 2, if n < MAX_DIR_HASH_DEPTH / 2, + # of blocks in level #n = | + `- 4, Otherwise + + ,- 2^n, if n < MAX_DIR_HASH_DEPTH / 2, + # of buckets in level #n = | + `- 2^((MAX_DIR_HASH_DEPTH / 2) - 1), Otherwise + +When F2FS finds a file name in a directory, at first a hash value of the file +name is calculated. Then, F2FS scans the hash table in level #0 to find the +dentry consisting of the file name and its inode number. If not found, F2FS +scans the next hash table in level #1. In this way, F2FS scans hash tables in +each levels incrementally from 1 to N. In each levels F2FS needs to scan only +one bucket determined by the following equation, which shows O(log(# of files)) +complexity. + + bucket number to scan in level #n = (hash value) % (# of buckets in level #n) + +In the case of file creation, F2FS finds empty consecutive slots that cover the +file name. F2FS searches the empty slots in the hash tables of whole levels from +1 to N in the same way as the lookup operation. + +The following figure shows an example of two cases holding children. + --------------> Dir <-------------- + | | + child child + + child - child [hole] - child + + child - child - child [hole] - [hole] - child + + Case 1: Case 2: + Number of children = 6, Number of children = 3, + File size = 7 File size = 7 + +Default Block Allocation +------------------------ + +At runtime, F2FS manages six active logs inside "Main" area: Hot/Warm/Cold node +and Hot/Warm/Cold data. + +- Hot node contains direct node blocks of directories. +- Warm node contains direct node blocks except hot node blocks. +- Cold node contains indirect node blocks +- Hot data contains dentry blocks +- Warm data contains data blocks except hot and cold data blocks +- Cold data contains multimedia data or migrated data blocks + +LFS has two schemes for free space management: threaded log and copy-and-compac- +tion. The copy-and-compaction scheme which is known as cleaning, is well-suited +for devices showing very good sequential write performance, since free segments +are served all the time for writing new data. However, it suffers from cleaning +overhead under high utilization. Contrarily, the threaded log scheme suffers +from random writes, but no cleaning process is needed. F2FS adopts a hybrid +scheme where the copy-and-compaction scheme is adopted by default, but the +policy is dynamically changed to the threaded log scheme according to the file +system status. + +In order to align F2FS with underlying flash-based storage, F2FS allocates a +segment in a unit of section. F2FS expects that the section size would be the +same as the unit size of garbage collection in FTL. Furthermore, with respect +to the mapping granularity in FTL, F2FS allocates each section of the active +logs from different zones as much as possible, since FTL can write the data in +the active logs into one allocation unit according to its mapping granularity. + +Cleaning process +---------------- + +F2FS does cleaning both on demand and in the background. On-demand cleaning is +triggered when there are not enough free segments to serve VFS calls. Background +cleaner is operated by a kernel thread, and triggers the cleaning job when the +system is idle. + +F2FS supports two victim selection policies: greedy and cost-benefit algorithms. +In the greedy algorithm, F2FS selects a victim segment having the smallest number +of valid blocks. In the cost-benefit algorithm, F2FS selects a victim segment +according to the segment age and the number of valid blocks in order to address +log block thrashing problem in the greedy algorithm. F2FS adopts the greedy +algorithm for on-demand cleaner, while background cleaner adopts cost-benefit +algorithm. + +In order to identify whether the data in the victim segment are valid or not, +F2FS manages a bitmap. Each bit represents the validity of a block, and the +bitmap is composed of a bit stream covering whole blocks in main area. diff --git a/trunk/Documentation/filesystems/nfs/nfs41-server.txt b/trunk/Documentation/filesystems/nfs/nfs41-server.txt index 092fad92a3f0..01c2db769791 100644 --- a/trunk/Documentation/filesystems/nfs/nfs41-server.txt +++ b/trunk/Documentation/filesystems/nfs/nfs41-server.txt @@ -39,21 +39,10 @@ interoperability problems with future clients. Known issues: from a linux client are possible, but we aren't really conformant with the spec (for example, we don't use kerberos on the backchannel correctly). - - Incomplete backchannel support: incomplete backchannel gss - support and no support for BACKCHANNEL_CTL mean that - callbacks (hence delegations and layouts) may not be - available and clients confused by the incomplete - implementation may fail. - We do not support SSV, which provides security for shared client-server state (thus preventing unauthorized tampering with locks and opens, for example). It is mandatory for servers to support this, though no clients use it yet. - - Mandatory operations which we do not support, such as - DESTROY_CLIENTID, are not currently used by clients, but will be - (and the spec recommends their uses in common cases), and - clients should not be expected to know how to recover from the - case where they are not supported. This will eventually cause - interoperability failures. In addition, some limitations are inherited from the current NFSv4 implementation: @@ -89,7 +78,7 @@ Operations | | MNI | or OPT) | | +----------------------+------------+--------------+----------------+ | ACCESS | REQ | | Section 18.1 | -NS | BACKCHANNEL_CTL | REQ | | Section 18.33 | +I | BACKCHANNEL_CTL | REQ | | Section 18.33 | I | BIND_CONN_TO_SESSION | REQ | | Section 18.34 | | CLOSE | REQ | | Section 18.2 | | COMMIT | REQ | | Section 18.3 | @@ -99,7 +88,7 @@ NS*| DELEGPURGE | OPT | FDELG (REQ) | Section 18.5 | | DELEGRETURN | OPT | FDELG, | Section 18.6 | | | | DDELG, pNFS | | | | | (REQ) | | -NS | DESTROY_CLIENTID | REQ | | Section 18.50 | +I | DESTROY_CLIENTID | REQ | | Section 18.50 | I | DESTROY_SESSION | REQ | | Section 18.37 | I | EXCHANGE_ID | REQ | | Section 18.35 | I | FREE_STATEID | REQ | | Section 18.38 | @@ -192,7 +181,6 @@ EXCHANGE_ID: CREATE_SESSION: * backchannel attributes are ignored -* backchannel security parameters are ignored SEQUENCE: * no support for dynamic slot table renegotiation (optional) @@ -202,7 +190,7 @@ Nonstandard compound limitations: ca_maxrequestsize request and a ca_maxresponsesize reply, so we may fail to live up to the promise we made in CREATE_SESSION fore channel negotiation. -* No more than one IO operation (read, write, readdir) allowed per - compound. +* No more than one read-like operation allowed per compound; encoding + replies that cross page boundaries (except for read data) not handled. See also http://wiki.linux-nfs.org/wiki/index.php/Server_4.0_and_4.1_issues. diff --git a/trunk/Documentation/filesystems/porting b/trunk/Documentation/filesystems/porting index 0742feebc6e2..0472c31c163b 100644 --- a/trunk/Documentation/filesystems/porting +++ b/trunk/Documentation/filesystems/porting @@ -281,7 +281,7 @@ ext2_write_failed and callers for an example. [mandatory] - ->truncate is going away. The whole truncate sequence needs to be + ->truncate is gone. The whole truncate sequence needs to be implemented in ->setattr, which is now mandatory for filesystems implementing on-disk size changes. Start with a copy of the old inode_setattr and vmtruncate, and the reorder the vmtruncate + foofs_vmtruncate sequence to diff --git a/trunk/Documentation/filesystems/vfs.txt b/trunk/Documentation/filesystems/vfs.txt index 2ee133e030c3..e3869098163e 100644 --- a/trunk/Documentation/filesystems/vfs.txt +++ b/trunk/Documentation/filesystems/vfs.txt @@ -350,7 +350,6 @@ struct inode_operations { int (*readlink) (struct dentry *, char __user *,int); void * (*follow_link) (struct dentry *, struct nameidata *); void (*put_link) (struct dentry *, struct nameidata *, void *); - void (*truncate) (struct inode *); int (*permission) (struct inode *, int); int (*get_acl)(struct inode *, int); int (*setattr) (struct dentry *, struct iattr *); @@ -431,16 +430,6 @@ otherwise noted. started might not be in the page cache at the end of the walk). - truncate: Deprecated. This will not be called if ->setsize is defined. - Called by the VFS to change the size of a file. The - i_size field of the inode is set to the desired size by the - VFS before this method is called. This method is called by - the truncate(2) system call and related functionality. - - Note: ->truncate and vmtruncate are deprecated. Do not add new - instances/calls of these. Filesystems should be converted to do their - truncate sequence via ->setattr(). - permission: called by the VFS to check for access rights on a POSIX-like filesystem. diff --git a/trunk/Documentation/hwmon/it87 b/trunk/Documentation/hwmon/it87 index 87850d86c559..8386aadc0a82 100644 --- a/trunk/Documentation/hwmon/it87 +++ b/trunk/Documentation/hwmon/it87 @@ -209,3 +209,13 @@ doesn't use CPU cycles. Trip points must be set properly before switching to automatic fan speed control mode. The driver will perform basic integrity checks before actually switching to automatic control mode. + + +Temperature offset attributes +----------------------------- + +The driver supports temp[1-3]_offset sysfs attributes to adjust the reported +temperature for thermal diodes or diode-connected thermal transistors. +If a temperature sensor is configured for thermistors, the attribute values +are ignored. If the thermal sensor type is Intel PECI, the temperature offset +must be programmed to the critical CPU temperature. diff --git a/trunk/Documentation/kernel-parameters.txt b/trunk/Documentation/kernel-parameters.txt index ddd84d627185..363e348bff9b 100644 --- a/trunk/Documentation/kernel-parameters.txt +++ b/trunk/Documentation/kernel-parameters.txt @@ -446,12 +446,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted. possible to determine what the correct size should be. This option provides an override for these situations. - capability.disable= - [SECURITY] Disable capabilities. This would normally - be used only if an alternative security model is to be - configured. Potentially dangerous and should only be - used if you are entirely sure of the consequences. - ccw_timeout_log [S390] See Documentation/s390/CommonIO for details. diff --git a/trunk/Makefile b/trunk/Makefile index 6f07f4a28b47..4fe05595b2da 100644 --- a/trunk/Makefile +++ b/trunk/Makefile @@ -124,7 +124,7 @@ $(if $(KBUILD_OUTPUT),, \ PHONY += $(MAKECMDGOALS) sub-make $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make - $(Q)@: + @: sub-make: FORCE $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ @@ -1027,11 +1027,14 @@ clean: rm-dirs := $(CLEAN_DIRS) clean: rm-files := $(CLEAN_FILES) clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) -PHONY += $(clean-dirs) clean archclean +PHONY += $(clean-dirs) clean archclean vmlinuxclean $(clean-dirs): $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) -clean: archclean +vmlinuxclean: + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean + +clean: archclean vmlinuxclean # mrproper - Delete all generated files, including .config # @@ -1258,7 +1261,6 @@ scripts: ; endif # KBUILD_EXTMOD clean: $(clean-dirs) - $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean $(call cmd,rmdirs) $(call cmd,rmfiles) @find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \ diff --git a/trunk/arch/Kconfig b/trunk/arch/Kconfig index 8e9e3246b2b4..7f8f281f2585 100644 --- a/trunk/arch/Kconfig +++ b/trunk/arch/Kconfig @@ -291,12 +291,6 @@ config ARCH_WANT_OLD_COMPAT_IPC select ARCH_WANT_COMPAT_IPC_PARSE_VERSION bool -config GENERIC_KERNEL_THREAD - bool - -config GENERIC_KERNEL_EXECVE - bool - config HAVE_ARCH_SECCOMP_FILTER bool help @@ -362,6 +356,9 @@ config MODULES_USE_ELF_REL Modules only use ELF REL relocations. Modules with ELF RELA relocations will give an error. +config GENERIC_SIGALTSTACK + bool + # # ABI hall of shame # diff --git a/trunk/arch/alpha/Kconfig b/trunk/arch/alpha/Kconfig index 5dd7f5db24d4..9d5904cc7712 100644 --- a/trunk/arch/alpha/Kconfig +++ b/trunk/arch/alpha/Kconfig @@ -20,10 +20,9 @@ config ALPHA select GENERIC_CMOS_UPDATE select GENERIC_STRNCPY_FROM_USER select GENERIC_STRNLEN_USER - select GENERIC_KERNEL_THREAD - select GENERIC_KERNEL_EXECVE select HAVE_MOD_ARCH_SPECIFIC select MODULES_USE_ELF_RELA + select GENERIC_SIGALTSTACK help The Alpha is a 64-bit general-purpose processor designed and marketed by the Digital Equipment Corporation of blessed memory, diff --git a/trunk/arch/alpha/include/asm/ptrace.h b/trunk/arch/alpha/include/asm/ptrace.h index df9a6cd748d5..21128505ddbe 100644 --- a/trunk/arch/alpha/include/asm/ptrace.h +++ b/trunk/arch/alpha/include/asm/ptrace.h @@ -8,6 +8,7 @@ #define user_mode(regs) (((regs)->ps & 8) != 0) #define instruction_pointer(regs) ((regs)->pc) #define profile_pc(regs) instruction_pointer(regs) +#define current_user_stack_pointer() rdusp() #define task_pt_regs(task) \ ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1) diff --git a/trunk/arch/alpha/include/asm/unistd.h b/trunk/arch/alpha/include/asm/unistd.h index d6069ff3b1c8..b3396ee039b7 100644 --- a/trunk/arch/alpha/include/asm/unistd.h +++ b/trunk/arch/alpha/include/asm/unistd.h @@ -15,7 +15,6 @@ #define __ARCH_WANT_SYS_OLDUMOUNT #define __ARCH_WANT_SYS_SIGPENDING #define __ARCH_WANT_SYS_RT_SIGSUSPEND -#define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_CLONE diff --git a/trunk/arch/alpha/include/uapi/asm/signal.h b/trunk/arch/alpha/include/uapi/asm/signal.h index 965bbfa59c65..dd4ca4bcbb4a 100644 --- a/trunk/arch/alpha/include/uapi/asm/signal.h +++ b/trunk/arch/alpha/include/uapi/asm/signal.h @@ -84,12 +84,6 @@ typedef unsigned long sigset_t; #define SA_ONESHOT SA_RESETHAND #define SA_NOMASK SA_NODEFER -/* - * sigaltstack controls - */ -#define SS_ONSTACK 1 -#define SS_DISABLE 2 - #define MINSIGSTKSZ 4096 #define SIGSTKSZ 16384 diff --git a/trunk/arch/alpha/kernel/signal.c b/trunk/arch/alpha/kernel/signal.c index 336393c9c11f..02d02c047f17 100644 --- a/trunk/arch/alpha/kernel/signal.c +++ b/trunk/arch/alpha/kernel/signal.c @@ -122,12 +122,6 @@ SYSCALL_DEFINE1(sigsuspend, old_sigset_t, mask) return sigsuspend(&blocked); } -asmlinkage int -sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss) -{ - return do_sigaltstack(uss, uoss, rdusp()); -} - /* * Do a signal return; undo the signal stack. */ @@ -418,9 +412,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, err |= __put_user(0, &frame->uc.uc_flags); err |= __put_user(0, &frame->uc.uc_link); err |= __put_user(set->sig[0], &frame->uc.uc_osf_sigmask); - err |= __put_user(current->sas_ss_sp, &frame->uc.uc_stack.ss_sp); - err |= __put_user(sas_ss_flags(oldsp), &frame->uc.uc_stack.ss_flags); - err |= __put_user(current->sas_ss_size, &frame->uc.uc_stack.ss_size); + err |= __save_altstack(&frame->uc.uc_stack, oldsp); err |= setup_sigcontext(&frame->uc.uc_mcontext, regs, set->sig[0], oldsp); err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); diff --git a/trunk/arch/arm/Kconfig b/trunk/arch/arm/Kconfig index 8c83d98424c7..f95ba14ae3d0 100644 --- a/trunk/arch/arm/Kconfig +++ b/trunk/arch/arm/Kconfig @@ -12,8 +12,6 @@ config ARM select GENERIC_CLOCKEVENTS_BROADCAST if SMP select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW - select GENERIC_KERNEL_THREAD - select GENERIC_KERNEL_EXECVE select GENERIC_PCI_IOMAP select GENERIC_SMP_IDLE_THREAD select GENERIC_STRNCPY_FROM_USER diff --git a/trunk/arch/arm/boot/compressed/head.S b/trunk/arch/arm/boot/compressed/head.S index 49ca86e37b8d..fe4d9c3ad761 100644 --- a/trunk/arch/arm/boot/compressed/head.S +++ b/trunk/arch/arm/boot/compressed/head.S @@ -44,7 +44,7 @@ #else -#include +#include CONFIG_DEBUG_LL_INCLUDE .macro writeb, ch, rb senduart \ch, \rb diff --git a/trunk/arch/arm/boot/dts/Makefile b/trunk/arch/arm/boot/dts/Makefile index 0f441740c22a..e44da40d984f 100644 --- a/trunk/arch/arm/boot/dts/Makefile +++ b/trunk/arch/arm/boot/dts/Makefile @@ -42,11 +42,10 @@ dtb-$(CONFIG_ARCH_DOVE) += dove-cm-a510.dtb \ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \ exynos4210-smdkv310.dtb \ exynos4210-trats.dtb \ - exynos5250-smdk5250.dtb \ - exynos5440-ssdk5440.dtb \ exynos4412-smdk4412.dtb \ exynos5250-smdk5250.dtb \ - exynos5250-snow.dtb + exynos5250-snow.dtb \ + exynos5440-ssdk5440.dtb dtb-$(CONFIG_ARCH_HIGHBANK) += highbank.dtb \ ecx-2000.dtb dtb-$(CONFIG_ARCH_INTEGRATOR) += integratorap.dtb \ @@ -107,6 +106,7 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \ omap3-evm.dtb \ omap3-tobi.dtb \ omap4-panda.dtb \ + omap4-panda-a4.dtb \ omap4-panda-es.dtb \ omap4-var-som.dtb \ omap4-sdp.dtb \ @@ -131,8 +131,8 @@ dtb-$(CONFIG_ARCH_SPEAR3XX)+= spear300-evb.dtb \ spear320-evb.dtb \ spear320-hmi.dtb dtb-$(CONFIG_ARCH_SPEAR6XX)+= spear600-evb.dtb -dtb-$(CONFIG_ARCH_SUNXI) += sun4i-cubieboard.dtb \ - sun5i-olinuxino.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun4i-a10-cubieboard.dtb \ + sun5i-a13-olinuxino.dtb dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ tegra20-medcom-wide.dtb \ tegra20-paz00.dtb \ diff --git a/trunk/arch/arm/boot/dts/at91sam9263.dtsi b/trunk/arch/arm/boot/dts/at91sam9263.dtsi index 8e6251f1f7a3..32ec62cf5385 100644 --- a/trunk/arch/arm/boot/dts/at91sam9263.dtsi +++ b/trunk/arch/arm/boot/dts/at91sam9263.dtsi @@ -368,14 +368,14 @@ compatible = "atmel,at91rm9200-ssc"; reg = <0xfff98000 0x4000>; interrupts = <16 4 5>; - status = "disable"; + status = "disabled"; }; ssc1: ssc@fff9c000 { compatible = "atmel,at91rm9200-ssc"; reg = <0xfff9c000 0x4000>; interrupts = <17 4 5>; - status = "disable"; + status = "disabled"; }; macb0: ethernet@fffbc000 { diff --git a/trunk/arch/arm/boot/dts/at91sam9g45.dtsi b/trunk/arch/arm/boot/dts/at91sam9g45.dtsi index fa1ae0c5479c..231858ffd850 100644 --- a/trunk/arch/arm/boot/dts/at91sam9g45.dtsi +++ b/trunk/arch/arm/boot/dts/at91sam9g45.dtsi @@ -425,14 +425,14 @@ compatible = "atmel,at91sam9g45-ssc"; reg = <0xfff9c000 0x4000>; interrupts = <16 4 5>; - status = "disable"; + status = "disabled"; }; ssc1: ssc@fffa0000 { compatible = "atmel,at91sam9g45-ssc"; reg = <0xfffa0000 0x4000>; interrupts = <17 4 5>; - status = "disable"; + status = "disabled"; }; adc0: adc@fffb0000 { diff --git a/trunk/arch/arm/boot/dts/at91sam9x5.dtsi b/trunk/arch/arm/boot/dts/at91sam9x5.dtsi index 617ede541ca2..40ac3a4eb1ab 100644 --- a/trunk/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/trunk/arch/arm/boot/dts/at91sam9x5.dtsi @@ -92,7 +92,7 @@ compatible = "atmel,at91sam9g45-ssc"; reg = <0xf0010000 0x4000>; interrupts = <28 4 5>; - status = "disable"; + status = "disabled"; }; tcb0: timer@f8008000 { diff --git a/trunk/arch/arm/boot/dts/imx27-3ds.dts b/trunk/arch/arm/boot/dts/imx27-3ds.dts index b01c0d745fc5..fa04c7b18bcb 100644 --- a/trunk/arch/arm/boot/dts/imx27-3ds.dts +++ b/trunk/arch/arm/boot/dts/imx27-3ds.dts @@ -21,17 +21,17 @@ }; soc { - aipi@10000000 { /* aipi */ - + aipi@10000000 { /* aipi1 */ uart1: serial@1000a000 { fsl,uart-has-rtscts; status = "okay"; }; + }; - fec@1002b000 { + aipi@10020000 { /* aipi2 */ + ethernet@1002b000 { status = "okay"; }; }; }; - }; diff --git a/trunk/arch/arm/boot/dts/imx27-phytec-phycore.dts b/trunk/arch/arm/boot/dts/imx27-phytec-phycore.dts index af50469e34b2..53b0ec0c228e 100644 --- a/trunk/arch/arm/boot/dts/imx27-phytec-phycore.dts +++ b/trunk/arch/arm/boot/dts/imx27-phytec-phycore.dts @@ -21,8 +21,7 @@ }; soc { - aipi@10000000 { /* aipi */ - + aipi@10000000 { /* aipi1 */ serial@1000a000 { fsl,uart-has-rtscts; status = "okay"; @@ -38,10 +37,6 @@ status = "okay"; }; - ethernet@1002b000 { - status = "okay"; - }; - i2c@1001d000 { clock-frequency = <400000>; status = "okay"; @@ -60,6 +55,12 @@ }; }; }; + + aipi@10020000 { /* aipi2 */ + ethernet@1002b000 { + status = "okay"; + }; + }; }; nor_flash@c0000000 { diff --git a/trunk/arch/arm/boot/dts/imx27.dtsi b/trunk/arch/arm/boot/dts/imx27.dtsi index b8d3905915ac..5a82cb5707a8 100644 --- a/trunk/arch/arm/boot/dts/imx27.dtsi +++ b/trunk/arch/arm/boot/dts/imx27.dtsi @@ -55,7 +55,7 @@ compatible = "fsl,aipi-bus", "simple-bus"; #address-cells = <1>; #size-cells = <1>; - reg = <0x10000000 0x10000000>; + reg = <0x10000000 0x20000>; ranges; wdog: wdog@10002000 { @@ -211,6 +211,15 @@ status = "disabled"; }; + }; + + aipi@10020000 { /* AIPI2 */ + compatible = "fsl,aipi-bus", "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x10020000 0x20000>; + ranges; + fec: ethernet@1002b000 { compatible = "fsl,imx27-fec"; reg = <0x1002b000 0x4000>; diff --git a/trunk/arch/arm/boot/dts/omap2420-h4.dts b/trunk/arch/arm/boot/dts/omap2420-h4.dts index 77b84e17c477..9b0d07746cba 100644 --- a/trunk/arch/arm/boot/dts/omap2420-h4.dts +++ b/trunk/arch/arm/boot/dts/omap2420-h4.dts @@ -15,6 +15,6 @@ memory { device_type = "memory"; - reg = <0x80000000 0x84000000>; /* 64 MB */ + reg = <0x80000000 0x4000000>; /* 64 MB */ }; }; diff --git a/trunk/arch/arm/boot/dts/sun4i-cubieboard.dts b/trunk/arch/arm/boot/dts/sun4i-a10-cubieboard.dts similarity index 87% rename from trunk/arch/arm/boot/dts/sun4i-cubieboard.dts rename to trunk/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index f4ca126ad994..5cab82540437 100644 --- a/trunk/arch/arm/boot/dts/sun4i-cubieboard.dts +++ b/trunk/arch/arm/boot/dts/sun4i-a10-cubieboard.dts @@ -11,11 +11,11 @@ */ /dts-v1/; -/include/ "sun4i.dtsi" +/include/ "sun4i-a10.dtsi" / { model = "Cubietech Cubieboard"; - compatible = "cubietech,cubieboard", "allwinner,sun4i"; + compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; aliases { serial0 = &uart0; diff --git a/trunk/arch/arm/boot/dts/sun4i.dtsi b/trunk/arch/arm/boot/dts/sun4i-a10.dtsi similarity index 100% rename from trunk/arch/arm/boot/dts/sun4i.dtsi rename to trunk/arch/arm/boot/dts/sun4i-a10.dtsi diff --git a/trunk/arch/arm/boot/dts/sun5i-olinuxino.dts b/trunk/arch/arm/boot/dts/sun5i-a13-olinuxino.dts similarity index 86% rename from trunk/arch/arm/boot/dts/sun5i-olinuxino.dts rename to trunk/arch/arm/boot/dts/sun5i-a13-olinuxino.dts index d6ff889a5d87..498a091a4ea2 100644 --- a/trunk/arch/arm/boot/dts/sun5i-olinuxino.dts +++ b/trunk/arch/arm/boot/dts/sun5i-a13-olinuxino.dts @@ -12,11 +12,11 @@ */ /dts-v1/; -/include/ "sun5i.dtsi" +/include/ "sun5i-a13.dtsi" / { model = "Olimex A13-Olinuxino"; - compatible = "olimex,a13-olinuxino", "allwinner,sun5i"; + compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13"; chosen { bootargs = "earlyprintk console=ttyS0,115200"; diff --git a/trunk/arch/arm/boot/dts/sun5i.dtsi b/trunk/arch/arm/boot/dts/sun5i-a13.dtsi similarity index 100% rename from trunk/arch/arm/boot/dts/sun5i.dtsi rename to trunk/arch/arm/boot/dts/sun5i-a13.dtsi diff --git a/trunk/arch/arm/include/asm/dma-mapping.h b/trunk/arch/arm/include/asm/dma-mapping.h index 67d06324e74a..5b579b951503 100644 --- a/trunk/arch/arm/include/asm/dma-mapping.h +++ b/trunk/arch/arm/include/asm/dma-mapping.h @@ -91,6 +91,7 @@ static inline dma_addr_t virt_to_dma(struct device *dev, void *addr) */ static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) { + debug_dma_mapping_error(dev, dma_addr); return dma_addr == DMA_ERROR_CODE; } diff --git a/trunk/arch/arm/include/asm/unistd.h b/trunk/arch/arm/include/asm/unistd.h index 7cd13cc62624..21a2700d2957 100644 --- a/trunk/arch/arm/include/asm/unistd.h +++ b/trunk/arch/arm/include/asm/unistd.h @@ -41,7 +41,6 @@ #define __ARCH_WANT_OLD_READDIR #define __ARCH_WANT_SYS_SOCKETCALL #endif -#define __ARCH_WANT_SYS_EXECVE #define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_CLONE diff --git a/trunk/arch/arm/include/uapi/asm/signal.h b/trunk/arch/arm/include/uapi/asm/signal.h index 921c57fdc52e..33073bdcf091 100644 --- a/trunk/arch/arm/include/uapi/asm/signal.h +++ b/trunk/arch/arm/include/uapi/asm/signal.h @@ -87,13 +87,6 @@ typedef unsigned long sigset_t; #define SA_NOMASK SA_NODEFER #define SA_ONESHOT SA_RESETHAND - -/* - * sigaltstack controls - */ -#define SS_ONSTACK 1 -#define SS_DISABLE 2 - #define MINSIGSTKSZ 2048 #define SIGSTKSZ 8192 diff --git a/trunk/arch/arm/kernel/setup.c b/trunk/arch/arm/kernel/setup.c index 9a89bf4aefe1..3f6cbb2e3eda 100644 --- a/trunk/arch/arm/kernel/setup.c +++ b/trunk/arch/arm/kernel/setup.c @@ -733,7 +733,7 @@ void __init setup_arch(char **cmdline_p) setup_processor(); mdesc = setup_machine_fdt(__atags_pointer); if (!mdesc) - mdesc = setup_machine_tags(__atags_pointer, machine_arch_type); + mdesc = setup_machine_tags(__atags_pointer, __machine_arch_type); machine_desc = mdesc; machine_name = mdesc->name; diff --git a/trunk/arch/arm/kernel/swp_emulate.c b/trunk/arch/arm/kernel/swp_emulate.c index df745188f5de..ab1017bd1667 100644 --- a/trunk/arch/arm/kernel/swp_emulate.c +++ b/trunk/arch/arm/kernel/swp_emulate.c @@ -109,10 +109,12 @@ static void set_segfault(struct pt_regs *regs, unsigned long addr) { siginfo_t info; + down_read(¤t->mm->mmap_sem); if (find_vma(current->mm, addr) == NULL) info.si_code = SEGV_MAPERR; else info.si_code = SEGV_ACCERR; + up_read(¤t->mm->mmap_sem); info.si_signo = SIGSEGV; info.si_errno = 0; diff --git a/trunk/arch/arm/kernel/vmlinux.lds.S b/trunk/arch/arm/kernel/vmlinux.lds.S index b9f38e388b43..11c1785bf63e 100644 --- a/trunk/arch/arm/kernel/vmlinux.lds.S +++ b/trunk/arch/arm/kernel/vmlinux.lds.S @@ -140,6 +140,8 @@ SECTIONS } #endif + NOTES + _etext = .; /* End of text and rodata section */ #ifndef CONFIG_XIP_KERNEL @@ -295,8 +297,6 @@ SECTIONS } #endif - NOTES - BSS_SECTION(0, 0, 0) _end = .; diff --git a/trunk/arch/arm/mach-davinci/board-da850-evm.c b/trunk/arch/arm/mach-davinci/board-da850-evm.c index 7211772edd9d..0299915575a8 100644 --- a/trunk/arch/arm/mach-davinci/board-da850-evm.c +++ b/trunk/arch/arm/mach-davinci/board-da850-evm.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include diff --git a/trunk/arch/arm/mach-ep93xx/include/mach/uncompress.h b/trunk/arch/arm/mach-ep93xx/include/mach/uncompress.h index 16026c2b1c8c..d64274fc5760 100644 --- a/trunk/arch/arm/mach-ep93xx/include/mach/uncompress.h +++ b/trunk/arch/arm/mach-ep93xx/include/mach/uncompress.h @@ -47,13 +47,9 @@ static void __raw_writel(unsigned int value, unsigned int ptr) static inline void putc(int c) { - int i; - - for (i = 0; i < 1000; i++) { - /* Transmit fifo not full? */ - if (!(__raw_readb(PHYS_UART_FLAG) & UART_FLAG_TXFF)) - break; - } + /* Transmit fifo not full? */ + while (__raw_readb(PHYS_UART_FLAG) & UART_FLAG_TXFF) + ; __raw_writeb(c, PHYS_UART_DATA); } diff --git a/trunk/arch/arm/mach-exynos/clock-exynos4.c b/trunk/arch/arm/mach-exynos/clock-exynos4.c index efead60b9436..bbcb3dea0d40 100644 --- a/trunk/arch/arm/mach-exynos/clock-exynos4.c +++ b/trunk/arch/arm/mach-exynos/clock-exynos4.c @@ -529,7 +529,7 @@ static struct clk exynos4_init_clocks_off[] = { .enable = exynos4_clk_ip_fsys_ctrl, .ctrlbit = (1 << 8), }, { - .name = "dwmmc", + .name = "biu", .parent = &exynos4_clk_aclk_133.clk, .enable = exynos4_clk_ip_fsys_ctrl, .ctrlbit = (1 << 9), @@ -1134,7 +1134,7 @@ static struct clksrc_clk exynos4_clksrcs[] = { .reg_div = { .reg = EXYNOS4_CLKDIV_MFC, .shift = 0, .size = 4 }, }, { .clk = { - .name = "sclk_dwmmc", + .name = "ciu", .parent = &exynos4_clk_dout_mmc4.clk, .enable = exynos4_clksrc_mask_fsys_ctrl, .ctrlbit = (1 << 16), diff --git a/trunk/arch/arm/mach-exynos/common.c b/trunk/arch/arm/mach-exynos/common.c index ddd4b72c6f9a..d6d0dc651089 100644 --- a/trunk/arch/arm/mach-exynos/common.c +++ b/trunk/arch/arm/mach-exynos/common.c @@ -679,7 +679,8 @@ void __init exynos5_init_irq(void) * Theses parameters should be NULL and 0 because EXYNOS4 * uses GIC instead of VIC. */ - s5p_init_irq(NULL, 0); + if (!of_machine_is_compatible("samsung,exynos5440")) + s5p_init_irq(NULL, 0); gic_arch_extn.irq_set_wake = s3c_irq_wake; } diff --git a/trunk/arch/arm/mach-exynos/common.h b/trunk/arch/arm/mach-exynos/common.h index dac146df79ac..04744f9c120f 100644 --- a/trunk/arch/arm/mach-exynos/common.h +++ b/trunk/arch/arm/mach-exynos/common.h @@ -25,7 +25,7 @@ void exynos_init_late(void); #ifdef CONFIG_PM_GENERIC_DOMAINS int exynos_pm_late_initcall(void); #else -static int exynos_pm_late_initcall(void) { return 0; } +static inline int exynos_pm_late_initcall(void) { return 0; } #endif #ifdef CONFIG_ARCH_EXYNOS4 diff --git a/trunk/arch/arm/mach-exynos/dev-audio.c b/trunk/arch/arm/mach-exynos/dev-audio.c index a1cb42c39590..9d1a60951d7b 100644 --- a/trunk/arch/arm/mach-exynos/dev-audio.c +++ b/trunk/arch/arm/mach-exynos/dev-audio.c @@ -23,11 +23,6 @@ #include #include -static const char *rclksrc[] = { - [0] = "busclk", - [1] = "i2sclk", -}; - static int exynos4_cfg_i2s(struct platform_device *pdev) { /* configure GPIO for i2s port */ @@ -55,7 +50,6 @@ static struct s3c_audio_pdata i2sv5_pdata = { .i2s = { .quirks = QUIRK_PRI_6CHAN | QUIRK_SEC_DAI | QUIRK_NEED_RSTCLR, - .src_clk = rclksrc, .idma_addr = EXYNOS4_AUDSS_INT_MEM, }, }, @@ -78,17 +72,11 @@ struct platform_device exynos4_device_i2s0 = { }, }; -static const char *rclksrc_v3[] = { - [0] = "sclk_i2s", - [1] = "no_such_clock", -}; - static struct s3c_audio_pdata i2sv3_pdata = { .cfg_gpio = exynos4_cfg_i2s, .type = { .i2s = { .quirks = QUIRK_NO_MUXPSR, - .src_clk = rclksrc_v3, }, }, }; diff --git a/trunk/arch/arm/mach-exynos/mach-exynos5-dt.c b/trunk/arch/arm/mach-exynos/mach-exynos5-dt.c index f038c8cadca4..e99d3d8f2bcf 100644 --- a/trunk/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/trunk/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -163,6 +163,7 @@ static char const *exynos5_dt_compat[] __initdata = { static void __init exynos5_reserve(void) { +#ifdef CONFIG_S5P_DEV_MFC struct s5p_mfc_dt_meminfo mfc_mem; /* Reserve memory for MFC only if it's available */ @@ -170,6 +171,7 @@ static void __init exynos5_reserve(void) if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem)) s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff, mfc_mem.lsize); +#endif } DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)") diff --git a/trunk/arch/arm/mach-exynos/mach-origen.c b/trunk/arch/arm/mach-exynos/mach-origen.c index e6f4191cd14c..5e34b9c16196 100644 --- a/trunk/arch/arm/mach-exynos/mach-origen.c +++ b/trunk/arch/arm/mach-exynos/mach-origen.c @@ -621,7 +621,7 @@ static struct pwm_lookup origen_pwm_lookup[] = { PWM_LOOKUP("s3c24xx-pwm.0", 0, "pwm-backlight.0", NULL), }; -#ifdef CONFIG_DRM_EXYNOS +#ifdef CONFIG_DRM_EXYNOS_FIMD static struct exynos_drm_fimd_pdata drm_fimd_pdata = { .panel = { .timing = { @@ -793,7 +793,7 @@ static void __init origen_machine_init(void) s5p_i2c_hdmiphy_set_platdata(NULL); s5p_hdmi_set_platdata(&hdmiphy_info, NULL, 0); -#ifdef CONFIG_DRM_EXYNOS +#ifdef CONFIG_DRM_EXYNOS_FIMD s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; exynos4_fimd0_gpio_setup_24bpp(); #else diff --git a/trunk/arch/arm/mach-exynos/mach-smdk4x12.c b/trunk/arch/arm/mach-exynos/mach-smdk4x12.c index a1555a73c7af..ae6da40c2aa9 100644 --- a/trunk/arch/arm/mach-exynos/mach-smdk4x12.c +++ b/trunk/arch/arm/mach-exynos/mach-smdk4x12.c @@ -246,7 +246,7 @@ static struct samsung_keypad_platdata smdk4x12_keypad_data __initdata = { .cols = 8, }; -#ifdef CONFIG_DRM_EXYNOS +#ifdef CONFIG_DRM_EXYNOS_FIMD static struct exynos_drm_fimd_pdata drm_fimd_pdata = { .panel = { .timing = { @@ -360,7 +360,7 @@ static void __init smdk4x12_machine_init(void) s3c_hsotg_set_platdata(&smdk4x12_hsotg_pdata); -#ifdef CONFIG_DRM_EXYNOS +#ifdef CONFIG_DRM_EXYNOS_FIMD s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; exynos4_fimd0_gpio_setup_24bpp(); #else diff --git a/trunk/arch/arm/mach-exynos/mach-smdkv310.c b/trunk/arch/arm/mach-exynos/mach-smdkv310.c index b7384241fb03..35548e3c097d 100644 --- a/trunk/arch/arm/mach-exynos/mach-smdkv310.c +++ b/trunk/arch/arm/mach-exynos/mach-smdkv310.c @@ -159,7 +159,7 @@ static struct platform_device smdkv310_lcd_lte480wv = { .dev.platform_data = &smdkv310_lcd_lte480wv_data, }; -#ifdef CONFIG_DRM_EXYNOS +#ifdef CONFIG_DRM_EXYNOS_FIMD static struct exynos_drm_fimd_pdata drm_fimd_pdata = { .panel = { .timing = { @@ -402,7 +402,7 @@ static void __init smdkv310_machine_init(void) samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data); pwm_add_table(smdkv310_pwm_lookup, ARRAY_SIZE(smdkv310_pwm_lookup)); -#ifdef CONFIG_DRM_EXYNOS +#ifdef CONFIG_DRM_EXYNOS_FIMD s5p_device_fimd0.dev.platform_data = &drm_fimd_pdata; exynos4_fimd0_gpio_setup_24bpp(); #else diff --git a/trunk/arch/arm/mach-exynos/platsmp.c b/trunk/arch/arm/mach-exynos/platsmp.c index 4ca8ff14a5bf..c5c840e947b8 100644 --- a/trunk/arch/arm/mach-exynos/platsmp.c +++ b/trunk/arch/arm/mach-exynos/platsmp.c @@ -198,7 +198,7 @@ static void __init exynos_smp_prepare_cpus(unsigned int max_cpus) { int i; - if (!soc_is_exynos5250()) + if (!(soc_is_exynos5250() || soc_is_exynos5440())) scu_enable(scu_base_addr()); /* diff --git a/trunk/arch/arm/mach-imx/clk-imx51-imx53.c b/trunk/arch/arm/mach-imx/clk-imx51-imx53.c index e8c0473c7568..579023f59dc1 100644 --- a/trunk/arch/arm/mach-imx/clk-imx51-imx53.c +++ b/trunk/arch/arm/mach-imx/clk-imx51-imx53.c @@ -319,6 +319,7 @@ int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc, unsigned long rate_ckih1, unsigned long rate_ckih2) { int i; + u32 val; struct device_node *np; clk[pll1_sw] = imx_clk_pllv2("pll1_sw", "osc", MX51_DPLL1_BASE); @@ -390,6 +391,21 @@ int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc, imx_print_silicon_rev("i.MX51", mx51_revision()); clk_disable_unprepare(clk[iim_gate]); + /* + * Reference Manual says: Functionality of CCDR[18] and CLPCR[23] is no + * longer supported. Set to one for better power saving. + * + * The effect of not setting these bits is that MIPI clocks can't be + * enabled without the IPU clock being enabled aswell. + */ + val = readl(MXC_CCM_CCDR); + val |= 1 << 18; + writel(val, MXC_CCM_CCDR); + + val = readl(MXC_CCM_CLPCR); + val |= 1 << 23; + writel(val, MXC_CCM_CLPCR); + return 0; } diff --git a/trunk/arch/arm/plat-mxc/devices/platform-mx2-emma.c b/trunk/arch/arm/mach-imx/devices/platform-mx2-emma.c similarity index 94% rename from trunk/arch/arm/plat-mxc/devices/platform-mx2-emma.c rename to trunk/arch/arm/mach-imx/devices/platform-mx2-emma.c index 508404ddd4ea..11bd01d402f2 100644 --- a/trunk/arch/arm/plat-mxc/devices/platform-mx2-emma.c +++ b/trunk/arch/arm/mach-imx/devices/platform-mx2-emma.c @@ -6,8 +6,8 @@ * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */ -#include -#include +#include "../hardware.h" +#include "devices-common.h" #define imx_mx2_emmaprp_data_entry_single(soc) \ { \ diff --git a/trunk/arch/arm/mach-omap2/Kconfig b/trunk/arch/arm/mach-omap2/Kconfig index be0f62bf9037..41b581fd0213 100644 --- a/trunk/arch/arm/mach-omap2/Kconfig +++ b/trunk/arch/arm/mach-omap2/Kconfig @@ -26,6 +26,8 @@ config SOC_HAS_OMAP2_SDRC config SOC_HAS_REALTIME_COUNTER bool "Real time free running counter" + depends on SOC_OMAP5 + default y config ARCH_OMAP2 bool "TI OMAP2" @@ -79,7 +81,6 @@ config SOC_OMAP5 select ARM_GIC select CPU_V7 select HAVE_SMP - select SOC_HAS_REALTIME_COUNTER select COMMON_CLK comment "OMAP Core Type" diff --git a/trunk/arch/arm/mach-omap2/board-3430sdp.c b/trunk/arch/arm/mach-omap2/board-3430sdp.c index 7b201546834d..bb73afc9ac17 100644 --- a/trunk/arch/arm/mach-omap2/board-3430sdp.c +++ b/trunk/arch/arm/mach-omap2/board-3430sdp.c @@ -157,6 +157,7 @@ static struct omap_dss_device sdp3430_lcd_device = { static struct tfp410_platform_data dvi_panel = { .power_down_gpio = -1, + .i2c_bus_num = -1, }; static struct omap_dss_device sdp3430_dvi_device = { diff --git a/trunk/arch/arm/mach-omap2/board-am3517evm.c b/trunk/arch/arm/mach-omap2/board-am3517evm.c index 4be58fd071f6..f81a303b87ff 100644 --- a/trunk/arch/arm/mach-omap2/board-am3517evm.c +++ b/trunk/arch/arm/mach-omap2/board-am3517evm.c @@ -208,6 +208,7 @@ static struct omap_dss_device am3517_evm_tv_device = { static struct tfp410_platform_data dvi_panel = { .power_down_gpio = -1, + .i2c_bus_num = -1, }; static struct omap_dss_device am3517_evm_dvi_device = { diff --git a/trunk/arch/arm/mach-omap2/board-cm-t35.c b/trunk/arch/arm/mach-omap2/board-cm-t35.c index c8e37dc00892..b3102c2f4a3c 100644 --- a/trunk/arch/arm/mach-omap2/board-cm-t35.c +++ b/trunk/arch/arm/mach-omap2/board-cm-t35.c @@ -241,6 +241,7 @@ static struct omap_dss_device cm_t35_lcd_device = { static struct tfp410_platform_data dvi_panel = { .power_down_gpio = CM_T35_DVI_EN_GPIO, + .i2c_bus_num = -1, }; static struct omap_dss_device cm_t35_dvi_device = { diff --git a/trunk/arch/arm/mach-omap2/board-devkit8000.c b/trunk/arch/arm/mach-omap2/board-devkit8000.c index 7667eb749522..12865af25d3a 100644 --- a/trunk/arch/arm/mach-omap2/board-devkit8000.c +++ b/trunk/arch/arm/mach-omap2/board-devkit8000.c @@ -141,6 +141,7 @@ static struct omap_dss_device devkit8000_lcd_device = { static struct tfp410_platform_data dvi_panel = { .power_down_gpio = -1, + .i2c_bus_num = 1, }; static struct omap_dss_device devkit8000_dvi_device = { diff --git a/trunk/arch/arm/mach-omap2/board-h4.c b/trunk/arch/arm/mach-omap2/board-h4.c index 9a3878ec2256..3be1311f9e33 100644 --- a/trunk/arch/arm/mach-omap2/board-h4.c +++ b/trunk/arch/arm/mach-omap2/board-h4.c @@ -27,14 +27,12 @@ #include #include #include +#include #include #include #include -#include -#include - #include