04 Apr, 2014

40 commits

  • Merge first patch-bomb from Andrew Morton:
    - Various misc bits
    - kmemleak fixes
    - small befs, codafs, cifs, efs, freexxfs, hfsplus, minixfs, reiserfs things
    - fanotify
    - I appear to have become SuperH maintainer
    - ocfs2 updates
    - direct-io tweaks
    - a bit of the MM queue
    - printk updates
    - MAINTAINERS maintenance
    - some backlight things
    - lib/ updates
    - checkpatch updates
    - the rtc queue
    - nilfs2 updates
    - Small Documentation/ updates

    * emailed patches from Andrew Morton : (237 commits)
    Documentation/SubmittingPatches: remove references to patch-scripts
    Documentation/SubmittingPatches: update some dead URLs
    Documentation/filesystems/ntfs.txt: remove changelog reference
    Documentation/kmemleak.txt: updates
    fs/reiserfs/super.c: add __init to init_inodecache
    fs/reiserfs: move prototype declaration to header file
    fs/hfsplus/attributes.c: add __init to hfsplus_create_attr_tree_cache()
    fs/hfsplus/extents.c: fix concurrent acess of alloc_blocks
    fs/hfsplus/extents.c: remove unused variable in hfsplus_get_block
    nilfs2: update project's web site in nilfs2.txt
    nilfs2: update MAINTAINERS file entries fix
    nilfs2: verify metadata sizes read from disk
    nilfs2: add FITRIM ioctl support for nilfs2
    nilfs2: add nilfs_sufile_trim_fs to trim clean segs
    nilfs2: implementation of NILFS_IOCTL_SET_SUINFO ioctl
    nilfs2: add nilfs_sufile_set_suinfo to update segment usage
    nilfs2: add struct nilfs_suinfo_update and flags
    nilfs2: update MAINTAINERS file entries
    fs/coda/inode.c: add __init to init_inodecache()
    BEFS: logging cleanup
    ...

    Linus Torvalds
     
  • The link to the tarball for Andrew Morton's patch scripts is dead.
    These scripts don't seem to be used for kernel development these days
    anyways so just rip out all references to them.

    Signed-off-by: Mitchel Humpherys
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mitchel Humpherys
     
  • The links to "The perfect patch" and "NO!!!! No more huge patch
    bombs..." have gone stale. Update them to some working locations.

    Signed-off-by: Mitchel Humpherys
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mitchel Humpherys
     
  • File was removed in commit 7c821a179f91 ("Remove fs/ntfs/ChangeLog").

    Signed-off-by: Fabian Frederick
    Acked-by: Anton Altaparmakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     
  • Update Documentatin/kmemleak.txt to reflect the following changes:

    Commit b69ec42b1b19 ("Kconfig: clean up the long arch list for the
    DEBUG_KMEMLEAK config option") made it so that we can't check supported
    architectures by read Kconfig.debug.

    Commit 85d3a316c71 ("kmemleak: use rbtree instead of prio tree")
    converted kmemleak to use rbtree instead of prio tree.

    Signed-off-by: Wang YanQing
    Cc: Catalin Marinas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wang YanQing
     
  • init_inodecache is only called by __init init_reiserfs_fs.

    Signed-off-by: Fabian Frederick
    Acked-by: Jeff Mahoney
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     
  • Move prototype declaration to header file reiserfs/reiserfs.h from
    reiserfs/super.c because they are used by more than one file.

    This eliminates the following warning in reiserfs/bitmap.c:

    fs/reiserfs/bitmap.c:647:6: warning: no previous prototype for `show_alloc_options' [-Wmissing-prototypes]

    Signed-off-by: Rashika Kheria
    Reviewed-by: Josh Triplett
    Acked-by: Jeff Mahoney
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rashika Kheria
     
  • hfsplus_create_attr_tree_cache is only called by __init init_hfsplus_fs

    Signed-off-by: Fabian Frederick
    Reviewed-by: Vyacheslav Dubeyko
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     
  • Concurrent access to alloc_blocks in hfsplus_inode_info() is protected
    by extents_lock mutex. This patch fixes two instances where
    alloc_blocks modification was not protected with this lock.

    This fixes possible allocation bitmap corruption in race conditions
    while extending and truncating files.

    [akpm@linux-foundation.org: take extents_lock before taking a copy of ->alloc_blocks]
    [akpm@linux-foundation.org: remove now-unused label `out']
    Signed-off-by: Sougata Santra
    Reviewed-by: Christoph Hellwig
    Cc: Vyacheslav Dubeyko
    Cc: Alexey Khoroshilov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sougata Santra
     
  • The variable is defined but not used. Generally it compiles away with
    -O2 optimization hence it does not show a warning.

    Signed-off-by: Sougata Santra
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sougata Santra
     
  • Project's web site was moved to nilfs.sourceforge.net from
    www.nilfs.org. This updates the site information in
    Documentation/filesystems/nilfs2.txt with the new location.

    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • Also, web-page entry is updated according to relocation of project's web
    site.

    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • Add code to check sizes of on-disk data of metadata files such as inode
    size, segment usage size, DAT entry size, and checkpoint size. Although
    these sizes are read from disk, the current implementation doesn't check
    them.

    If these sizes are not sane on disk, it can cause out-of-range access to
    metadata or memory access overrun on metadata block buffers due to
    overflow in sundry calculations.

    Both lower limit and upper limit of metadata sizes are verified to
    prevent these issues.

    Signed-off-by: Ryusuke Konishi
    Cc: Andreas Rohner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • Add support for the FITRIM ioctl, which enables user space tools to
    issue TRIM/DISCARD requests to the underlying device. Every clean
    segment within the specified range will be discarded.

    Signed-off-by: Andreas Rohner
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andreas Rohner
     
  • Add nilfs_sufile_trim_fs(), which takes an fstrim_range structure and
    calls blkdev_issue_discard for every clean segment in the specified
    range. The range is truncated to file system block boundaries.

    Signed-off-by: Andreas Rohner
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andreas Rohner
     
  • With this ioctl the segment usage entries in the SUFILE can be updated
    from userspace.

    This is useful, because it allows the userspace GC to modify and update
    segment usage entries for specific segments, which enables it to avoid
    unnecessary write operations.

    If a segment needs to be cleaned, but there is no or very little
    reclaimable space in it, the cleaning operation basically degrades to a
    useless moving operation. In the end the only thing that changes is the
    location of the data and a timestamp in the segment usage information.
    With this ioctl the GC can skip the cleaning and update the segment
    usage entries directly instead.

    This is basically a shortcut to cleaning the segment. It is still
    necessary to read the segment summary information, but the writing of
    the live blocks can be skipped if it's not worth it.

    [konishi.ryusuke@lab.ntt.co.jp: add description of NILFS_IOCTL_SET_SUINFO ioctl]
    Signed-off-by: Andreas Rohner
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andreas Rohner
     
  • Introduce nilfs_sufile_set_suinfo(), which expects an array of
    nilfs_suinfo_update structures and updates the segment usage information
    accordingly.

    This is basically a helper function for the newly introduced
    NILFS_IOCTL_SET_SUINFO ioctl.

    [konishi.ryusuke@lab.ntt.co.jp: use put_bh() instead of brelse() because we know bh != NULL]
    Signed-off-by: Andreas Rohner
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andreas Rohner
     
  • Add the nilfs_suinfo_update structure, which contains the information
    needed to update one segment usage entry. The flags specify, which
    fields need to be updated.

    Signed-off-by: Andreas Rohner
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andreas Rohner
     
  • Update git repository entry of nilfs2 file system and maintainer's
    email description.

    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • init_inodecache is only called by __init init_coda

    Signed-off-by: Fabian Frederick
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     
  • Summary:
    - all printk(KERN_foo converted to pr_foo()
    - add pr_fmt and remove redundant prefixes
    - convert befs_() to va_format (based on patch by Joe Perches)
    - remove non standard %Lu
    - use __func__ for all debugging

    [akpm@linux-foundation.org: fix printk warnings, reported by Fengguang]
    Signed-off-by: Fabian Frederick
    Cc: Joe Perches
    Cc: Fengguang Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     
  • init_inodecache is only called by __init init_befs_fs.

    Signed-off-by: Fabian Frederick
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     
  • Use kzalloc for clean fs_info allocation like other filesystems.

    Signed-off-by: Fabian Frederick
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     
  • init_inodecache is only called by __init init_minix_fs.

    Signed-off-by: Fabian Frederick
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     
  • The patch "rtc: verify a critical argument to rtc_update_irq() before
    using it" introduces validation for rtc_device in the RTC core, so there
    are no need to check this argument for rtc_update_irq() from the
    drivers.

    This patch removes such check for the existing rtc_update_irq() users.

    Signed-off-by: Alexander Shiyan
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexander Shiyan
     
  • NO_IRQ may be defined as '(unsigned int) -1' in some architectures (arm,
    sh ...), and either may not be defined in some architectures (arm64) which
    can enable RTC_DRV_S3C.

    Also since platform_get_irq returns err-code in case of any error, we do
    not need to intialize s3c_rtc_alarmno and s3c_rtc_tickno.

    Signed-off-by: Pankaj Dubey
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pankaj Dubey
     
  • Using platform_get_irq_byname() to retrieve the IRQ number returns the
    VIRQ number rather than the local IRQ number for the device. Passing that
    value then into regmap_irq_get_virq() causes a failure because the
    function is expecting the local IRQ number (e.g. 0, 1, 2, 3, etc).

    This patch removes use of regmap_irq_get_virq() to prevent this failure
    from happening

    Signed-off-by: Adam Thomson
    Cc: Alessandro Zummo
    Cc: Dmitry Torokhov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adam Thomson
     
  • RTC drivers must not return an error after device registration.

    Signed-off-by: Gregory Hermant
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Gregory Hermant
     
  • Add support for maxim dallas rtc ds1347

    Signed-off-by: Raghavendra Chandra Ganiga
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raghavendra Ganiga
     
  • RTC drivers must not return an error after device registration. This
    patch makes RTC registration as the last action.

    Signed-off-by: Alexander Shiyan
    Acked-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexander Shiyan
     
  • Setup wakeup capability before rtc_register to ensure the rtc class core
    properly sets up our 'wakealarm' sysfs attribute.

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • Add support for describing the PM8921/PM8058 RTC in device tree.

    Additionally:
    - drop support for describing the RTC using platform data,
    as there are no current in tree users who do so.
    - make allow_set_time a device-specific flag, instead of mucking
    with the rtc_ops

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Acked-by: Lee Jones
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • Make use of the devm_* variant of request_any_context_irq to allow for
    elimination of remove().

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • Now that the parent mfd driver has been made to work again, and has been
    reworked to create a regmap instance intended for its children to use,
    rework the pm8xxx driver to use the regmap API for its register
    accesses.

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • This patchset is based on Stephen Boyd's PM8921 modernization/cleanups
    (http://lkml.kernel.org/g/1393441166-32692-1-git-send-email-sboyd@codeaurora.org),
    and allows for this RTC driver to be usable again.

    This patch (of 6):

    Before performing additional cleanups to this driver, do the easy cleanups
    first.

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • This small addition to the core simplifies code in the drivers and makes
    them more robust when handling shared IRQs.

    Signed-off-by: Alessandro Zummo
    Cc: Alexander Shiyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Add suspend/resume and device_init_wakeup to enable ds3232 as wakeup
    source, /sys/class/rtc/rtcX/wakealarm for set wakeup alarm.

    Signed-off-by: Wang Dongsheng
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wang Dongsheng
     
  • Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

    Signed-off-by: Jingoo Han
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jingoo Han
     
  • Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

    Signed-off-by: Jingoo Han
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jingoo Han
     
  • CONFIG_PM will be set also if only CONFIG_PM_RUNTIME is set which causes
    the compiler to emit following warning:

    drivers/rtc/rtc-cmos.c:845:12: warning: =E2=80=98cmos_resume=E2=80=99 defined but not used [-Wunused-function]

    Fix this by using CONFIG_PM_SLEEP instead of CONFIG_PM and removing it
    from the driver pm ops as this has been taken care by
    SIMPLE_DEV_PM_OPS() already.

    Signed-off-by: Mika Westerberg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mika Westerberg