17 Oct, 2007

40 commits

  • Fix kernel-doc for sys_remap_file_pages() and add info to the 'prot' NOTE.
    Rename __prot parameter to prot.

    Signed-off-by: Randy Dunlap
    Acked-by: Nick Piggin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • This patch does the following cleanups for Documentation/vm/slabinfo.c:

    - Fix two memory leaks;
    - Constify some char pointers;
    - Use snprintf instead of sprintf in case of buffer overflow;
    - Fix some indentations;
    - Other little improvements.

    Acked-by: Christoph Lameter
    Signed-off-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    WANG Cong
     
  • min_free_pages is critical for correctness, document it as such.

    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • This cleans up kdump documentation a bit. Plus I do not think we want
    to mention Linux trademark in _every_ file in documentation....

    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Machek
     
  • A couple of updates haven't considered whether the documentation makes
    sense as a whole any more. Three changes here:

    - Remove the reference to the "DAC Addressing for Address Space Hungry
    Devices" section which was deleted by Jan Beulich.
    - Remove the comment about DMA_24BIT_MASK which became obsolete when
    Tobias Klauser changed the code to actually use DMA_24BIT_MASK.
    - Remove the section "64-bit DMA and DAC cycle support" since it's
    fully covered above, and contains a reference to the section deleted
    by Jan.

    Signed-off-by: Matthew Wilcox
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Wilcox
     
  • Add Documentation/power/00-INDEX

    Signed-off-by: Rob Landley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rob Landley
     
  • Add two missing entries to Documentation/powerpc/00-INDEX

    Signed-off-by: Rob Landley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rob Landley
     
  • Two 00-INDEX files under Documentation/w1

    Signed-off-by: Rob Landley
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rob Landley
     
  • Add missing entries to Documentation/00-INDEX

    Signed-off-by: Rob Landley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rob Landley
     
  • The existing Documentation/SM501.txt gives no clue what the chip is or does,
    so copy the description from Kconfig help text.

    Acked-by: Ben Dooks
    Signed-off-by: Rob Landley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rob Landley
     
  • This patch adds the "reset_devices" option (that's used only by one device
    driver for now) to the recommended list of command line parameters for kdump.

    Meaning (Documentation/kernel-parameters.txt):
    reset_devices [KNL] Force drivers to reset the underlying device
    during initialization.

    Signed-off-by: Bernhard Walle
    Cc: "Randy.Dunlap"
    Cc: Vivek Goyal
    Cc: "Eric W. Biederman"
    Cc: Haren Myneni
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bernhard Walle
     
  • This patch reflects the
    http://git.kernel.org/?p=linux/kernel/git/horms/kexec-tools-testing.git;a=commit;h=b9c3648e690ad0dad12389659673206213a09760
    change in kexec-tools-testing also now in the kernel documentation.

    Signed-off-by: Bernhard Walle
    Cc: "Randy.Dunlap"
    Cc: Vivek Goyal
    Cc: "Eric W. Biederman"
    Cc: Haren Myneni
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bernhard Walle
     
  • Fix typos in CONFIG_RELOCATABLE. Use tab + 2 spaces for indentation on all
    lines.

    Signed-off-by: Randy Dunlap
    Cc: Bernhard Walle
    Cc: Vivek Goyal
    Cc: "Eric W. Biederman"
    Cc: Haren Myneni
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • This patch adapts the Documentation/kdump/kdump.txt file to express the fact
    that the x86_64 kernel is now also relocatable. This makes i386 and x86_64
    now behave the same, simplifying the documentation.

    Signed-off-by: Bernhard Walle
    Cc: "Randy.Dunlap"
    Cc: Vivek Goyal
    Cc: "Eric W. Biederman"
    Cc: Haren Myneni
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bernhard Walle
     
  • Signed-off-by: Robert P. J. Day
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert P. J. Day
     
  • Johannes Berg reports (Thanks!) that &struct names are not highlighted in
    html output format when they are inside a DOC: block.

    DOC: blocks were not escaped thru xml_escape() like other kernel-doc
    comments were. Fixed that.

    However, that left a problem with

    ($blankline_html) being processed
    thru xml_escape(), converting it to <p>, which isn't good for the
    generated html output (the

    should remain unchanged), so this patch also
    introduces the notion of "local" kernel-doc meta-characters
    ('\\\\mnemonic:'), which are converted to html just before writing the
    stream to its output file.

    Please report any problems that you (anyone) see in "highlighting" in any
    output mode (text, man, html, xml).

    Also update copyright to include me.

    Signed-off-by: Randy Dunlap
    Cc: Johannes Berg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Add a 00-INDEX file to Documentation/telephony/

    Signed-off-by: Jesper Juhl
    Acked-by: Rob Landley
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Add a 00-INDEX file to Documentation/sysctl/

    Signed-off-by: Jesper Juhl
    Cc: Rob Landley
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Add a 00-INDEX file to Documentation/mips/

    Signed-off-by: Jesper Juhl
    Cc: Rob Landley
    Cc: Randy Dunlap
    Cc: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Looks like the 00-INDEX file lost its parent directory in -rc6-mm1.

    Signed-off-by: David Rientjes
    Cc: Jesper Juhl
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • This patch adds a 00-INDEX file to Documentation/vm/

    Signed-off-by: Jesper Juhl
    Acked-by: Rob Landley
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Signed-off-by: Denis Cheng
    Cc: Rob Landley
    Cc: "Randy.Dunlap"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Denis Cheng
     
  • Some documentation for "make headers_install".

    Signed-off-by: Rob Landley
    Cc: David Woodhouse
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rob Landley
     
  • This patch cleans up duplicate includes in
    Documentation/

    Signed-off-by: Jesper Juhl
    Acked-by: Balbir Singh
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • I'm going to be modifying nfsd_rename() shortly to support read-only bind
    mounts. This #ifdef is around the area I'm patching, and it starts to get
    really ugly if I just try to add my new code by itself. Using this little
    helper makes things a lot cleaner to use.

    Signed-off-by: Dave Hansen
    Acked-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Hansen
     
  • First of all, this makes the structure jumping look a little bit cleaner. So,
    this stands alone as a tiny cleanup. But, we also need 'mnt' by itself a few
    more times later in this series, so this isn't _just_ a cleanup.

    Signed-off-by: Dave Hansen
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Hansen
     
  • may_open() calls vfs_permission() before it does checks for IS_RDONLY(inode).
    It checks _again_ inside of vfs_permission().

    The check inside of vfs_permission() is going away eventually. With the
    mnt_want/drop_write() functions, all of the r/o checks (except for this one)
    are consistently done before calling permission(). Because of this, I'd like
    to use permission() to hold a debugging check to make sure that the
    mnt_want/drop_write() calls are actually being made.

    So, to do this:
    1. remove the IS_RDONLY() check from permission()
    2. enforce that you must mnt_want_write() before
    even calling permission()
    3. actually add the debugging check to permission()

    We need to rearrange may_open() to do r/o checks before calling permission().
    Here's the patch.

    Signed-off-by: Dave Hansen
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Hansen
     
  • Why do we need r/o bind mounts?

    This feature allows a read-only view into a read-write filesystem. In the
    process of doing that, it also provides infrastructure for keeping track of
    the number of writers to any given mount.

    This has a number of uses. It allows chroots to have parts of filesystems
    writable. It will be useful for containers in the future because users may
    have root inside a container, but should not be allowed to write to
    somefilesystems. This also replaces patches that vserver has had out of the
    tree for several years.

    It allows security enhancement by making sure that parts of your filesystem
    read-only (such as when you don't trust your FTP server), when you don't want
    to have entire new filesystems mounted, or when you want atime selectively
    updated. I've been using the following script to test that the feature is
    working as desired. It takes a directory and makes a regular bind and a r/o
    bind mount of it. It then performs some normal filesystem operations on the
    three directories, including ones that are expected to fail, like creating a
    file on the r/o mount.

    This patch:

    Some filesystems forego the vfs and may_open() and create their own 'struct
    file's.

    This patch creates a couple of helper functions which can be used by these
    filesystems, and will provide a unified place which the r/o bind mount code
    may patch.

    Also, rename an existing, static-scope init_file() to a less generic name.

    Signed-off-by: Dave Hansen
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Hansen
     
  • Add PNP debug message when adding a device, remove similar PNPACPI message
    with less information.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Hoist the struct pnp_dev alloc up into the function where it's used.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Use dev_info() for a little consistency. Changes this:

    pnp: 00:01: ioport range 0xf50-0xf58 has been reserved
    pnp: 00:01: ioport range 0x408-0x40f has been reserved
    pnp: 00:01: ioport range 0x900-0x903 has been reserved

    to this:

    system 00:01: ioport range 0xf50-0xf58 has been reserved
    system 00:01: ioport range 0x408-0x40f has been reserved
    system 00:01: ioport range 0x900-0x903 has been reserved

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • If we have the struct pnp_dev available, we can use dev_info(), dev_err(),
    etc., to give a little more information and consistency.

    [akpm@linux-foundation.org: fix warning]
    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • No functional change; just return errors early instead of putting the main
    part of the function inside an "if" statement.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Remove some null pointer checks. Null pointers in these areas indicate
    programming errors, and I think it's better to oops immediately rather than
    return an error that is easily ignored.

    Signed-off-by: Bjorn Helgaas
    Cc: Adam Belay
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Workaround for broken systems with BIOS that makes RTC interrupt level
    triggered and/or active low.

    See http://bugzilla.kernel.org/show_bug.cgi?id=5243

    Based on the patch from Shaohua Li

    Signed-off-by: Krzysztof Piotr Oledzki
    Cc: "Li, Shaohua"
    Cc: Bjorn Helgaas
    Cc: Andi Kleen
    Cc: Adam Belay
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Oledzki
     
  • Most drivers for devices supporting ISA DMA can operate without DMA as well
    (falling back zo PIO). Thus it seems inappropriate for PNP to fail device
    initialization in case none of the possible DMA channels are available.
    Instead, it should be left to the driver to decide what to do if
    request_dma() fails.

    The patch at once adjusts the code to account for the fact that
    pnp_assign_dma() now doesn't need to report failure anymore.

    Signed-off-by: Jan Beulich
    Cc: Adam Belay
    Cc: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Beulich
     
  • pnpacpi_suspend() doesn't check the result returned by
    acpi_pm_device_sleep_state() before passing it to acpi_bus_set_power(),
    which may not be desirable.  Make it select the target power state of the
    device using its second argument if acpi_pm_device_sleep_state() fails.

    Signed-off-by: Rafael J. Wysocki
    Looks-ok-to: Pavel Machek
    Cc: Adam Belay
    Cc: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • Define a new function fuse_refresh_attributes() that conditionally refreshes
    the attributes based on the validity timeout.

    In fuse_permission() only refresh the attributes for checking the execute bits
    if necessary.

    Signed-off-by: Miklos Szeredi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Miklos Szeredi
     
  • Don't return -ENOENT for a read() on the fuse device when the request was
    aborted. Instead return -ENODEV, meaning the filesystem has been
    force-umounted or aborted.

    Previously ENOENT meant that the request was interrupted, but now the
    'aborted' flag is not set in case of interrupts.

    Signed-off-by: Miklos Szeredi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Miklos Szeredi
     
  • Don't set 'aborted' flag on a request if it's interrupted. We have to wait
    for the answer anyway, and this would only a very little time while copying
    the reply.

    This means, that write() on the fuse device will not return -ENOENT during
    normal operation, only if the filesystem is aborted by a forced umount or
    through the fusectl interface.

    This could simplify userspace code somewhat when backward compatibility with
    earlier kernel versions is not required.

    Signed-off-by: Miklos Szeredi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Miklos Szeredi