21 Mar, 2011

13 commits

  • Move kfree() of i_private out of ->unlink() and into ->evict_inode()

    Signed-off-by: Tony Luck
    Signed-off-by: Al Viro

    Tony Luck
     
  • It is frequently useful to sync a single file system, instead of all
    mounted file systems via sync(2):

    - On machines with many mounts, it is not at all uncommon for some of
    them to hang (e.g. unresponsive NFS server). sync(2) will get stuck on
    those and may never get to the one you do care about (e.g., /).
    - Some applications write lots of data to the file system and then
    want to make sure it is flushed to disk. Calling fsync(2) on each
    file introduces unnecessary ordering constraints that result in a large
    amount of sub-optimal writeback/flush/commit behavior by the file
    system.

    There are currently two ways (that I know of) to sync a single super_block:

    - BLKFLSBUF ioctl on the block device: That also invalidates the bdev
    mapping, which isn't usually desirable, and doesn't work for non-block
    file systems.
    - 'mount -o remount,rw' will call sync_filesystem as an artifact of the
    current implemention. Relying on this little-known side effect for
    something like data safety sounds foolish.

    Both of these approaches require root privileges, which some applications
    do not have (nor should they need?) given that sync(2) is an unprivileged
    operation.

    This patch introduces a new system call syncfs(2) that takes an fd and
    syncs only the file system it references. Maybe someday we can

    $ sync /some/path

    and not get

    sync: ignoring all arguments

    The syscall is motivated by comments by Al and Christoph at the last LSF.
    syncfs(2) seems like an appropriate name given statfs(2).

    A similar ioctl was also proposed a while back, see
    http://marc.info/?l=linux-fsdevel&m=127970513829285&w=2

    Signed-off-by: Sage Weil
    Signed-off-by: Al Viro

    Sage Weil
     
  • Hi,

    I was backporting the coredump over pipe feature and noticed this small typo,
    I wish I would have something bigger to contribute...

    >From 15d6080e0ed4267da103c706917a33b1015e8804 Mon Sep 17 00:00:00 2001
    From: Holger Hans Peter Freyther
    Date: Thu, 24 Feb 2011 17:42:50 +0100
    Subject: [PATCH] fs: Fix a small typo in the comment

    The function is called umh_pipe_setup not uhm_pipe_setup.

    Signed-off-by: Holger Hans Peter Freyther
    Signed-off-by: Al Viro

    Holger Hans Peter Freyther
     
  • Fixed coding style issue.

    Signed-off-by: David Jenni
    Signed-off-by: Al Viro

    David Jenni
     
  • Signed-off-by: Ben Hutchings
    Signed-off-by: Al Viro

    Ben Hutchings
     
  • Remove the leftover from the commit 8ff3e8e85fa6 ("select:
    switch select() and poll() over to hrtimers").

    Signed-off-by: Namhyung Kim
    Acked-by: Arjan van de Ven
    Signed-off-by: Al Viro

    Namhyung Kim
     
  • Move declaration of 'inode' to beginning of the function. Since it
    is referenced directly or indirectly (in case of FIFREEZE/FITHAW/
    FS_IOC_FIEMAP) it's not harmful IMHO. And remove unnecessary casts
    using 'argp' instead.

    Signed-off-by: Namhyung Kim
    Signed-off-by: Al Viro

    Namhyung Kim
     
  • * 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6: (25 commits)
    video: change to new flag variable
    scsi: change to new flag variable
    rtc: change to new flag variable
    rapidio: change to new flag variable
    pps: change to new flag variable
    net: change to new flag variable
    misc: change to new flag variable
    message: change to new flag variable
    memstick: change to new flag variable
    isdn: change to new flag variable
    ieee802154: change to new flag variable
    ide: change to new flag variable
    hwmon: change to new flag variable
    dma: change to new flag variable
    char: change to new flag variable
    fs: change to new flag variable
    xtensa: change to new flag variable
    um: change to new flag variables
    s390: change to new flag variable
    mips: change to new flag variable
    ...

    Fix up trivial conflict in drivers/hwmon/Makefile

    Linus Torvalds
     
  • * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
    scripts/extract-ikconfig: add xz compression support
    kbuild: add GNU GLOBAL tags generation
    setlocalversion: update mercurial tag parsing

    Linus Torvalds
     
  • * 'packaging' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
    kbuild: Add make tarxz-pkg build option

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    i2c-i801: SMBus patch for Intel DH89xxCC DeviceIDs
    i2c: Drop i2c_adapter.id
    i2c: Deprecate i2c_driver.attach_adapter and .detach_adapter
    i2c-dev: Use standard bus notification mechanism
    i2c: Export i2c_for_each_dev
    i2c: Get rid of
    i2c: Minor fixes to upgrading-clients document
    i2c: make i2c_get_adapter prototype clearer
    i2c: Fix typo in instantiating-devices document
    i2c-boardinfo: Fix typo in comment

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
    asm-generic: support clock_adjtime() in
    arch/tile: fix futex sanitization definition/prototype mismatch

    Linus Torvalds
     
  • commit 54405cde7624 (r8169: support control of advertising.)
    introduced a bug in rtl8169_init_phy()

    Reported-and-tested-by: Piotr Hosowicz
    Reported-and-tested-by: Linus Torvalds
    Signed-off-by: Eric Dumazet
    Acked-by:: Oliver Neukum
    Cc: Francois Romieu
    Tested-by: Anca Emanuel
    Signed-off-by: Linus Torvalds

    Eric Dumazet
     

20 Mar, 2011

13 commits


19 Mar, 2011

14 commits

  • Dmitry Torokhov
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2:
    nilfs2: move NILFS_SUPER_MAGIC to linux/magic.h
    nilfs2: get rid of nilfs_sb_info structure
    nilfs2: use sb instance instead of nilfs_sb_info struct
    nilfs2: get rid of sc_sbi back pointer
    nilfs2: move log writer onto nilfs object
    nilfs2: move next generation counter into nilfs object
    nilfs2: move s_inode_lock and s_dirty_files into nilfs object
    nilfs2: move parameters on nilfs_sb_info into nilfs object
    nilfs2: move mount options to nilfs object
    nilfs2: record used amount of each checkpoint in checkpoint list
    nilfs2: optimize rec_len functions
    nilfs2: append blocksize info to warnings during loading super blocks
    nilfs2: add compat ioctl
    nilfs2: implement FS_IOC_GETFLAGS/SETFLAGS/GETVERSION
    nilfs2: tighten restrictions on inode flags
    nilfs2: mark S_NOATIME on inodes only if NOATIME attribute is set
    nilfs2: use common file attribute macros
    nilfs2: add free entries count only if clear bit operation succeeded
    nilfs2: decrement inodes count only if raw inode was successfully deleted

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc: (53 commits)
    mmc: dw_mmc: support mmc power control with regulator
    mmc: dw_mmc: fix suspend/resume operation
    mmc: dw_mmc: add quirks for unreliable card detect, and capabilities
    mmc: tmio: fix address in kunmap_atomic() calls
    mmc: core: reset card voltage after power off
    mmc: core: export function mmc_do_release_host()
    mmc: sdio: remember new card RCA when redetecting card
    mmc: dw_mmc: Remove set-but-unused variable.
    mmc: sdhci-esdhc-imx: add card detect on custom GPIO for mx25/35
    mmc: sdhci-esdhc: broken card detection is not a default quirk
    mmc: sdhci-esdhc-imx: add write protect on custom GPIO on mx25/35
    mmc: msm_sdcc: remove needless cache flush after dma_unmap_sg()
    mmc: sh_mmcif: support aggressive clock gating
    mmc: check if mmc cards < 2GB do sector addressing
    mmc: core: comment on why sdio_reset is done at init time
    mmc: dw_mmc: support DDR mode
    mmc: via-sdmmc: Remove set-but-unused variable.
    mmc: cb710: Return err value in cb710_wait_while_busy()
    mmc: sdhci-pci: Remove set-but-unused variable.
    mmc: mxs-mmc: add mmc host driver for i.MX23/28
    ...

    Linus Torvalds
     
  • * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
    USB: Move runtime PM callbacks to usb_device_pm_ops

    Linus Torvalds
     
  • * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-2.6-mn10300:
    MN10300: Clear ASB2364 peripheral interrupt masks before enabling interrupts
    MN10300: Fix the ASB2364 gdbport UART register defs
    MN10300: Fix ASB2364 FPGA register defs
    MN10300: Select GENERIC_HARDIRQS_NO_DEPRECATED
    MN10300: Select HAVE_GENERIC_HARDIRQS rather than GENERIC_HARDIRQS
    MN10300: Convert ASB2364 FPGA irq_chip to new functions
    MN10300: Convert ipi irq_chip to new functions
    MN10300: Convert serial irq_chip to new functions
    MN10300: Convert cpu irq_chips to new functions
    MN10300: Remove unused mn10300_intc_* functions
    MN10300: Remove stale irq_chip.end - V2
    MN10300: Use clockevents_calc_mult_shift()
    MN10300: Use clocksource_register_hz()
    MN10300: Remove stale code

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin: (32 commits)
    Blackfin: ip0x: fix unused variable warning
    Blackfin: punt unused HDMA masks
    Blackfin: wire up new syscalls
    Blackfin/ipipe: restore pipeline bits in irqflags
    Blackfin/ipipe: fix deferred pipeline sync for the root stage
    Blackfin/ipipe: upgrade to I-pipe mainline
    Blackfin: cpufreq: fix typos
    Blackfin: enable GENERIC_HARDIRQS_NO_DEPRECATED
    Blackfin: SMP: convert to irq chip functions
    Blackfin: use accessor functions in show_interrupts()
    Blackfin: use proper wrapper functions for modifying irq status
    Blackfin: convert gpio irq_chip to new functions
    Blackfin: convert mac irq_chip to new functions
    Blackfin: convert error irq_chip to new functions
    Blackfin: convert internal irq_chip to new functions
    Blackfin: convert core irq_chip to new functions
    Blackfin: use proper wrappers for irq_desc
    Blackfin: optimize startup code
    Blackfin: SMP: work around anomaly 05000491
    Blackfin: SMP: implement cpu_freq support
    ...

    Linus Torvalds
     
  • USB defines usb_device_type pointing to usb_device_pm_ops that
    provides system-wide PM callbacks only and usb_bus_type pointing to
    usb_bus_pm_ops that provides runtime PM callbacks only. However,
    the USB runtime PM callbacks may be defined in usb_device_pm_ops
    which makes it possible to drop usb_bus_pm_ops and will allow us
    to consolidate the handling of subsystems by the PM core code.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Greg Kroah-Hartman

    Rafael J. Wysocki
     
  • * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI: label: remove #include of ACPI header to avoid warnings
    PCI: label: Fix compilation error when CONFIG_ACPI is unset
    PCI: pre-allocate additional resources to devices only after successful allocation of essential resources.
    PCI: introduce reset_resource()
    PCI: data structure agnostic free list function
    PCI: refactor io size calculation code
    PCI: do not create quirk I/O regions below PCIBIOS_MIN_IO for ICH
    PCI hotplug: acpiphp: set current_state to D0 in register_slot
    PCI: Export ACPI _DSM provided firmware instance number and string name to sysfs
    PCI: add more checking to ICH region quirks
    PCI: aer-inject: Override PCIe AER Mask Registers
    PCI: fix tlan build when CONFIG_PCI is not enabled
    PCI: remove quirk for pre-production systems
    PCI: Avoid potential NULL pointer dereference in pci_scan_bridge
    PCI/lpc: irq and pci_ids patch for Intel DH89xxCC DeviceIDs
    PCI: sysfs: Fix failure path for addition of "vpd" attribute

    Linus Torvalds
     
  • * 'spi/next' of git://git.secretlab.ca/git/linux-2.6: (34 commits)
    spi/dw_spi: move dw_spi.h into drivers/spi
    spi/dw_spi: Fix missing header
    gpio/langwell: Clear edge bit before handling
    gpio/langwell: Simplify demux loop
    gpio/langwell: Convert irq name space
    gpio/langwell: Fix broken irq_eoi change.
    gpio; Make Intel chipset gpio drivers depend on x86
    gpio/cs5535-gpio: Fix section mismatch
    spi/rtc-{ds1390,ds3234,m41t94}: Use spi_get_drvdata() for SPI devices
    spi/davinci: Support DMA transfers larger than 65535 words
    spi/davinci: Use correct length parameter to dma_map_single calls
    gpio: Use __devexit at necessary places
    gpio: add MODULE_DEVICE_TABLE to pch_gpio and ml_ioh_gpio
    gpio/mcp23s08: support mcp23s17 variant
    of_mmc_spi: add card detect irq support
    spi/omap_mcspi: catch xfers of non-multiple SPI word size
    spi/omap_mcspi: Off-by-one error in finding the right divisor
    gpio/pca953x: Fix wrong pointer type
    spi/pl022: rid dangling labels
    spi: add support for SuperH SPI
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm:
    dlm: use alloc_workqueue function
    dlm: increase default hash table sizes
    dlm: record full callback state

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    fs: call security_d_instantiate in d_obtain_alias V2
    lose 'mounting_here' argument in ->d_manage()
    don't pass 'mounting_here' flag to follow_down()
    change the locking order for namespace_sem
    fix deadlock in pivot_root()
    vfs: split off vfsmount-related parts of vfs_kern_mount()
    Some fixes for pstore
    kill simple_set_mnt()

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bcopeland/omfs:
    omfs: make readdir stop when filldir says so
    omfs: merge unlink() and rmdir(), close leak in rename()
    omfs: stop playing silly buggers with omfs_unlink() in ->rename()
    omfs: rename() needs to mark old_inode dirty after ctime update

    Linus Torvalds
     
  • * 'linux-next' of git://git.infradead.org/ubifs-2.6: (25 commits)
    UBIFS: clean-up commentaries
    UBIFS: save 128KiB or more RAM
    UBIFS: allocate orphans scan buffer on demand
    UBIFS: allocate lpt dump buffer on demand
    UBIFS: allocate ltab checking buffer on demand
    UBIFS: allocate scanning buffer on demand
    UBIFS: allocate dump buffer on demand
    UBIFS: do not check data crc by default
    UBIFS: simplify UBIFS Kconfig menu
    UBIFS: print max. index node size
    UBIFS: handle allocation failures in UBIFS write path
    UBIFS: use max_write_size during recovery
    UBIFS: use max_write_size for write-buffers
    UBIFS: introduce write-buffer size field
    UBI: incorporate LEB offset information
    UBIFS: incorporate maximum write size
    UBI: provide LEB offset information
    UBI: incorporate maximum write size
    UBIFS: fix LEB number in printk
    UBIFS: restrict world-writable debugfs files
    ...

    Linus Torvalds
     
  • * 'linux-next' of git://git.infradead.org/ubi-2.6:
    UBI: make tests modes dynamic
    UBI: make self-checks dynamic
    UBI: make debugging messages dynamic
    UBI: remove UBI_IO_DEBUG macro
    UBI: kill debugging buffer
    UBI: allocate erase checking buffer on demand
    UBI: allocate write checking buffer on demand
    UBI: always re-read in case of read failures
    UBI: cleanup comments about corrupted PEBs
    UBI: add slab cache for ubi_scan_leb objects
    UBI: use raw mtd read function in debugging code
    UBI: try to reveal buggy MTD drivers
    UBI: add a commentary about allocating VID header buffer on stack
    UBI: cleanup LEB start calculations
    UBI: fix NOR erase preparation quirk

    Linus Torvalds