16 Jan, 2011

19 commits

  • Allow d_manage() to be called from pathwalk when it is in RCU-walk mode as well
    as when it is in Ref-walk mode. This permits __follow_mount_rcu() to call
    d_manage() directly. d_manage() needs a parameter to indicate that it is in
    RCU-walk mode as it isn't allowed to sleep if in that mode (but should return
    -ECHILD instead).

    autofs4_d_manage() can then be set to retain RCU-walk mode if the daemon
    accesses it and otherwise request dropping back to ref-walk mode.

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

    David Howells
     
  • Remove a further kludge from __do_follow_link() as it's no longer required with
    the automount code.

    This reverts the non-helper-function parts of
    051d381259eb57d6074d02a6ba6e90e744f1a29f, which breaks union mounts.

    Reported-by: vaurora@redhat.com
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    David Howells
     
  • Increase the autofs module sub-version so we can tell what kernel
    implementation is being used from user space debug logging.

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • Version 4 of autofs provides a pseudo direct mount implementation
    that relies on directories at the leaves of a directory tree under
    an indirect mount to trigger mounts.

    This patch adds support for that functionality.

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • It is possible for the check in wait.c:validate_request() to return
    an incorrect result if the dentry that was mounted upon has changed
    during the callback.

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • When this function is called the local reference count does't need to
    be updated since the dentry is going away and dput definitely must
    not be called here.

    Also the autofs info struct field inode isn't used so remove it.

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • There are now two distinct dentry operations uses. One for dentrys
    that trigger mounts and one for dentrys that do not.

    Rationalize the use of these dentry operations and rename them to
    reflect their function.

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • Since the use of ->follow_link() has been eliminated there is no
    need to separate the indirect and direct inode operations.

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • Remove code that is not used due to the use of ->d_automount()
    and ->d_manage().

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • This patch required a previous patch to add the ->d_automount()
    dentry operation.

    Add a function to use the newly defined ->d_manage() dentry operation
    for blocking during mount and expire.

    Whether the VFS calls the dentry operations d_automount() and d_manage()
    is controled by the DMANAGED_AUTOMOUNT and DMANAGED_TRANSIT flags. autofs
    uses the d_automount() operation to callback to user space to request
    mount operations and the d_manage() operation to block walks into mounts
    that are under construction or destruction.

    In order to prevent these functions from being called unnecessarily the
    DMANAGED_* flags are cleared for cases which would cause this. In the
    common case the DMANAGED_AUTOMOUNT and DMANAGED_TRANSIT flags are both
    set for dentrys waiting to be mounted. The DMANAGED_TRANSIT flag is
    cleared upon successful mount request completion and set during expire
    runs, both during the dentry expire check, and if selected for expire,
    is left set until a subsequent successful mount request completes.

    The exception to this is the so-called rootless multi-mount which has
    no actual mount at its base. In this case the DMANAGED_AUTOMOUNT flag
    is cleared upon successful mount request completion as well and set
    again after a successful expire.

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • Add a function to use the newly defined ->d_automount() dentry operation
    for triggering mounts instead of doing the user space callback in ->lookup()
    and ->d_revalidate().

    Note, to be useful the subsequent patch to add the ->d_manage() dentry
    operation is also needed so the discussion of functionality is deferred to
    that patch.

    Signed-off-by: Ian Kent
    Signed-off-by: David Howells
    Signed-off-by: Al Viro

    Ian Kent
     
  • Remove the automount through follow_link() kludge code from pathwalk in favour
    of using d_automount().

    Signed-off-by: David Howells
    Acked-by: Ian Kent
    Signed-off-by: Al Viro

    David Howells
     
  • Make CIFS use the new d_automount() dentry operation rather than abusing
    follow_link() on directories.

    [NOTE: THIS IS UNTESTED!]

    Signed-off-by: David Howells
    Cc: Steve French
    Signed-off-by: Al Viro

    David Howells
     
  • Make NFS use the new d_automount() dentry operation rather than abusing
    follow_link() on directories.

    Signed-off-by: David Howells
    Acked-by: Trond Myklebust
    Acked-by: Ian Kent
    Signed-off-by: Al Viro

    David Howells
     
  • Make AFS use the new d_automount() dentry operation rather than abusing
    follow_link() on directories.

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

    David Howells
     
  • Add an AT_NO_AUTOMOUNT flag to suppress terminal automounting of automount
    point directories. This can be used by fstatat() users to permit the
    gathering of attributes on an automount point and also prevent
    mass-automounting of a directory of automount points by ls.

    Signed-off-by: David Howells
    Acked-by: Ian Kent
    Signed-off-by: Al Viro

    David Howells
     
  • Add a dentry op (d_manage) to permit a filesystem to hold a process and make it
    sleep when it tries to transit away from one of that filesystem's directories
    during a pathwalk. The operation is keyed off a new dentry flag
    (DCACHE_MANAGE_TRANSIT).

    The filesystem is allowed to be selective about which processes it holds and
    which it permits to continue on or prohibits from transiting from each flagged
    directory. This will allow autofs to hold up client processes whilst letting
    its userspace daemon through to maintain the directory or the stuff behind it
    or mounted upon it.

    The ->d_manage() dentry operation:

    int (*d_manage)(struct path *path, bool mounting_here);

    takes a pointer to the directory about to be transited away from and a flag
    indicating whether the transit is undertaken by do_add_mount() or
    do_move_mount() skipping through a pile of filesystems mounted on a mountpoint.

    It should return 0 if successful and to let the process continue on its way;
    -EISDIR to prohibit the caller from skipping to overmounted filesystems or
    automounting, and to use this directory; or some other error code to return to
    the user.

    ->d_manage() is called with namespace_sem writelocked if mounting_here is true
    and no other locks held, so it may sleep. However, if mounting_here is true,
    it may not initiate or wait for a mount or unmount upon the parameter
    directory, even if the act is actually performed by userspace.

    Within fs/namei.c, follow_managed() is extended to check with d_manage() first
    on each managed directory, before transiting away from it or attempting to
    automount upon it.

    follow_down() is renamed follow_down_one() and should only be used where the
    filesystem deliberately intends to avoid management steps (e.g. autofs).

    A new follow_down() is added that incorporates the loop done by all other
    callers of follow_down() (do_add/move_mount(), autofs and NFSD; whilst AFS, NFS
    and CIFS do use it, their use is removed by converting them to use
    d_automount()). The new follow_down() calls d_manage() as appropriate. It
    also takes an extra parameter to indicate if it is being called from mount code
    (with namespace_sem writelocked) which it passes to d_manage(). follow_down()
    ignores automount points so that it can be used to mount on them.

    __follow_mount_rcu() is made to abort rcu-walk mode if it hits a directory with
    DCACHE_MANAGE_TRANSIT set on the basis that we're probably going to have to
    sleep. It would be possible to enter d_manage() in rcu-walk mode too, and have
    that determine whether to abort or not itself. That would allow the autofs
    daemon to continue on in rcu-walk mode.

    Note that DCACHE_MANAGE_TRANSIT on a directory should be cleared when it isn't
    required as every tranist from that directory will cause d_manage() to be
    invoked. It can always be set again when necessary.

    ==========================
    WHAT THIS MEANS FOR AUTOFS
    ==========================

    Autofs currently uses the lookup() inode op and the d_revalidate() dentry op to
    trigger the automounting of indirect mounts, and both of these can be called
    with i_mutex held.

    autofs knows that the i_mutex will be held by the caller in lookup(), and so
    can drop it before invoking the daemon - but this isn't so for d_revalidate(),
    since the lock is only held on _some_ of the code paths that call it. This
    means that autofs can't risk dropping i_mutex from its d_revalidate() function
    before it calls the daemon.

    The bug could manifest itself as, for example, a process that's trying to
    validate an automount dentry that gets made to wait because that dentry is
    expired and needs cleaning up:

    mkdir S ffffffff8014e05a 0 32580 24956
    Call Trace:
    [] :autofs4:autofs4_wait+0x674/0x897
    [] avc_has_perm+0x46/0x58
    [] autoremove_wake_function+0x0/0x2e
    [] :autofs4:autofs4_expire_wait+0x41/0x6b
    [] :autofs4:autofs4_revalidate+0x91/0x149
    [] __lookup_hash+0xa0/0x12f
    [] lookup_create+0x46/0x80
    [] sys_mkdirat+0x56/0xe4

    versus the automount daemon which wants to remove that dentry, but can't
    because the normal process is holding the i_mutex lock:

    automount D ffffffff8014e05a 0 32581 1 32561
    Call Trace:
    [] __mutex_lock_slowpath+0x60/0x9b
    [] do_path_lookup+0x2ca/0x2f1
    [] .text.lock.mutex+0xf/0x14
    [] do_rmdir+0x77/0xde
    [] tracesys+0x71/0xe0
    [] tracesys+0xd5/0xe0

    which means that the system is deadlocked.

    This patch allows autofs to hold up normal processes whilst the daemon goes
    ahead and does things to the dentry tree behind the automouter point without
    risking a deadlock as almost no locks are held in d_manage() and none in
    d_automount().

    Signed-off-by: David Howells
    Was-Acked-by: Ian Kent
    Signed-off-by: Al Viro

    David Howells
     
  • Add a dentry op (d_automount) to handle automounting directories rather than
    abusing the follow_link() inode operation. The operation is keyed off a new
    dentry flag (DCACHE_NEED_AUTOMOUNT).

    This also makes it easier to add an AT_ flag to suppress terminal segment
    automount during pathwalk and removes the need for the kludge code in the
    pathwalk algorithm to handle directories with follow_link() semantics.

    The ->d_automount() dentry operation:

    struct vfsmount *(*d_automount)(struct path *mountpoint);

    takes a pointer to the directory to be mounted upon, which is expected to
    provide sufficient data to determine what should be mounted. If successful, it
    should return the vfsmount struct it creates (which it should also have added
    to the namespace using do_add_mount() or similar). If there's a collision with
    another automount attempt, NULL should be returned. If the directory specified
    by the parameter should be used directly rather than being mounted upon,
    -EISDIR should be returned. In any other case, an error code should be
    returned.

    The ->d_automount() operation is called with no locks held and may sleep. At
    this point the pathwalk algorithm will be in ref-walk mode.

    Within fs/namei.c itself, a new pathwalk subroutine (follow_automount()) is
    added to handle mountpoints. It will return -EREMOTE if the automount flag was
    set, but no d_automount() op was supplied, -ELOOP if we've encountered too many
    symlinks or mountpoints, -EISDIR if the walk point should be used without
    mounting and 0 if successful. The path will be updated to point to the mounted
    filesystem if a successful automount took place.

    __follow_mount() is replaced by follow_managed() which is more generic
    (especially with the patch that adds ->d_manage()). This handles transits from
    directories during pathwalk, including automounting and skipping over
    mountpoints (and holding processes with the next patch).

    __follow_mount_rcu() will jump out of RCU-walk mode if it encounters an
    automount point with nothing mounted on it.

    follow_dotdot*() does not handle automounts as you don't want to trigger them
    whilst following "..".

    I've also extracted the mount/don't-mount logic from autofs4 and included it
    here. It makes the mount go ahead anyway if someone calls open() or creat(),
    tries to traverse the directory, tries to chdir/chroot/etc. into the directory,
    or sticks a '/' on the end of the pathname. If they do a stat(), however,
    they'll only trigger the automount if they didn't also say O_NOFOLLOW.

    I've also added an inode flag (S_AUTOMOUNT) so that filesystems can mark their
    inodes as automount points. This flag is automatically propagated to the
    dentry as DCACHE_NEED_AUTOMOUNT by __d_instantiate(). This saves NFS and could
    save AFS a private flag bit apiece, but is not strictly necessary. It would be
    preferable to do the propagation in d_set_d_op(), but that doesn't normally
    have access to the inode.

    [AV: fixed breakage in case if __follow_mount_rcu() fails and nameidata_drop_rcu()
    succeeds in RCU case of do_lookup(); we need to fall through to non-RCU case after
    that, rather than just returning with ungrabbed *path]

    Signed-off-by: David Howells
    Was-Acked-by: Ian Kent
    Signed-off-by: Al Viro

    David Howells
     
  • do_lookup() has a path leading from LOOKUP_RCU case to non-RCU
    crossing of mountpoints, which breaks things badly. If we
    hit need_revalidate: and do nothing in there, we need to come
    back into LOOKUP_RCU half of things, not to done: in non-RCU
    one.

    Signed-off-by: Al Viro

    Al Viro
     

