1. 17 12月, 2009 40 次提交
    • L
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 · bac5e54c
      Linus Torvalds 提交于
      * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: (38 commits)
        direct I/O fallback sync simplification
        ocfs: stop using do_sync_mapping_range
        cleanup blockdev_direct_IO locking
        make generic_acl slightly more generic
        sanitize xattr handler prototypes
        libfs: move EXPORT_SYMBOL for d_alloc_name
        vfs: force reval of target when following LAST_BIND symlinks (try #7)
        ima: limit imbalance msg
        Untangling ima mess, part 3: kill dead code in ima
        Untangling ima mess, part 2: deal with counters
        Untangling ima mess, part 1: alloc_file()
        O_TRUNC open shouldn't fail after file truncation
        ima: call ima_inode_free ima_inode_free
        IMA: clean up the IMA counts updating code
        ima: only insert at inode creation time
        ima: valid return code from ima_inode_alloc
        fs: move get_empty_filp() deffinition to internal.h
        Sanitize exec_permission_lite()
        Kill cached_lookup() and real_lookup()
        Kill path_lookup_open()
        ...
      
      Trivial conflicts in fs/direct-io.c
      bac5e54c
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 · 529e8943
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
        PM: rwsem.h need not be included into main.c
        PM: Remove unnecessary goto from device_resume_noirq()
        PM: Add initcall_debug style timing for suspend/resume
        PM: allow for usage_count > 0 in pm_runtime_get()
      529e8943
    • L
      Merge branch 'x86-fixes-for-linus' of... · 61ecdb84
      Linus Torvalds 提交于
      Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        x86: Fix kprobes build with non-gawk awk
        x86: Split swiotlb initialization into two stages
        x86: Regex support and known-movable symbols for relocs, fix _end
        x86, msr: Remove incorrect, duplicated code in the MSR driver
        x86: Merge kernel_thread()
        x86: Sync 32/64-bit kernel_thread
        x86, 32-bit: Use same regs as 64-bit for kernel_thread_helper
        x86, 64-bit: Use user_mode() to determine new stack pointer in copy_thread()
        x86, 64-bit: Move kernel_thread to C
        x86-64, paravirt: Call set_iopl_mask() on 64 bits
        x86-32: Avoid pipeline serialization in PTREGSCALL1 and 2
        x86: Merge sys_clone
        x86, 32-bit: Convert sys_vm86 & sys_vm86old
        x86: Merge sys_sigaltstack
        x86: Merge sys_execve
        x86: Merge sys_iopl
        x86-32: Add new pt_regs stubs
        cpumask: Use modern cpumask style in arch/x86/kernel/cpu/mcheck/mce-inject.c
      61ecdb84
    • L
      Merge branch 'tracing-fixes-for-linus' of... · da184a80
      Linus Torvalds 提交于
      Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        tracing: Fix return of trace_dump_stack()
        ksym_tracer: Fix bad cast
        tracing/power: Remove two exports
        tracing: Change event->profile_count to be int type
        tracing: Simplify trace_option_write()
        tracing: Remove useless trace option
        tracing: Use seq file for trace_clock
        tracing: Use seq file for trace_options
        function-graph: Allow writing the same val to set_graph_function
        ftrace: Call trace_parser_clear() properly
        ftrace: Return EINVAL when writing invalid val to set_ftrace_filter
        tracing: Move a printk out of ftrace_raw_reg_event_foo()
        tracing: Pull up calls to trace_define_common_fields()
        tracing: Extract duplicate ftrace_raw_init_event_foo()
        ftrace.h: Use common pr_info fmt string
        tracing: Add stack trace to irqsoff tracer
        tracing: Add trace_dump_stack()
        ring-buffer: Move resize integrity check under reader lock
        ring-buffer: Use sync sched protection on ring buffer resizing
        tracing: Fix wrong usage of strstrip in trace_ksyms
      da184a80
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin · 525995d7
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin: (88 commits)
        Blackfin: Convert BUG() to use unreachable()
        Blackfin: define __NR_recvmmsg
        Blackfin: drop duplicate sched_clock
        Blackfin: NOMPU: skip DMA ICPLB hole when it is redundant
        Blackfin: MPU: add missing __init markings
        Blackfin: add support for TIF_NOTIFY_RESUME
        Blackfin: kgdb_test: clean up code a bit
        Blackfin: convert kgdbtest to proc_fops
        Blackfin: convert cyc2ns() to clocksource_cyc2ns()
        Blackfin: ip0x: pull in asm/portmux.h for P_xxx defines
        Blackfin: drop unused ax88180 resources
        Blackfin: bf537-stamp: add ADF702x network driver resources
        Blackfin: bf537-stamp: add CAN resources
        Blackfin: bf537-stamp: add AD5258 i2c address
        Blackfin: bf537-stamp: add adau1761 i2c address
        Blackfin: bf537-stamp: add adau1371 i2c address
        Blackfin: bf537-stamp: add ADP8870 resources
        Blackfin: bf537-stamp: kill AD714x board-specific Kconfigs
        Blackfin: bf537-stamp: update ADP5520 resources
        Blackfin: bf537-stamp: add ADXL346 orientation sensing support
        ...
      525995d7
    • L
      Merge branch 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 · e4bdda1b
      Linus Torvalds 提交于
      * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
        NFSv4: Fix a regression in the NFSv4 state manager
        NFSv4: Release the sequence id before restarting a CLOSE rpc call
        nfs41: fix session fore channel negotiation
        nfs41: do not zero seqid portion of stateid on close
        nfs: run state manager in privileged mode
        nfs: make recovery state manager operations privileged
        nfs: enforce FIFO ordering of operations trying to acquire slot
        rpc: add a new priority in RPC task
        nfs: remove rpc_task argument from nfs4_find_slot
        rpc: add rpc_queue_empty function
        nfs: change nfs4_do_setlk params to identify recovery type
        nfs: do not do a LOOKUP after open
        nfs: minor cleanup of session draining
      e4bdda1b
    • L
      Merge branch 'module' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus · 74f3ae74
      Linus Torvalds 提交于
      * 'module' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
        modpost: fix segfault with short symbol names
        module: handle ppc64 relocating kcrctabs when CONFIG_RELOCATABLE=y
        Kbuild: clear marker out of modpost
        module: make MODULE_SYMBOL_PREFIX into a CONFIG option
        ARM: unexport symbols used to implement floating point emulation
        ARM: use unified discard definition in linker script
        x86: don't export inline function
        sparc64: don't export static inline pci_ functions
      74f3ae74
    • L
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 · d8bef0bb
      Linus Torvalds 提交于
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
        [IA64] implement early_io{re,un}map for ia64
        [IA64] Replace old style lock initializer
        [IA64] fix SBA IOMMU to handle allocation failure properly
        [IA64] Save I-resources to ia64_sal_os_state
        [IA64] preallocate IA64_IRQ_MOVE_VECTOR
      d8bef0bb
    • L
      Merge branch 'for-2.6.33' of git://linux-nfs.org/~bfields/linux · 37c24b37
      Linus Torvalds 提交于
      * 'for-2.6.33' of git://linux-nfs.org/~bfields/linux: (42 commits)
        nfsd: remove pointless paths in file headers
        nfsd: move most of nfsfh.h to fs/nfsd
        nfsd: remove unused field rq_reffh
        nfsd: enable V4ROOT exports
        nfsd: make V4ROOT exports read-only
        nfsd: restrict filehandles accepted in V4ROOT case
        nfsd: allow exports of symlinks
        nfsd: filter readdir results in V4ROOT case
        nfsd: filter lookup results in V4ROOT case
        nfsd4: don't continue "under" mounts in V4ROOT case
        nfsd: introduce export flag for v4 pseudoroot
        nfsd: let "insecure" flag vary by pseudoflavor
        nfsd: new interface to advertise export features
        nfsd: Move private headers to source directory
        vfs: nfsctl.c un-used nfsd #includes
        lockd: Remove un-used nfsd headers #includes
        s390: remove un-used nfsd #includes
        sparc: remove un-used nfsd #includes
        parsic: remove un-used nfsd #includes
        compat.c: Remove dependence on nfsd private headers
        ...
      37c24b37
    • L
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · 5ac4d630
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        block: temporarily disable discard granularity
      5ac4d630
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 59be2e04
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (26 commits)
        net: sh_eth alignment fix for sh7724 using NET_IP_ALIGN V2
        ixgbe: allow tx of pre-formatted vlan tagged packets
        ixgbe: Fix 82598 premature copper PHY link indicatation
        ixgbe: Fix tx_restart_queue/non_eop_desc statistics counters
        bcm63xx_enet: fix compilation failure after get_stats_count removal
        packet: dont call sleeping functions while holding rcu_read_lock()
        tcp: Revert per-route SACK/DSACK/TIMESTAMP changes.
        ipvs: zero usvc and udest
        netfilter: fix crashes in bridge netfilter caused by fragment jumps
        ipv6: reassembly: use seperate reassembly queues for conntrack and local delivery
        sky2: leave PCI config space writeable
        sky2: print Optima chip name
        x25: Update maintainer.
        ipvs: fix synchronization on connection close
        netfilter: xtables: document minimal required version
        drivers/net/bonding/: : use pr_fmt
        can: CAN_MCP251X should depend on HAS_DMA
        drivers/net/usb: Correct code taking the size of a pointer
        drivers/net/cpmac.c: Correct code taking the size of a pointer
        drivers/net/sfc: Correct code taking the size of a pointer
        ...
      59be2e04
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · e69381b4
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (45 commits)
        RDMA/cxgb3: Fix error paths in post_send and post_recv
        RDMA/nes: Fix stale ARP issue
        RDMA/nes: FIN during MPA startup causes timeout
        RDMA/nes: Free kmap() resources
        RDMA/nes: Check for zero STag
        RDMA/nes: Fix Xansation test crash on cm_node ref_count
        RDMA/nes: Abnormal listener exit causes loopback node crash
        RDMA/nes: Fix crash in nes_accept()
        RDMA/nes: Resource not freed for REJECTed connections
        RDMA/nes: MPA request/response error checking
        RDMA/nes: Fix query of ORD values
        RDMA/nes: Fix MAX_CM_BUFFER define
        RDMA/nes: Pass correct size to ioremap_nocache()
        RDMA/nes: Update copyright and branding string
        RDMA/nes: Add max_cqe check to nes_create_cq()
        RDMA/nes: Clean up struct nes_qp
        RDMA/nes: Implement IB_SIGNAL_ALL_WR as an iWARP extension
        RDMA/nes: Add additional SFP+ PHY uC status check and PHY reset
        RDMA/nes: Correct fast memory registration implementation
        IB/ehca: Fix error paths in post_send and post_recv
        ...
      e69381b4
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 238ccbb0
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (22 commits)
        Input: ALPS - add interleaved protocol support (Dell E6x00 series)
        Input: keyboard - don't override beep with a bell
        Input: altera_ps2 - fix test of unsigned in altera_ps2_probe()
        Input: add mc13783 touchscreen driver
        Input: ep93xx_keypad - update driver to new core support
        Input: wacom - separate pen from express keys on Graphire
        Input: wacom - add defines for data packet report IDs
        Input: wacom - add support for new LCD tablets
        Input: wacom - add defines for packet lengths of various devices
        Input: wacom - ensure the device is initialized properly upon resume
        Input: at32psif - do not sleep in atomic context
        Input: i8042 - add Gigabyte M1022M to the noloop list
        Input: i8042 - allow installing platform filters for incoming data
        Input: i8042 - fix locking in interrupt routine
        Input: ALPS - do not set REL_X/REL_Y capabilities on the touchpad
        Input: document use of input_event() function
        Input: sa1111ps2 - annotate probe() and remove() methods
        Input: ambakmi - annotate probe() and remove() methods
        Input: gscps2 - fix probe() and remove() annotations
        Input: altera_ps2 - add annotations to probe and remove methods
        ...
      238ccbb0
    • L
      Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · c5113e3d
      Linus Torvalds 提交于
      * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
        drm/radeon/kms: fix r100->r500 CS checker for compressed textures. (v2)
        drm/radeon/kms: allow for texture tiling
        drm/radeon/kms: init pm on all chipsets
        drm/radeon/kms: HDMI support for R600 KMS
        drm/radeon/kms: make sure mc is initialized before mapping blit bo
        drm/radeon/kms: Return to userspace on ERESTARTSYS
        drm/radeon/gem: don't leak a gem object if reserve fails on get tiling (v2)
        drm/radeon/kms: don't report allocate failure on ERESTARTSYS
        drm/radeon/kms: Check if bo we got from ttm are radeon object or not
        drm/radeon/kms: If no placement is supplied fallback to system
        drm/ttm: Fix memory type manager debug information printing
        drm/ttm: Fix printk format & compute bo->mem.size at bo initialization
        drm/ttm: Fix potential ttm_mem_evict_first races.
        drm/ttm: Delayed delete fixes.
        drm/ttm: fix two bugs in new placement routines.
        drm/ttm: fix incorrect logic in ttm_bo_io path
        drm/nouveau: remove use of -ERESTART
        nouveau: Fix endianness with new context program loader
        drm/nouveau: fix build with CONFIG_AGP=n
        drm/nouveau: fix ch7006 build
      c5113e3d
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 · 9b283170
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (33 commits)
        sh: Fix test of unsigned in se7722_irq_demux()
        sh: mach-ecovec24: Add FSI sound support
        sh: mach-ecovec24: Add mt9t112 camera support
        sh: mach-ecovec24: Add tw9910 support
        sh: MSIOF/mmc_spi platform data for the Ecovec24 board
        sh: ms7724se: Add ak4642 support
        sh: Fix up FPU build for SH5
        sh: Remove old early serial console code V2
        sh: sh5 scif pdata (sh5-101/sh5-103)
        sh: sh4a scif pdata (sh7757/sh7763/sh7770/sh7780/sh7785/sh7786/x3)
        sh: sh4a scif pdata (sh7343/sh7366/sh7722/sh7723/sh7724)
        sh: sh4 scif pdata (sh7750/sh7760/sh4-202)
        sh: sh3 scif pdata (sh7705/sh770x/sh7710/sh7720)
        sh: sh2a scif pdata (sh7201/sh7203/sh7206/mxg)
        sh: sh2 scif pdata (sh7616)
        sh-sci: Extend sh-sci driver with early console V2
        sh: Stub in P3 ioremap support for nommu parts.
        sh: wire up vmallocinfo support in ioremap() implementations.
        sh: Make the unaligned trap handler always obey notification levels.
        sh: Couple kernel and user write page perm bits for CONFIG_X2TLB
        ...
      9b283170
    • L
    • L
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx · 7949456b
      Linus Torvalds 提交于
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx:
        ppc440spe-adma: adds updated ppc440spe adma driver
        iop-adma.c: use resource_size()
        dmaengine: clarify the meaning of the DMA_CTRL_ACK flag
        sh: stylistic improvements for the DMA driver
        dmaengine: fix dmatest to verify minimum transfer length and test buffer size
        sh: DMA driver has to specify its alignment requirements
        Add COH 901 318 DMA block driver v5
      7949456b
    • L
      Merge git://git.infradead.org/mtd-2.6 · 60d9aa75
      Linus Torvalds 提交于
      * git://git.infradead.org/mtd-2.6: (90 commits)
        jffs2: Fix long-standing bug with symlink garbage collection.
        mtd: OneNAND: Fix test of unsigned in onenand_otp_walk()
        mtd: cfi_cmdset_0002, fix lock imbalance
        Revert "mtd: move mxcnd_remove to .exit.text"
        mtd: m25p80: add support for Macronix MX25L4005A
        kmsg_dump: fix build for CONFIG_PRINTK=n
        mtd: nandsim: add support for 4KiB pages
        mtd: mtdoops: refactor as a kmsg_dumper
        mtd: mtdoops: make record size configurable
        mtd: mtdoops: limit the maximum mtd partition size
        mtd: mtdoops: keep track of used/unused pages in an array
        mtd: mtdoops: several minor cleanups
        core: Add kernel message dumper to call on oopses and panics
        mtd: add ARM pismo support
        mtd: pxa3xx_nand: Fix PIO data transfer
        mtd: nand: fix multi-chip suspend problem
        mtd: add support for switching old SST chips into QRY mode
        mtd: fix M29W800D dev_id and uaddr
        mtd: don't use PF_MEMALLOC
        mtd: Add bad block table overrides to Davinci NAND driver
        ...
      
      Fixed up conflicts (mostly trivial) in
      	drivers/mtd/devices/m25p80.c
      	drivers/mtd/maps/pcmciamtd.c
      	drivers/mtd/nand/pxa3xx_nand.c
      	kernel/printk.c
      60d9aa75
    • L
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6 · b2adf0cb
      Linus Torvalds 提交于
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6:
        parisc: Fixup last users of irq_chip->typename
        parisc: convert /proc/pdc/{lcd,led} to seq_file
        parisc: Convert BUG() to use unreachable()
        parisc: Replace old style lock init in smp.c
        parisc: use sort() instead of home-made implementation (v2)
        parisc: add CALLER_ADDR{0-6} macros
        parisc: remove unused IRQSTAT_SIRQ_PEND and IRQSTAT_SZ defines
        parisc: remove duplicated #include
      b2adf0cb
    • L
      Merge git://git.infradead.org/iommu-2.6 · a79960e5
      Linus Torvalds 提交于
      * git://git.infradead.org/iommu-2.6:
        implement early_io{re,un}map for ia64
        Revert "Intel IOMMU: Avoid memory allocation failures in dma map api calls"
        intel-iommu: ignore page table validation in pass through mode
        intel-iommu: Fix oops with intel_iommu=igfx_off
        intel-iommu: Check for an RMRR which ends before it starts.
        intel-iommu: Apply BIOS sanity checks for interrupt remapping too.
        intel-iommu: Detect DMAR in hyperspace at probe time.
        dmar: Fix build failure without NUMA, warn on bogus RHSA tables and don't abort
        iommu: Allocate dma-remapping structures using numa locality info
        intr_remap: Allocate intr-remapping table using numa locality info
        dmar: Allocate queued invalidation structure using numa locality info
        dmar: support for parsing Remapping Hardware Static Affinity structure
      a79960e5
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp · 661e338f
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
        edac, mce, amd: silence GART TLB errors
        edac, mce: correct corenum reporting
      661e338f
    • L
      Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · 6a5df38f
      Linus Torvalds 提交于
      * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (116 commits)
        V4L/DVB (13698): pms: replace asm/uaccess.h to linux/uaccess.h
        V4L/DVB (13690): radio/si470x: #include <sched.h>
        V4L/DVB (13688): au8522: modify the attributes of local filter coefficients
        V4L/DVB (13687): cx231xx: use NULL when pointer is needed
        V4L/DVB: Davinci VPFE Capture: remove unused #include <linux/version.h>
        V4L/DVB (13685): Correct code taking the size of a pointer
        V4L/DVB (13684): Fix some cut-and-paste noise in dib0090.h
        V4L/DVB (13683): sanio-ms: clean up init, exit and id_table
        V4L/DVB (13682): dib8000: make some constant static
        V4L/DVB: lgs8gxx: Use shifts rather than multiply/divide when possible
        V4L/DVB (13680b): DocBook/media: create links for included sources
        V4L/DVB (13680a): DocBook/media: copy images after building HTML
        V4L/DVB (13678): Add support for yet another DvbWorld, TeVii and Prof USB devices
        V4L/DVB (13676): configurable IRQ mode on NetUP Dual DVB-S2 CI; IRQ from CAM processing (CI interface works faster)
        V4L/DVB (13674): stv090x: Add DiSEqC envelope mode
        V4L/DVB (13673): lnbp21: Implement 22 kHz tone control
        V4L/DVB (13671): sh_mobile_ceu_camera: Remove frame size page alignment
        V4L/DVB (13670): soc-camera: Add mt9t112 camera driver
        V4L/DVB (13669): tw9910: Add sync polarity support
        V4L/DVB (13668): tw9910: remove cropping
        ...
      6a5df38f
    • L
      Merge branch 'akpm' · 9cfc8624
      Linus Torvalds 提交于
      * akpm: (173 commits)
        genalloc: use bitmap_find_next_zero_area
        ia64: use bitmap_find_next_zero_area
        sparc: use bitmap_find_next_zero_area
        mlx4: use bitmap_find_next_zero_area
        isp1362-hcd: use bitmap_find_next_zero_area
        iommu-helper: use bitmap library
        bitmap: introduce bitmap_set, bitmap_clear, bitmap_find_next_zero_area
        qnx4: use hweight8
        qnx4fs: remove remains of the (defunct) write support
        resource: constify arg to resource_size() and resource_type()
        gru: send cross partition interrupts using the gru
        gru: function to generate chipset IPI values
        gru: update driver version number
        gru: improve GRU TLB dropin statistics
        gru: fix GRU interrupt race at deallocate
        gru: add hugepage support
        gru: fix bug in allocation of kernel contexts
        gru: update GRU structures to match latest hardware spec
        gru: check for correct GRU chiplet assignment
        gru: remove stray local_irq_enable
        ...
      9cfc8624
    • C
      direct I/O fallback sync simplification · c05c4edd
      Christoph Hellwig 提交于
      In the case of direct I/O falling back to buffered I/O we sync data
      twice currently: once at the end of generic_file_buffered_write using
      filemap_write_and_wait_range and once a little later in
      __generic_file_aio_write using do_sync_mapping_range with all flags set.
      
      The wait before write of the do_sync_mapping_range call does not make
      any sense, so just keep the filemap_write_and_wait_range call and move
      it to the right spot.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      c05c4edd
    • C
      ocfs: stop using do_sync_mapping_range · 2cfd30ad
      Christoph Hellwig 提交于
      do_sync_mapping_range(..., SYNC_FILE_RANGE_WRITE) is a very awkward way
      to perform a filemap_fdatawrite_range.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      2cfd30ad
    • C
      cleanup blockdev_direct_IO locking · 1e431f5c
      Christoph Hellwig 提交于
      Currently the locking in blockdev_direct_IO is a mess, we have three different
      locking types and very confusing checks for some of them.  The most
      complicated one is DIO_OWN_LOCKING for reads, which happens to not actually be
      used.
      
      This patch gets rid of the DIO_OWN_LOCKING - as mentioned above the read case
      is unused anyway, and the write side is almost identical to DIO_NO_LOCKING.
      The difference is that DIO_NO_LOCKING always sets the create argument for
      the get_blocks callback to zero, but we can easily move that to the actual
      get_blocks callbacks.  There are four users of the DIO_NO_LOCKING mode:
      gfs already ignores the create argument and thus is fine with the new
      version, ocfs2 only errors out if create were ever set, and we can remove
      this dead code now, the block device code only ever uses create for an
      error message if we are fully beyond the device which can never happen,
      and last but not least XFS will need the new behavour for writes.
      
      Now we can replace the lock_type variable with a flags one, where no flag
      means the DIO_NO_LOCKING behaviour and DIO_LOCKING is kept as the first
      flag.  Separate out the check for not allowing to fill holes into a separate
      flag, although for now both flags always get set at the same time.
      
      Also revamp the documentation of the locking scheme to actually make sense.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      1e431f5c
    • C
      make generic_acl slightly more generic · 1c7c474c
      Christoph Hellwig 提交于
      Now that we cache the ACL pointers in the generic inode all the generic_acl
      cruft can go away and generic_acl.c can directly implement xattr handlers
      dealing with the full Posix ACL semantics for in-memory filesystems.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      1c7c474c
    • C
      sanitize xattr handler prototypes · 431547b3
      Christoph Hellwig 提交于
      Add a flags argument to struct xattr_handler and pass it to all xattr
      handler methods.  This allows using the same methods for multiple
      handlers, e.g. for the ACL methods which perform exactly the same action
      for the access and default ACLs, just using a different underlying
      attribute.  With a little more groundwork it'll also allow sharing the
      methods for the regular user/trusted/secure handlers in extN, ocfs2 and
      jffs2 like it's already done for xfs in this patch.
      
      Also change the inode argument to the handlers to a dentry to allow
      using the handlers mechnism for filesystems that require it later,
      e.g. cifs.
      
      [with GFS2 bits updated by Steven Whitehouse <swhiteho@redhat.com>]
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NJames Morris <jmorris@namei.org>
      Acked-by: NJoel Becker <joel.becker@oracle.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      431547b3
    • H
      libfs: move EXPORT_SYMBOL for d_alloc_name · ef26ca97
      H Hartley Sweeten 提交于
      The EXPORT_SYMBOL for d_alloc_name is in fs/libfs.c but the function
      is in fs/dcache.c.  Move the EXPORT_SYMBOL to the line immediately
      after the closing function brace line in fs/dcache.c as mentioned
      in Documentation/CodingStyle.
      Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      ef26ca97
    • J
      vfs: force reval of target when following LAST_BIND symlinks (try #7) · 39159de2
      Jeff Layton 提交于
      procfs-style symlinks return a last_type of LAST_BIND without an actual
      path string. This causes __follow_link to skip calling __vfs_follow_link
      and so the dentry isn't revalidated.
      
      This is a problem when the link target sits on NFSv4 as it depends on
      the VFS to revalidate the dentry before using it on an open call. Ensure
      that this occurs by forcing a revalidation of the target dentry of
      LAST_BIND symlinks.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Acked-by: N"Eric W. Biederman" <ebiederm@xmission.com>
      Acked-by: NMiklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      39159de2
    • M
      ima: limit imbalance msg · d1625436
      Mimi Zohar 提交于
      Limit the number of imbalance messages to once per filesystem type instead of
      once per system boot.  (it's actually slightly racy and could give you a
      couple per fs, but this isn't a real issue)
      Signed-off-by: NMimi Zohar <zohar@us.ibm.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      d1625436
    • A
      Untangling ima mess, part 3: kill dead code in ima · 1429b3ec
      Al Viro 提交于
      Kill the 'update' argument of ima_path_check(), kill
      dead code in ima.
      
      Current rules: ima counters are bumped at the same time
      when the file switches from put_filp() fodder to fput()
      one.  Which happens exactly in two places - alloc_file()
      and __dentry_open().  Nothing else needs to do that at
      all.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      1429b3ec
    • A
      Untangling ima mess, part 2: deal with counters · b65a9cfc
      Al Viro 提交于
      * do ima_get_count() in __dentry_open()
      * stop doing that in followups
      * move ima_path_check() to right after nameidata_to_filp()
      * don't bump counters on it
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      b65a9cfc
    • A
      Untangling ima mess, part 1: alloc_file() · 0552f879
      Al Viro 提交于
      There are 2 groups of alloc_file() callers:
      	* ones that are followed by ima_counts_get
      	* ones giving non-regular files
      So let's pull that ima_counts_get() into alloc_file();
      it's a no-op in case of non-regular files.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      0552f879
    • A
      O_TRUNC open shouldn't fail after file truncation · 7715b521
      Al Viro 提交于
      * take truncate logics into a helper (handle_truncate())
      * rip it out of may_open()
      * call it from the only caller of may_open() that might pass
      O_TRUNC
      * and do that after we'd finished with opening.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      7715b521
    • E
      ima: call ima_inode_free ima_inode_free · 85a17f55
      Eric Paris 提交于
      ima_inode_free() has some funky #define just to confuse the crap out of me.
      
      void ima_iint_delete(struct inode *inode)
      
      and then things actually call ima_inode_free() and nothing calls
      ima_iint_delete().
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      85a17f55
    • E
      IMA: clean up the IMA counts updating code · e0d5bd2a
      Eric Paris 提交于
      We currently have a lot of duplicated code around ima file counts.  Clean
      that all up.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Acked-by: NSerge Hallyn <serue@us.ibm.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      e0d5bd2a
    • E
      ima: only insert at inode creation time · 9353384e
      Eric Paris 提交于
      iints are supposed to be allocated when an inode is allocated (during
      security_inode_alloc())  But we have code which will attempt to allocate
      an iint during measurement calls.  If we couldn't allocate the iint and we
      cared, we should have died during security_inode_alloc().  Not make the
      code more complex and less efficient.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      9353384e
    • E
      ima: valid return code from ima_inode_alloc · ec29ea54
      Eric Paris 提交于
      ima_inode_alloc returns 0 and 1, but the LSM hooks expects an errno.
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      ec29ea54
    • E
      fs: move get_empty_filp() deffinition to internal.h · e81e3f4d
      Eric Paris 提交于
      All users outside of fs/ of get_empty_filp() have been removed.  This patch
      moves the definition from the include/ directory to internal.h so no new
      users crop up and removes the EXPORT_SYMBOL.  I'd love to see open intents
      stop using it too, but that's a problem for another day and a smarter
      developer!
      Signed-off-by: NEric Paris <eparis@redhat.com>
      Acked-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      e81e3f4d