Skip to content
Snippets Groups Projects
  1. Feb 21, 2012
  2. Jan 04, 2012
  3. Jul 18, 2011
  4. Jan 13, 2011
    • Stefani Seibold's avatar
      cramfs: generate unique inode number for better inode cache usage · 6f772fe6
      Stefani Seibold authored
      
      Generate a unique inode numbers for any entries in the cram file system.
      For files which did not contain data's (device nodes, fifos and sockets)
      the offset of the directory entry inside the cramfs plus 1 will be used as
      inode number.
      
      The + 1 for the inode will it make possible to distinguish between a file
      which contains no data and files which has data, the later one has a inode
      value where the lower two bits are always 0.
      
      It also reimplements the behavior to set the size and the number of block
      to 0 for special file, which is the right value for empty files, devices,
      fifos and sockets
      
      As a little benefit it will be also more compatible which older mkcramfs,
      because it will never use the cramfs_inode->offset for creating a inode
      number for special files.
      
      [akpm@linux-foundation.org: trivial comment fix]
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: default avatarStefani Seibold <stefani@seibold.net>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Pekka Enberg <penberg@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6f772fe6
  5. Oct 29, 2010
  6. Aug 18, 2010
  7. Aug 09, 2010
    • Al Viro's avatar
      simplify get_cramfs_inode() · 77b8a75f
      Al Viro authored
      
      simply don't hash the inodes that don't have real inumber instead of
      skipping them during iget5_locked(); as the result, simple iget_locked()
      would do and we can get rid of cramfs ->drop_inode() as well.
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      77b8a75f
  8. Apr 03, 2009
  9. Jan 05, 2009
  10. Aug 21, 2008
  11. Apr 19, 2008
  12. Oct 18, 2007
  13. Oct 17, 2007
  14. May 07, 2007
  15. Feb 12, 2007
  16. Dec 08, 2006
  17. Dec 07, 2006
    • Phillip Lougher's avatar
      [PATCH] corrupted cramfs filesystems cause kernel oops · 8bb02691
      Phillip Lougher authored
      Steve Grubb's fzfuzzer tool (http://people.redhat.com/sgrubb/files/
      
      
      fsfuzzer-0.6.tar.gz) generates corrupt Cramfs filesystems which cause
      Cramfs to kernel oops in cramfs_uncompress_block().  The cause of the oops
      is an unchecked corrupted block length field read by cramfs_readpage().
      
      This patch adds a sanity check to cramfs_readpage() which checks that the
      block length field is sensible.  The (PAGE_CACHE_SIZE << 1) size check is
      intentional, even though the uncompressed data is not going to be larger
      than PAGE_CACHE_SIZE, gzip sometimes generates compressed data larger than
      the original source data.  Mkcramfs checks that the compressed size is
      always less than or equal to PAGE_CACHE_SIZE << 1.  Of course Cramfs could
      use the original uncompressed data in this case, but it doesn't.
      
      Signed-off-by: default avatarPhillip Lougher <phillip@lougher.org.uk>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      8bb02691
  18. Sep 29, 2006
  19. Sep 27, 2006
  20. Jun 28, 2006
  21. Jun 23, 2006
    • Pekka Enberg's avatar
      [PATCH] read_mapping_page for address space · 090d2b18
      Pekka Enberg authored
      
      Add read_mapping_page() which is used for callers that pass
      mapping->a_ops->readpage as the filler for read_cache_page.  This removes
      some duplication from filesystem code.
      
      Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      090d2b18
    • David Howells's avatar
      [PATCH] VFS: Permit filesystem to perform statfs with a known root dentry · 726c3342
      David Howells authored
      
      Give the statfs superblock operation a dentry pointer rather than a superblock
      pointer.
      
      This complements the get_sb() patch.  That reduced the significance of
      sb->s_root, allowing NFS to place a fake root there.  However, NFS does
      require a dentry to use as a target for the statfs operation.  This permits
      the root in the vfsmount to be used instead.
      
      linux/mount.h has been added where necessary to make allyesconfig build
      successfully.
      
      Interest has also been expressed for use with the FUSE and XFS filesystems.
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Cc: Nathan Scott <nathans@sgi.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      726c3342
    • David Howells's avatar
      [PATCH] VFS: Permit filesystem to override root dentry on mount · 454e2398
      David Howells authored
      
      Extend the get_sb() filesystem operation to take an extra argument that
      permits the VFS to pass in the target vfsmount that defines the mountpoint.
      
      The filesystem is then required to manually set the superblock and root dentry
      pointers.  For most filesystems, this should be done with simple_set_mnt()
      which will set the superblock pointer and then set the root dentry to the
      superblock's s_root (as per the old default behaviour).
      
      The get_sb() op now returns an integer as there's now no need to return the
      superblock pointer.
      
      This patch permits a superblock to be implicitly shared amongst several mount
      points, such as can be done with NFS to avoid potential inode aliasing.  In
      such a case, simple_set_mnt() would not be called, and instead the mnt_root
      and mnt_sb would be set directly.
      
      The patch also makes the following changes:
      
       (*) the get_sb_*() convenience functions in the core kernel now take a vfsmount
           pointer argument and return an integer, so most filesystems have to change
           very little.
      
       (*) If one of the convenience function is not used, then get_sb() should
           normally call simple_set_mnt() to instantiate the vfsmount. This will
           always return 0, and so can be tail-called from get_sb().
      
       (*) generic_shutdown_super() now calls shrink_dcache_sb() to clean up the
           dcache upon superblock destruction rather than shrink_dcache_anon().
      
           This is required because the superblock may now have multiple trees that
           aren't actually bound to s_root, but that still need to be cleaned up. The
           currently called functions assume that the whole tree is rooted at s_root,
           and that anonymous dentries are not the roots of trees which results in
           dentries being left unculled.
      
           However, with the way NFS superblock sharing are currently set to be
           implemented, these assumptions are violated: the root of the filesystem is
           simply a dummy dentry and inode (the real inode for '/' may well be
           inaccessible), and all the vfsmounts are rooted on anonymous[*] dentries
           with child trees.
      
           [*] Anonymous until discovered from another tree.
      
       (*) The documentation has been adjusted, including the additional bit of
           changing ext2_* into foo_* in the documentation.
      
      [akpm@osdl.org: convert ipath_fs, do other stuff]
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Cc: Nathan Scott <nathans@sgi.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      454e2398
  22. Mar 28, 2006
  23. Mar 26, 2006
    • Ingo Molnar's avatar
      [PATCH] sem2mutex: fs/ · 353ab6e9
      Ingo Molnar authored
      
      Semaphore to mutex conversion.
      
      The conversion was generated via scripts, and the result was validated
      automatically via a script as well.
      
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org>
      Cc: Robert Love <rml@tech9.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Cc: Dave Kleikamp <shaggy@austin.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      353ab6e9
  24. Mar 07, 2006
  25. Sep 08, 2005
    • Dave Johnson's avatar
      [PATCH] fix cramfs making duplicate entries in inode cache · a97c9bf3
      Dave Johnson authored
      
      Every time cramfs_lookup() is called to lookup and inode for a dentry,
      get_cramfs_inode() will allocate a new inode without checking to see if that
      inode already exists in the inode cache.
      
      This is fine the first time, but if the dentry cache entry(ies) associated
      with that inode are aged out, but the inode entry is not aged out (which can
      be quite common if the inode has buffer cache linked to it), cramfs_lookup()
      will be called again and another inode will be allocated and added to the
      inode cache creating a duplicate in the inode cache.
      
      The big issue here is that the buffers associated with each inode cache entry
      are not shared between the duplicates!
      
      The older inode entries are now orphaned as no dentry points to it and won't
      be freed until the buffer cache assoicated with them are first freed.  The
      newest entry will have to create all new buffer cache for each part of its
      file as the old buffer cache is now orphaned as well.
      
      Patch below fixes this by making get_cramfs_inode() use the inode cache before
      blindly creating a new entry every time.  This eliminates the duplicate inodes
      and duplicate buffer cache.
      
      Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      a97c9bf3
  26. Apr 17, 2005
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      v2.6.12-rc2
      1da177e4
Loading