24 Mar, 2006

31 commits

  • In filesystems with the meta block group flag on, ext3_bg_num_gdb() fails
    to report the correct number of blocks used to store the group descriptor
    backups in a given group. It happens because meta_bg follows a different
    logic from the original ext3 backup placement in groups multiples of 3, 5
    and 7.

    Signed-off-by: Glauber de Oliveira Costa
    Cc: Andreas Dilger
    Cc: "Stephen C. Tweedie"
    Cc: Alex Tomas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Glauber de Oliveira Costa
     
  • If we don't want sys_newfstatat because __ARCH_WANT_STAT64 is defined, then
    we certainly don't want compat_sys_newfstatat either.

    Signed-off-by: Grant Grundler
    Signed-off-by: Kyle McMartin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kyle McMartin
     
  • Pull the guts out of do_fsync() - we can use it elsewhere.

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

    Andrew Morton
     
  • We need set_page_dirty() to return true if it actually transitioned the page
    from a clean to dirty state. This wasn't right in a couple of places. Do a
    kernel-wide audit, fix things up.

    This leaves open the possibility of returning a negative errno from
    set_page_dirty() sometime in the future. But we don't do that at present.

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

    Andrew Morton
     
  • Instead of using for_each_cpu(i), we can use for_each_online_cpu(i).

    When a CPU goes offline (ie removed from online map), it might have a non
    null bh_accounting.nr, so this patch adds a transfer of this counter to an
    online CPU counter.

    We already have a hotcpu_notifier, (function buffer_cpu_notify()), where we
    can do this bh_accounting.

    Signed-off-by: Eric Dumazet
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Dumazet
     
  • sb_set_blocksize() cleanup: make sb_set_blocksize() use blksize_bits().

    Signed-off-by: Coywolf Qi Hunt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Coywolf Qi Hunt
     
  • Under I/O load it may take up to a dozen seconds to read all group
    descriptors. This is what ext3_statfs() does. At the same time, we already
    maintain global numbers of free inodes/blocks. Why don't we use them instead
    of group reading and summing?

    Cc: Ravikiran G Thirumalai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alex Tomas
     
  • Remove unused debugging macros from isofs. The referred debug functions do
    not exist in the kernel.

    Signed-off-by: Pekka Enberg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pekka Enberg
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Change the kmem_cache_create calls for certain slab caches to support cpuset
    memory spreading.

    See the previous patches, cpuset_mem_spread, for an explanation of cpuset
    memory spreading, and cpuset_mem_spread_slab_cache for the slab cache support
    for memory spreading.

    The slab caches marked for now are: dentry_cache, inode_cache, some xfs slab
    caches, and buffer_head. This list may change over time. In particular,
    other file system types that are used extensively on large NUMA systems may
    want to allow for spreading their directory and inode slab cache entries.

    Signed-off-by: Paul Jackson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Jackson
     
  • Rewrap the overly long source code lines resulting from the previous
    patch's addition of the slab cache flag SLAB_MEM_SPREAD. This patch
    contains only formatting changes, and no function change.

    Signed-off-by: Paul Jackson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Jackson
     
  • Mark file system inode and similar slab caches subject to SLAB_MEM_SPREAD
    memory spreading.

    If a slab cache is marked SLAB_MEM_SPREAD, then anytime that a task that's
    in a cpuset with the 'memory_spread_slab' option enabled goes to allocate
    from such a slab cache, the allocations are spread evenly over all the
    memory nodes (task->mems_allowed) allowed to that task, instead of favoring
    allocation on the node local to the current cpu.

    The following inode and similar caches are marked SLAB_MEM_SPREAD:

    file cache
    ==== =====
    fs/adfs/super.c adfs_inode_cache
    fs/affs/super.c affs_inode_cache
    fs/befs/linuxvfs.c befs_inode_cache
    fs/bfs/inode.c bfs_inode_cache
    fs/block_dev.c bdev_cache
    fs/cifs/cifsfs.c cifs_inode_cache
    fs/coda/inode.c coda_inode_cache
    fs/dquot.c dquot
    fs/efs/super.c efs_inode_cache
    fs/ext2/super.c ext2_inode_cache
    fs/ext2/xattr.c (fs/mbcache.c) ext2_xattr
    fs/ext3/super.c ext3_inode_cache
    fs/ext3/xattr.c (fs/mbcache.c) ext3_xattr
    fs/fat/cache.c fat_cache
    fs/fat/inode.c fat_inode_cache
    fs/freevxfs/vxfs_super.c vxfs_inode
    fs/hpfs/super.c hpfs_inode_cache
    fs/isofs/inode.c isofs_inode_cache
    fs/jffs/inode-v23.c jffs_fm
    fs/jffs2/super.c jffs2_i
    fs/jfs/super.c jfs_ip
    fs/minix/inode.c minix_inode_cache
    fs/ncpfs/inode.c ncp_inode_cache
    fs/nfs/direct.c nfs_direct_cache
    fs/nfs/inode.c nfs_inode_cache
    fs/ntfs/super.c ntfs_big_inode_cache_name
    fs/ntfs/super.c ntfs_inode_cache
    fs/ocfs2/dlm/dlmfs.c dlmfs_inode_cache
    fs/ocfs2/super.c ocfs2_inode_cache
    fs/proc/inode.c proc_inode_cache
    fs/qnx4/inode.c qnx4_inode_cache
    fs/reiserfs/super.c reiser_inode_cache
    fs/romfs/inode.c romfs_inode_cache
    fs/smbfs/inode.c smb_inode_cache
    fs/sysv/inode.c sysv_inode_cache
    fs/udf/super.c udf_inode_cache
    fs/ufs/super.c ufs_inode_cache
    net/socket.c sock_inode_cache
    net/sunrpc/rpc_pipe.c rpc_inode_cache

    The choice of which slab caches to so mark was quite simple. I marked
    those already marked SLAB_RECLAIM_ACCOUNT, except for fs/xfs, dentry_cache,
    inode_cache, and buffer_head, which were marked in a previous patch. Even
    though SLAB_RECLAIM_ACCOUNT is for a different purpose, it marks the same
    potentially large file system i/o related slab caches as we need for memory
    spreading.

    Given that the rule now becomes "wherever you would have used a
    SLAB_RECLAIM_ACCOUNT slab cache flag before (usually the inode cache), use
    the SLAB_MEM_SPREAD flag too", this should be easy enough to maintain.
    Future file system writers will just copy one of the existing file system
    slab cache setups and tend to get it right without thinking.

    Signed-off-by: Paul Jackson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Jackson
     
  • Introduce a file fs/coda/coda_int.h with proper prototypes for some code.

    Signed-off-by: Adrian Bunk
    Acked-by: Jan Harkes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Add a proper prototype for ext2_get_parent().

    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • - mux.c: v9fs_poll_mux() was inline but not static resuling in needless
    object size bloat
    - mux.c: remove all "inline"s: gcc should know best what to inline
    - #if 0 the following unused global functions:
    - 9p.c: v9fs_v9fs_t_flush()
    - conv.c: v9fs_create_tauth()
    - mux.c: v9fs_mux_rpcnb()

    Signed-off-by: Adrian Bunk
    Cc: Eric Van Hensbergen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a
    duplicate of ARRAY_SIZE. Some trailing whitespaces are also deleted.

    Signed-off-by: Tobias Klauser
    Cc: David Howells
    Cc: Dave Kleikamp
    Acked-by: Trond Myklebust
    Cc: Neil Brown
    Cc: Chris Mason
    Cc: Jeff Mahoney
    Cc: Christoph Hellwig
    Cc: Nathan Scott
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tobias Klauser
     
  • Remove obsolete history and trailing whitespace.

    Signed-off-by: Horst Hummel
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Horst Hummel
     
  • The meaning of MS_VERBOSE is backwards; if the bit is set, it really means,
    "don't be verbose". This is confusing and counter-intuitive.

    In addition, there is also no way to set the MS_VERBOSE flag in the
    mount(8) program in util-linux, but interesting, it does define options
    which would do the right thing if MS_SILENT were defined, which
    unfortunately we do not:

    #ifdef MS_SILENT
    { "quiet", 0, 0, MS_SILENT }, /* be quiet */
    { "loud", 0, 1, MS_SILENT }, /* print out messages. */
    #endif

    So the obvious fix is to deprecate the use of MS_VERBOSE and replace it
    with MS_SILENT.

    Signed-off-by: "Theodore Ts'o"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Theodore Ts'o
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs-2.6:
    NTFS: 2.1.27 - Various bug fixes and cleanups.
    NTFS: Semaphore to mutex conversion.
    NTFS: Handle the recently introduced -ENAMETOOLONG return value from
    NTFS: Add a missing call to flush_dcache_mft_record_page() in
    NTFS: Fix a bug in fs/ntfs/inode.c::ntfs_read_locked_index_inode() where we
    NTFS: Improve comments on file attribute flags in fs/ntfs/layout.h.
    NTFS: Limit name length in fs/ntfs/unistr.c::ntfs_nlstoucs() to maximum
    NTFS: Remove all the make_bad_inode() calls. This should only be called
    NTFS: Add support for sparse files which have a compression unit of 0.
    NTFS: Fix comparison of $MFT and $MFTMirr to not bail out when there are
    NTFS: Use buffer_migrate_page() for the ->migratepage function of all ntfs
    NTFS: Fix a buggette in an "should be impossible" case handling where we
    NTFS: Fix an (innocent) off-by-one error in the runlist code.
    NTFS: Fix two compiler warnings on Alpha. Thanks to Andrew Morton for

    Linus Torvalds
     
  • * 'blktrace' of git://brick.kernel.dk/data/git/linux-2.6-block:
    [PATCH] Block queue IO tracing support (blktrace) as of 2006-03-23
    [PATCH] relay: consolidate sendfile() and read() code
    [PATCH] relay: add sendfile() support
    [PATCH] relay: migrate from relayfs to a generic relay API

    Linus Torvalds
     
  • * git://oss.sgi.com:8090/oss/git/xfs-2.6: (71 commits)
    [XFS] Sync up one/two other minor changes missed in previous merges.
    [XFS] Reenable the noikeep (delete inode cluster space) option by default.
    [XFS] Check that a page has dirty buffers before finding it acceptable for
    [XFS] Fixup naming inconsistencies found by Pekka Enberg and one from Jan
    [XFS] Explain the race closed by the addition of vn_iowait() to the start
    [XFS] Fixing the error caused by the conflict between DIO Write's
    [XFS] Fixing KDB's xrwtrc command, also added the current process id into
    [XFS] Fix compiler warning from xfs_file_compat_invis_ioctl prototype.
    [XFS] remove bogus INT_GET for u8 variables in xfs_dir_leaf.c
    [XFS] endianess annotations for xfs_da_node_hdr_t
    [XFS] endianess annotations for xfs_da_node_entry_t
    [XFS] store xfs_attr_inactive_list_t in native endian
    [XFS] store xfs_attr_sf_sort in native endian
    [XFS] endianess annotations for xfs_attr_shortform_t
    [XFS] endianess annotations for xfs_attr_leaf_name_remote_t
    [XFS] endianess annotations for xfs_attr_leaf_name_local_t
    [XFS] endianess annotations for xfs_attr_leaf_entry_t
    [XFS] endianess annotations for xfs_attr_leaf_hdr_t
    [XFS] remove bogus INT_GET on u8 variables in xfs_dir2_block.c
    [XFS] endianess annotations for xfs_da_blkinfo_t
    ...

    Linus Torvalds
     
  • Signed-off-by: Jens Axboe

    Jens Axboe
     
  • Original patch from Paul Mundt, sysfs parts removed by me since they
    were broken.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • Anton Altaparmakov
     
  • Signed-off-by: Anton Altaparmakov

    Anton Altaparmakov
     
  • The conversion was generated via scripts, and the result was validated
    automatically via a script as well.

    Signed-off-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Anton Altaparmakov

    Ingo Molnar
     
  • fs/ntfs/unistr.c::ntfs_nlstoucs() in fs/ntfs/namei.c::ntfs_lookup().

    Signed-off-by: Anton Altaparmakov

    Anton Altaparmakov
     
  • fs/ntfs/inode.c::ntfs_write_inode().

    Signed-off-by: Anton Altaparmakov

    Anton Altaparmakov
     
  • forgot to update a temporary variable so loading index inodes which
    have an index allocation attribute failed.

    Signed-off-by: Anton Altaparmakov

    Anton Altaparmakov
     
  • Signed-off-by: Anton Altaparmakov

    Anton Altaparmakov
     
  • allowed by NTFS, i.e. 255 Unicode characters, not including the
    terminating NULL (which is not stored on disk).

    Signed-off-by: Anton Altaparmakov

    Anton Altaparmakov
     

23 Mar, 2006

9 commits