15 Jan, 2011

18 commits

  • * 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI/PM: Report wakeup events before resuming devices
    PCI/PM: Use pm_wakeup_event() directly for reporting wakeup events
    PCI: sysfs: Update ROM to include default owner write access
    x86/PCI: make Broadcom CNB20LE driver EMBEDDED and EXPERIMENTAL
    x86/PCI: don't use native Broadcom CNB20LE driver when ACPI is available
    PCI/ACPI: Request _OSC control once for each root bridge (v3)
    PCI: enable pci=bfsort by default on future Dell systems
    PCI/PCIe: Clear Root PME Status bits early during system resume
    PCI: pci-stub: ignore zero-length id parameters
    x86/PCI: irq and pci_ids patch for Intel Patsburg
    PCI: Skip id checking if no id is passed
    PCI: fix __pci_device_probe kernel-doc warning
    PCI: make pci_restore_state return void
    PCI: Disable ASPM if BIOS asks us to
    PCI: Add mask bit definition for MSI-X table
    PCI: MSI: Move MSI-X entry definition to pci_regs.h

    Fix up trivial conflicts in drivers/net/{skge.c,sky2.c} that had in the
    meantime been converted to not use legacy PCI power management, and thus
    no longer use pci_restore_state() at all (and that caused trivial
    conflicts with the "make pci_restore_state return void" patch)

    Linus Torvalds
     
  • * git://git.infradead.org/battery-2.6: (21 commits)
    power_supply: Add MAX17042 Fuel Gauge Driver
    olpc_battery: Fix up XO-1.5 properties list
    olpc_battery: Add support for CURRENT_NOW and VOLTAGE_NOW
    olpc_battery: Add support for CHARGE_NOW
    olpc_battery: Add support for CHARGE_FULL_DESIGN
    olpc_battery: Ambient temperature is not available on XO-1.5
    jz4740-battery: Should include linux/io.h
    s3c_adc_battery: Add gpio_inverted field to pdata
    power_supply: Don't use flush_scheduled_work()
    power_supply: Fix use after free and memory leak
    gpio-charger: Fix potential race between irq handler and probe/remove
    gpio-charger: Provide default name for the power_supply
    gpio-charger: Check result of kzalloc
    jz4740-battery: Check if platform_data is supplied
    isp1704_charger: Detect charger after probe
    isp1704_charger: Set isp->dev before anything needs it
    isp1704_charger: Detect HUB/Host chargers
    isp1704_charger: Correct length for storing model
    power_supply: Add gpio charger driver
    jz4740-battery: Protect against concurrent battery readings
    ...

    Linus Torvalds
     
  • flush_scheduled_work() is going away. afs needs to make sure all the
    works it has queued have finished before being unloaded and there can
    be arbitrary number of pending works. Add afs_wq and use it as the
    flush domain instead of the system workqueue.

    Also, convert cancel_delayed_work() + flush_scheduled_work() to
    cancel_delayed_work_sync() in afs_mntpt_kill_timer().

    Signed-off-by: Tejun Heo
    Signed-off-by: David Howells
    Cc: linux-afs@lists.infradead.org
    Signed-off-by: Linus Torvalds

    Tejun Heo
     
  • rxrpc_workqueue isn't depended upon while reclaiming memory. Convert
    to alloc_workqueue() without WQ_MEM_RECLAIM.

    Signed-off-by: Tejun Heo
    Signed-off-by: David Howells
    Cc: linux-afs@lists.infradead.org
    Signed-off-by: Linus Torvalds

    Tejun Heo
     
  • fscache_submit_exclusive_op() adds an operation to the pending list if
    other operations are pending. Fix the check for pending ops as n_ops
    must be greater than 0 at the point it is checked as it is incremented
    immediately before under lock.

    Signed-off-by: Akshat Aranya
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    Akshat Aranya
     
  • …t/npiggin/linux-npiggin

    * 'vfs-scale-working' of git://git.kernel.org/pub/scm/linux/kernel/git/npiggin/linux-npiggin:
    kernel: fix hlist_bl again
    cgroups: Fix a lockdep warning at cgroup removal
    fs: namei fix ->put_link on wrong inode in do_filp_open

    Linus Torvalds
     
  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (59 commits)
    mfd: ab8500-core chip version cut 2.0 support
    mfd: Flag WM831x /IRQ as a wake source
    mfd: Convert WM831x away from legacy I2C PM operations
    regulator: Support MAX8998/LP3974 DVS-GPIO
    mfd: Support LP3974 RTC
    i2c: Convert SCx200 driver from using raw PCI to platform device
    x86: OLPC: convert olpc-xo1 driver from pci device to platform device
    mfd: MAX8998/LP3974 hibernation support
    mfd/ab8500: remove spi support
    mfd: Remove ARCH_U8500 dependency from AB8500
    misc: Make AB8500_PWM driver depend on U8500 due to PWM breakage
    mfd: Add __devexit annotation for vx855_remove
    mfd: twl6030 irq_data conversion.
    gpio: Fix cs5535 printk warnings
    misc: Fix cs5535 printk warnings
    mfd: Convert Wolfson MFD drivers to use irq_data accessor function
    mfd: Convert TWL4030 to new irq_ APIs
    mfd: Convert tps6586x driver to new irq_ API
    mfd: Convert tc6393xb driver to new irq_ APIs
    mfd: Convert t7166xb driver to new irq_ API
    ...

    Linus Torvalds
     
  • Make wakeup events be reported by the PCI subsystem before attempting to
    resume devices or queuing up runtime resume requests for them, because
    wakeup events should be reported as soon as they have been detected.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Jesse Barnes

    Rafael J. Wysocki
     
  • After recent changes related to wakeup events pm_wakeup_event()
    automatically checks if the given device is configured to signal wakeup,
    so pci_wakeup_event() may be a static inline function calling
    pm_wakeup_event() directly.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Jesse Barnes

    Rafael J. Wysocki
     
  • The PCI sysfs ROM interface requires an enabling write to access the ROM
    image, but the default file mode is 0400. The original proposed patch
    adding sysfs ROM support was a true read-only interface, with the
    enabling bit coming in as a feature request. I suspect it was simply an
    oversight that the file mode didn't get updated to match the API.

    Acked-by: Chris Wright
    Signed-off-by: Alex Williamson
    Signed-off-by: Jesse Barnes

    Alex Williamson
     
  • This functionality is known to be incomplete, so discourage its use in
    general-purpose kernels.

    The only reason to use this driver is to support PCI hotplug on CNB20LE-
    based machines that don't have ACPI, and there are very few such
    systems.

    Reference: https://bugzilla.redhat.com/show_bug.cgi?id=665109
    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Jesse Barnes

    Bjorn Helgaas
     
  • The broadcom_bus.c quirk was written (without benefit of documentation)
    to support PCI hotplug on an old system that doesn't have ACPI. As
    such, we should only use it when the system doesn't have ACPI.

    If the system does have ACPI and we need the host bridge description, we
    should get it from the ACPI _CRS method. On machines older than 2008,
    we currently ignore _CRS, but that doesn't mean we should use
    broadcom_bus.c. It means we should either (a) do what we've done in the
    past and assume everything in the PCI gap is routed to bus 0 (so hotplug
    may not work), or (b) arrange to use _CRS. This patch does (a).

    Reference: https://bugzilla.redhat.com/show_bug.cgi?id=665109
    Acked-by: Ira W. Snyder
    Signed-off-by: Bjorn Helgaas
    Signed-off-by: Jesse Barnes

    Bjorn Helgaas
     
  • Move the evaluation of acpi_pci_osc_control_set() (to request control of
    PCI Express native features) into acpi_pci_root_add() to avoid calling
    it many times for the same root complex with the same arguments.
    Additionally, check if all of the requisite _OSC support bits are set
    before calling acpi_pci_osc_control_set() for a given root complex.

    References: https://bugzilla.kernel.org/show_bug.cgi?id=20232
    Reported-by: Ozan Caglayan
    Tested-by: Ozan Caglayan
    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Jesse Barnes

    Rafael J. Wysocki
     
  • This patch enables pci=bfsort by default on future Dell systems.
    It reads SMBIOS type 0xB1 vendor specific record and sets pci=bfsort
    accordingly.

    Offset Name Length Value Description

    04 Flags0 Word Varies Bits 9-10
    - 10:9 = 00 Unknown
    - 10:9 = 01 Breadth First
    - 10:9 = 10 Depth First
    - 10:9 = 11 Reserved

    1. Any time pci=bfsort has to be enabled on a system, we need to add the
    model number of the system to the white list. With this patch, that
    is not required.

    2. Typically, model number has to be added to the white list when the
    system is under development. With this change, that is not required.

    Signed-off-by: Jordan Hargrave
    Signed-off-by: Narendra K
    Signed-off-by: Jesse Barnes

    Narendra_K@Dell.com
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] MAINTAINERS: Update zcrypt driver entry
    [S390] Randomize PIEs
    [S390] Randomise the brk region
    [S390] Add is_32bit_task() helper function
    [S390] Randomize lower bits of stack address
    [S390] Randomize mmap start address
    [S390] Rearrange mmap.c
    [S390] Enable flexible mmap layout for 64 bit processes
    [S390] vdso: dont map at mmap_base
    [S390] reduce miminum gap between stack and mmap_base
    [S390] mmap: consider stack address randomization
    [S390] Update default configuration
    [S390] cio: path_event overindication after resume

    Linus Torvalds
     
  • Commit a1f5f22adc3206c47e70652c12671666c65b579f ("gpio: timbgpio:
    irq_data conversion") was slightly too enthusiastic in converting
    timbgpio_irq() over to take an irq_data * argument instead of an
    unsigned int irq argument, as it is a flow handler, which still take
    IRQ numbers for now. (And on top of that, it was using the wrong
    accessors.)

    This fixes it up, and seems to build without warnings.

    Signed-off-by: Lennert Buytenhek
    Cc: Andrew Morton
    Cc: Richard Röjfors
    Signed-off-by: Linus Torvalds

    Lennert Buytenhek
     
  • cgroup can't use simple_lookup(), since that'd override its desired ->d_op.

    Tested-by: Li Zefan
    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Commit 5f829e405ec4e96f711165a4a7b55c271d4363e2 (gpiolib: add missing functions
    to generic fallback) also introduced two.

    Signed-off-by: Wolfram Sang
    Cc: Greg KH
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wolfram Sang
     

14 Jan, 2011

3 commits

  • The flags added by commit db16d5ec1f87f17511599bc77857dd1662b5a22f
    has no user now. We believe we'll use it soon but considering
    patch reviewing, the change itself should be folded into incoming
    set of "dirty ratio for memcg" patches.

    So, it's better to drop this change from current mainline tree.

    Signed-off-by: KAMEZAWA Hiroyuki
    Reviewed-by: Greg Thelen
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • Subjct: Revert memory cgroup dirty_ratio Documentation.

    The commit ece72400c2a27a3d726cb0854449f991d9fcd2da adds documentation
    for memcg's dirty ratio. But the function is not implemented yet.
    Remove the documentation for avoiding confusing users.

    Signed-off-by: KAMEZAWA Hiroyuki
    Reviewed-by: Greg Thelen
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • The MAX17042 is a fuel gauge with an I2C interface for lithium-ion
    betteries. Unlike its predecessor MAX17040, MAX17042 uses 16bit
    registers. Besides, MAX17042 has much more features than MAX17040; e.g.,
    a thermistor, current and current accumulation measurement, battery
    internal resistance estimate, average values of measurement, and others.

    This patch implements a driver for MAX17042.
    In this initial release, we have implemented the most basic features of
    a fuel gauge: measure the battery capacity and voltage.

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Signed-off-by: Anton Vorontsov

    MyungJoo Ham