1. 10 9月, 2005 33 次提交
    • N
      [PATCH] md: all hot-add and hot-remove of md intent logging bitmaps · 36fa3063
      NeilBrown 提交于
      Both file-bitmaps and superblock bitmaps are supported.
      
      If you add a bitmap file on the array device, you lose.
      
      This introduces a 'default_bitmap_offset' field in mddev, as the ioctl used
      for adding a superblock bitmap doesn't have room for giving an offset.  Later,
      this value will be setable via sysfs.
      Signed-off-by: NNeil Brown <neilb@cse.unsw.edu.au>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      36fa3063
    • L
      Remove "must_check" attributes in PCI-land · 9c8550ee
      Linus Torvalds 提交于
      Don't just irritate all other kernel developers.  Fix the users first,
      then you can re-introduce the must-check infrastructure to avoid new
      cases creeping in.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9c8550ee
    • I
      [PATCH] timer initialization cleanup: DEFINE_TIMER · 8d06afab
      Ingo Molnar 提交于
      Clean up timer initialization by introducing DEFINE_TIMER a'la
      DEFINE_SPINLOCK.  Build and boot-tested on x86.  A similar patch has been
      been in the -RT tree for some time.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      8d06afab
    • M
      [PATCH] FUSE: add fsync operation for directories · 82547981
      Miklos Szeredi 提交于
      This patch adds a new FSYNCDIR request, which is sent when fsync is called
      on directories.  This operation is available in libfuse 2.3-pre1 or
      greater.
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      82547981
    • M
      [PATCH] fuse: more flexible caching · 45323fb7
      Miklos Szeredi 提交于
      Make data caching behavior selectable on a per-open basis instead of
      per-mount.  Compatibility for the old mount options 'kernel_cache' and
      'direct_io' is retained in the userspace library (version 2.4.0-pre1 or
      later).
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      45323fb7
    • M
      [PATCH] fuse: transfer readdir data through device · 04730fef
      Miklos Szeredi 提交于
      This patch removes a long lasting "hack" in FUSE, which used a separate
      channel (a file descriptor refering to a disk-file) to transfer directory
      contents from userspace to the kernel.
      
      The patch adds three new operations (OPENDIR, READDIR, RELEASEDIR), which
      have semantics and implementation exactly maching the respective file
      operations (OPEN, READ, RELEASE).
      
      This simplifies the directory reading code.  Also disk space is not
      necessary, which can be important in embedded systems.
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      04730fef
    • M
      [PATCH] FUSE: add padding · 06663267
      Miklos Szeredi 提交于
      Add padding to structures to make sizes the same on 32bit and 64bit archs.
      Initial testing and test machine generously provided by Franco Broi.
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      06663267
    • M
      [PATCH] FUSE - extended attribute operations · 92a8780e
      Miklos Szeredi 提交于
      This patch adds the extended attribute operations to FUSE.
      
      The following operations are added:
      
       o getxattr
       o setxattr
       o listxattr
       o removexattr
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      92a8780e
    • M
      [PATCH] FUSE - file operations · b6aeaded
      Miklos Szeredi 提交于
      This patch adds the file operations of FUSE.
      
      The following operations are added:
      
       o open
       o flush
       o release
       o fsync
       o readpage
       o commit_write
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b6aeaded
    • M
      [PATCH] FUSE - read-write operations · 9e6268db
      Miklos Szeredi 提交于
      This patch adds the write filesystem operations of FUSE.
      
      The following operations are added:
      
       o setattr
       o symlink
       o mknod
       o mkdir
       o create
       o unlink
       o rmdir
       o rename
       o link
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9e6268db
    • M
      [PATCH] FUSE - read-only operations · e5e5558e
      Miklos Szeredi 提交于
      This patch adds the read-only filesystem operations of FUSE.
      
      This contains the following files:
      
       o dir.c
          - directory, symlink and file-inode operations
      
      The following operations are added:
      
       o lookup
       o getattr
       o readlink
       o follow_link
       o directory open
       o readdir
       o directory release
       o permission
       o dentry revalidate
       o statfs
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e5e5558e
    • M
      [PATCH] FUSE - device functions · 334f485d
      Miklos Szeredi 提交于
      This adds the FUSE device handling functions.
      
      This contains the following files:
      
       o dev.c
          - fuse device operations (read, write, release, poll)
          - registers misc device
          - support for sending requests to userspace
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      334f485d
    • M
      [PATCH] FUSE - core · d8a5ba45
      Miklos Szeredi 提交于
      This patch adds FUSE core.
      
      This contains the following files:
      
       o inode.c
          - superblock operations (alloc_inode, destroy_inode, read_inode,
            clear_inode, put_super, show_options)
          - registers FUSE filesystem
      
       o fuse_i.h
          - private header file
      
      Requirements
      ============
      
       The most important difference between orinary filesystems and FUSE is
       the fact, that the filesystem data/metadata is provided by a userspace
       process run with the privileges of the mount "owner" instead of the
       kernel, or some remote entity usually running with elevated
       privileges.
      
       The security implication of this is that a non-privileged user must
       not be able to use this capability to compromise the system.  Obvious
       requirements arising from this are:
      
        - mount owner should not be able to get elevated privileges with the
          help of the mounted filesystem
      
        - mount owner should not be able to induce undesired behavior in
          other users' or the super user's processes
      
        - mount owner should not get illegitimate access to information from
          other users' and the super user's processes
      
       These are currently ensured with the following constraints:
      
        1) mount is only allowed to directory or file which the mount owner
          can modify without limitation (write access + no sticky bit for
          directories)
      
        2) nosuid,nodev mount options are forced
      
        3) any process running with fsuid different from the owner is denied
           all access to the filesystem
      
       1) and 2) are ensured by the "fusermount" mount utility which is a
          setuid root application doing the actual mount operation.
      
       3) is ensured by a check in the permission() method in kernel
      
       I started thinking about doing 3) in a different way because Christoph
       H. made a big deal out of it, saying that FUSE is unacceptable into
       mainline in this form.
      
       The suggested use of private namespaces would be OK, but in their
       current form have many limitations that make their use impractical (as
       discussed in this thread).
      
       Suggested improvements that would address these limitations:
      
         - implement shared subtrees
      
         - allow a process to join an existing namespace (make namespaces
           first-class objects)
      
         - implement the namespace creation/joining in a PAM module
      
       With all that in place the check of owner against current->fsuid may
       be removed from the FUSE kernel module, without compromising the
       security requirements.
      
       Suid programs still interesting questions, since they get access even
       to the private namespace causing some information leak (exact
       order/timing of filesystem operations performed), giving some
       ptrace-like capabilities to unprivileged users.  BTW this problem is
       not strictly limited to the namespace approach, since suid programs
       setting fsuid and accessing users' files will succeed with the current
       approach too.
      Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d8a5ba45
    • A
      [PATCH] fbcon: Break up bit_putcs into its component functions · 829e79b6
      Antonino A. Daplas 提交于
      The function bit_putcs() in drivers/video/console/bitblit.c is becoming large.
       Break it up into its component functions (bit_putcs_unaligned and
      bit_putcs_aligned).
      
      Incorporated fb_pad_aligned_buffer() optimization by Roman Zippel.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      829e79b6
    • A
      [PATCH] fbdev: Add VESA Coordinated Video Timings (CVT) support · 96fe6a21
      Antonino A. Daplas 提交于
      The Coordinated Video Timings (CVT) is the latest standard approved by VESA
      concerning video timings generation.  It addresses the limitation of GTF which
      is designed mainly for CRT displays.  CRT's have a high blanking requirement
      (as much as 25% of the horizontal frame length) which artificially increases
      the pixelclock.  Digital displays, on the other hand, needs to conserve the
      pixelclock as much as possible.  The GTF also does not take into account the
      different aspect ratios in its calculation.
      
      The new function added is fb_find_mode_cvt().  It is called by fb_find_mode()
      if it recognizes a mode option string formatted for CVT.  The format is:
      
      <xres>x<yres>[M][R][-<bpp>][<at-sign><refresh>][i][m]
      
      The 'M' tells the function to calculate using CVT.  On it's own, it will
      compute a timing for CRT displays at 60Hz.  If the 'R' is specified, 'reduced
      blanking' computation will be used, best for flatpanels.  The 'i' and the 'm'
      is for 'interlaced mode' and 'with margins' respectively.
      
      To determine if CVT was used, check for dmesg for something like this:
      
      CVT Mode - <pix>M<n>[-R], ie: .480M3-R  (800x600 reduced blanking)
      
      where: pix - product of xres and yres, in MB
          M   - is a CVT mode
          n   - the aspect ratio (3 - 4:3; 4 - 5:4; 9 - 16:9, 15:9; A - 16:10)
          -R   - reduced blanking
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      96fe6a21
    • P
      [PATCH] PCI: Small rearrangement of PCI probing code · cdb9b9f7
      Paul Mackerras 提交于
      This patch makes some small rearrangements of the PCI probing code in
      order to make it possible for arch code to set up the PCI tree
      without needing to duplicate code from the PCI layer unnecessarily.
      PPC64 will use this to set up the PCI tree from the Open Firmware
      device tree, which we need to do on logically-partitioned pSeries
      systems.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      cdb9b9f7
    • T
      [PATCH] sisfb update · 544393fe
      Thomas Winischhofer 提交于
      This lifts sisfb from version 1.7.17 to version 1.8.9. Changes include:
      
      - Added support for XGI V3XT, V5, V8, Z7 chipsets, including POSTing of
        all of these chipsets.
      
      - Added support for latest SiS chipsets (761).
      
      - Added support for SiS76x memory "hybrid" mode.
      
      - Added support for new LCD resolutions (eg 1280x854, 856x480).
      
      - Fixed support for 320x240 STN panels (for embedded devices).
      
      - Fixed many HDTV modes (525p, 750p, 1080i).
      
      - Fixed PCI config register reading/writing to use proper kernel
        functions for this purpose.
      
      - Fixed PCI ROM handling to use the kernel's proper functions.
      
      - Removed lots of "typedef"s.
      
      - Removed lots of code which was for X.org/XFree86 only.
      
      - Fixed coding style in many places.
      
      - Removed lots of 2.4 cruft.
      
      - Reduced stack size by unifying two previously separate structs into
        one.
      
      - Added new hooks for memory allocation (for DRM).  Now the driver can
        truly handle multiple cards, including memory management.
      
      - Fixed numerous minor bugs.
      Signed-off-by: NThomas Winischhofer <thomas@winischhofer.net>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      544393fe
    • A
      [PATCH] fbdev: Fix greater than 1 bit monochrome color handling · b8c90945
      Antonino A. Daplas 提交于
      Currently, fbcon assumes that the visual FB_VISUAL_MONO* is always 1 bit.
      According to Geert, there are old hardware where it's possible to have
      monochrome at 8-bit, but has only 2 colors, black - 0x00 and white - 0xff.
      Fix color handlers (fb_get_color_depth, and get_color) for this special case.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b8c90945
    • A
      [PATCH] fbdev: Resurrect hooks to get EDID from firmware · 5e518d76
      Antonino A. Daplas 提交于
      For the i386, code is already present in video.S that gets the EDID from the
      video BIOS.  Make this visible so drivers can also use this data as fallback
      when i2c does not work.
      
      To ensure that the EDID block is returned for the primary graphics adapter
      only, by check if the IORESOURCE_ROM_SHADOW flag is set.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      5e518d76
    • A
      [PATCH] vesafb: Add blanking support · d2d58384
      Antonino A. Daplas 提交于
      Add rudimentary support by manipulating the VGA registers.  However, not
      all vesa modes are VGA compatible, so VGA compatiblity is checked first.
      Only 2 levels are supported, powerup and powerdown.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d2d58384
    • A
      [PATCH] fbdev: Add fbset -a support · 7726e9e1
      Antonino A. Daplas 提交于
      Add capability to fbdev to listen to the FB_ACTIVATE_ALL flag.  If set, it
      notifies fbcon that all consoles must be set to the current var.
      Signed-off-by: NAntonino Daplas <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7726e9e1
    • D
      [PATCH] files: files struct with RCU · ab2af1f5
      Dipankar Sarma 提交于
      Patch to eliminate struct files_struct.file_lock spinlock on the reader side
      and use rcu refcounting rcuref_xxx api for the f_count refcounter.  The
      updates to the fdtable are done by allocating a new fdtable structure and
      setting files->fdt to point to the new structure.  The fdtable structure is
      protected by RCU thereby allowing lock-free lookup.  For fd arrays/sets that
      are vmalloced, we use keventd to free them since RCU callbacks can't sleep.  A
      global list of fdtable to be freed is not scalable, so we use a per-cpu list.
      If keventd is already handling the current cpu's work, we use a timer to defer
      queueing of that work.
      
      Since the last publication, this patch has been re-written to avoid using
      explicit memory barriers and use rcu_assign_pointer(), rcu_dereference()
      premitives instead.  This required that the fd information is kept in a
      separate structure (fdtable) and updated atomically.
      Signed-off-by: NDipankar Sarma <dipankar@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ab2af1f5
    • D
      [PATCH] files: break up files struct · badf1662
      Dipankar Sarma 提交于
      In order for the RCU to work, the file table array, sets and their sizes must
      be updated atomically.  Instead of ensuring this through too many memory
      barriers, we put the arrays and their sizes in a separate structure.  This
      patch takes the first step of putting the file table elements in a separate
      structure fdtable that is embedded withing files_struct.  It also changes all
      the users to refer to the file table using files_fdtable() macro.  Subsequent
      applciation of RCU becomes easier after this.
      Signed-off-by: NDipankar Sarma <dipankar@in.ibm.com>
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      badf1662
    • D
      [PATCH] files: rcuref APIs · c0dfb290
      Dipankar Sarma 提交于
      Adds a set of primitives to do reference counting for objects that are looked
      up without locks using RCU.
      Signed-off-by: NRavikiran Thirumalai <kiran_th@gmail.com>
      Signed-off-by: NDipankar Sarma <dipankar@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c0dfb290
    • D
      [PATCH] files: fix rcu initializers · 8b6490e5
      Dipankar Sarma 提交于
      First of a number of files_lock scaability patches.
      
       Here are the x86 numbers -
      
       tiobench on a 4(8)-way (HT) P4 system on ramdisk :
      
                                               (lockfree)
       Test            2.6.10-vanilla  Stdev   2.6.10-fd       Stdev
       -------------------------------------------------------------
       Seqread         1400.8          11.52   1465.4          34.27
       Randread        1594            8.86    2397.2          29.21
       Seqwrite        242.72          3.47    238.46          6.53
       Randwrite       445.74          9.15    446.4           9.75
      
       The performance improvement is very significant.
       We are getting killed by the cacheline bouncing of the files_struct
       lock here. Writes on ramdisk (ext2) seems to vary just too
       much to get any meaningful number.
      
       Also, With Tridge's thread_perf test on a 4(8)-way (HT) P4 xeon system :
      
       2.6.12-rc5-vanilla :
      
       Running test 'readwrite' with 8 tasks
       Threads     0.34 +/- 0.01 seconds
       Processes   0.16 +/- 0.00 seconds
      
       2.6.12-rc5-fd :
      
       Running test 'readwrite' with 8 tasks
       Threads     0.17 +/- 0.02 seconds
       Processes   0.17 +/- 0.02 seconds
      
       I repeated the measurements on ramfs (as opposed to ext2 on ramdisk in
       the earlier measurement) and I got more consistent results from tiobench :
      
       4(8) way xeon P4
       -----------------
                                               (lock-free)
       Test            2.6.12-rc5      Stdev   2.6.12-rc5-fd   Stdev
       -------------------------------------------------------------
       Seqread         1282            18.59   1343.6          26.37
       Randread        1517            7       2415            34.27
       Seqwrite        702.2           5.27    709.46           5.9
       Randwrite       846.86          15.15   919.68          21.4
      
       4-way ppc64
       ------------
                                               (lock-free)
       Test            2.6.12-rc5      Stdev   2.6.12-rc5-fd   Stdev
       -------------------------------------------------------------
       Seqread         1549            91.16   1569.6          47.2
       Randread        1473.6          25.11   1585.4          69.99
       Seqwrite        1096.8          20.03   1136            29.61
       Randwrite       1189.6           4.04   1275.2          32.96
      
       Also running Tridge's thread_perf test on ppc64 :
      
       2.6.12-rc5-vanilla
       --------------------
       Running test 'readwrite' with 4 tasks
       Threads     0.20 +/- 0.02 seconds
       Processes   0.16 +/- 0.01 seconds
      
       2.6.12-rc5-fd
       --------------------
       Running test 'readwrite' with 4 tasks
       Threads     0.18 +/- 0.04 seconds
       Processes   0.16 +/- 0.01 seconds
      
       The benefits are huge (upto ~60%) in some cases on x86 primarily
       due to the atomic operations during acquisition of ->file_lock
       and cache line bouncing in fast path. ppc64 benefits are modest
       due to LL/SC based locking, but still statistically significant.
      
      This patch:
      
      RCU head initilizer no longer needs the head varible name since we don't use
      list.h lists anymore.
      Signed-off-by: NDipankar Sarma <dipankar@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      8b6490e5
    • M
      [PATCH] v4l: common part Updates and tuner additions · 793cf9e6
      Mauro Carvalho Chehab 提交于
      - Remove $Id CVS logs for V4L files
      - Included newer cards.
      - Added a new NEC protocol for ir based on pulse distance.
      - Enable ATSC support for DViCO FusionHDTV5 Gold.
      - Added tuner LG NTSC (TALN mini series).
      - Fixed tea5767 autodetection.
      - Resolve more tuner types.
      - Commented debug function removed from mainstream.
      - Remove comments from mainstream. Still on development tree.
      - linux/version dependencies removed.
      - BTSC Lang1 now is set to auto_stereo mode.
      - New tuner standby API.
      - i2c-core.c uses hexadecimal for the i2c address, so it should stay consistent.
      Signed-off-by: NUli Luckas <luckas@musoft.de>
      Signed-off-by: NMac Michaels <wmichaels1@earthlink.net>
      Signed-off-by: NMichael Krufky <mkrufky@m1k.net>
      Signed-off-by: NHermann Pitton <hermann.pitton@onlinehome.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      793cf9e6
    • D
      [PATCH] yenta: share code with PCI core · b3743fa4
      Dominik Brodowski 提交于
      Share code between setup-bus.c and yenta_socket.c: use the write-out code of
      resources to the bridge also in yenta_socket.c, as it provides useful debug
      output.  In addition, it fixes the bug that the CPU-centric resource view
      might need to be transferred to the PCI-centric view: setup-bus.c does that,
      while yenta-socket.c did not.
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b3743fa4
    • A
      [PATCH] bfs: fix endianness, signedness; add trivial bugfix · fac92bec
      Andrew Stribblehill 提交于
      * Makes BFS code endianness-clean.
      
      * Fixes some signedness warnings.
      
      * Fixes a problem in fs/bfs/inode.c:164 where inodes not synced to disk
        don't get fully marked as clean.  Here's how to reproduce it:
      
      # mount -o loop -t bfs /bfs.img /mnt
      # df -i /mnt
      Filesystem            Inodes   IUsed   IFree IUse% Mounted on
      /bfs.img                  48       1      47    3% /mnt
      # df -k /mnt
      Filesystem           1K-blocks      Used Available Use% Mounted on
      /bfs.img                   512         5       508   1% /mnt
      # cp 60k-archive.zip /mnt/mt.zip
      # df -k /mnt
      Filesystem           1K-blocks      Used Available Use% Mounted on
      /bfs.img                   512        65       447  13% /mnt
      # df -i /mnt
      Filesystem            Inodes   IUsed   IFree IUse% Mounted on
      /bfs.img                  48       2      46    5% /mnt
      # rm /mnt/mt.zip
      # echo $?
      0
      
       [If the unlink happens before the buffers flush, the following happens:]
      
      # df -i /mnt
      Filesystem            Inodes   IUsed   IFree IUse% Mounted on
      /bfs.img                  48       2      46    5% /mnt
      # df -k /mnt
      Filesystem           1K-blocks      Used Available Use% Mounted on
      /bfs.img                   512        65       447  13% /mnt
      
       fs/bfs/bfs.h           |    1
      Signed-off-by: NAndrew Stribblehill <ads@wompom.org>
      Cc: <tigran@veritas.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      fac92bec
    • C
      [PATCH] Prefetch kernel stacks to speed up context switch · 383f2835
      Chen, Kenneth W 提交于
      For architecture like ia64, the switch stack structure is fairly large
      (currently 528 bytes).  For context switch intensive application, we found
      that significant amount of cache misses occurs in switch_to() function.
      The following patch adds a hook in the schedule() function to prefetch
      switch stack structure as soon as 'next' task is determined.  This allows
      maximum overlap in prefetch cache lines for that structure.
      Signed-off-by: NKen Chen <kenneth.w.chen@intel.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      383f2835
    • S
      [PATCH] remove the inode_post_link and inode_post_rename LSM hooks · e31e14ec
      Stephen Smalley 提交于
      This patch removes the inode_post_link and inode_post_rename LSM hooks as
      they are unused (and likely useless).
      Signed-off-by: NStephen Smalley <sds@tycho.nsa.gov>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e31e14ec
    • S
      [PATCH] Remove security_inode_post_create/mkdir/symlink/mknod hooks · a74574aa
      Stephen Smalley 提交于
      This patch removes the inode_post_create/mkdir/mknod/symlink LSM hooks as
      they are obsoleted by the new inode_init_security hook that enables atomic
      inode security labeling.
      
      If anyone sees any reason to retain these hooks, please speak now.  Also,
      is anyone using the post_rename/link hooks; if not, those could also be
      removed.
      Signed-off-by: NStephen Smalley <sds@tycho.nsa.gov>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a74574aa
    • S
      [PATCH] security: enable atomic inode security labeling · 5e41ff9e
      Stephen Smalley 提交于
      The following patch set enables atomic security labeling of newly created
      inodes by altering the fs code to invoke a new LSM hook to obtain the security
      attribute to apply to a newly created inode and to set up the incore inode
      security state during the inode creation transaction.  This parallels the
      existing processing for setting ACLs on newly created inodes.  Otherwise, it
      is possible for new inodes to be accessed by another thread via the dcache
      prior to complete security setup (presently handled by the
      post_create/mkdir/...  LSM hooks in the VFS) and a newly created inode may be
      left unlabeled on the disk in the event of a crash.  SELinux presently works
      around the issue by ensuring that the incore inode security label is
      initialized to a special SID that is inaccessible to unprivileged processes
      (in accordance with policy), thereby preventing inappropriate access but
      potentially causing false denials on legitimate accesses.  A simple test
      program demonstrates such false denials on SELinux, and the patch solves the
      problem.  Similar such false denials have been encountered in real
      applications.
      
      This patch defines a new inode_init_security LSM hook to obtain the security
      attribute to apply to a newly created inode and to set up the incore inode
      security state for it, and adds a corresponding hook function implementation
      to SELinux.
      Signed-off-by: NStephen Smalley <sds@tycho.nsa.gov>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      5e41ff9e
    • D
      [PATCH] must_check attributes for PCI layer. · 144a50ea
      Dave Jones 提交于
      Self explanatory really. Some newer gcc's print a warning
      if a function is used and we don't check its result.
      We do this for a bunch of things in the kernel already,
      this extends that to the PCI layer.
      
      Based on a patch originally from Arjan van de Ven.
      Signed-off-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NArjan van de Ven <arjan@infradead.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      144a50ea
  2. 09 9月, 2005 7 次提交