07 Jan, 2006

3 commits

  • Optimise rmap functions by minimising atomic operations when we know there
    will be no concurrent modifications.

    Signed-off-by: Nick Piggin
    Cc: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nick Piggin
     
  • Implement copy-on-write support for hugetlb mappings so MAP_PRIVATE can be
    supported. This helps us to safely use hugetlb pages in many more
    applications. The patch makes the following changes. If needed, I also have
    it broken out according to the following paragraphs.

    1. Add a pair of functions to set/clear write access on huge ptes. The
    writable check in make_huge_pte is moved out to the caller for use by COW
    later.

    2. Hugetlb copy-on-write requires special case handling in the following
    situations:

    - copy_hugetlb_page_range() - Copied pages must be write protected so
    a COW fault will be triggered (if necessary) if those pages are written
    to.

    - find_or_alloc_huge_page() - Only MAP_SHARED pages are added to the
    page cache. MAP_PRIVATE pages still need to be locked however.

    3. Provide hugetlb_cow() and calls from hugetlb_fault() and
    hugetlb_no_page() which handles the COW fault by making the actual copy.

    4. Remove the check in hugetlbfs_file_map() so that MAP_PRIVATE mmaps
    will be allowed. Make MAP_HUGETLB exempt from the depricated VM_RESERVED
    mapping check.

    Signed-off-by: David Gibson
    Signed-off-by: Adam Litke
    Cc: William Lee Irwin III
    Cc: "Seth, Rohit"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Gibson
     
  • nls_utf8 is available, and the check in hfsplus_fill_super checks the wrong
    pointer for NULLness (it checks the saved nls, not the new one that it
    needs to use.)

    Signed-off-by: Joshua Kwan
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joshua Kwan
     

06 Jan, 2006

1 commit


05 Jan, 2006

9 commits


04 Jan, 2006

13 commits


03 Jan, 2006

4 commits


31 Dec, 2005

1 commit

  • The old /proc interfaces were never updated to use loff_t, and are just
    generally broken. Now, we should be using the seq_file interface for
    all of the proc files, but converting the legacy functions is more work
    than most people care for and has little upside..

    But at least we can make the non-LFS rules explicit, rather than just
    insanely wrapping the offset or something.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

30 Dec, 2005

2 commits


23 Dec, 2005

2 commits


21 Dec, 2005

2 commits

  • There's currently a diagnostic printk in relay_switch_subbuf() meant as
    a warning if you accidentally try to log an event larger than the
    sub-buffer size.

    The problem is if this happens while logging from somewhere it's not
    safe to be doing printks, such as in the scheduler, you can end up with
    a deadlock. This patch removes the warning from relay_switch_subbuf()
    and instead prints some diagnostic info when the channel is closed.

    Thanks to Mathieu Desnoyers for pointing out the problem and
    suggesting a fix.

    Signed-off-by: Tom Zanussi
    Signed-off-by: Linus Torvalds

    Tom Zanussi
     
  • We must check for MAY_SATTR before setting acls, which includes checking
    for read-only exports: the lower-level setxattr operation that
    eventually sets the acl cannot check export-level restrictions.

    Bug reported by Martin Walter .

    Signed-off-by: Andreas Gruenbacher
    Acked-by: Trond Myklebust
    Signed-off-by: Linus Torvalds

    Andreas Gruenbacher
     

20 Dec, 2005

2 commits


16 Dec, 2005

1 commit