1. 19 12月, 2006 1 次提交
  2. 10 12月, 2006 1 次提交
  3. 29 11月, 2006 2 次提交
    • A
      [MTD] return error code from get_mtd_device() · 9c74034f
      Artem Bityutskiy 提交于
      get_mtd_device() returns NULL in case of any failure. Teach it to return an
      error code instead. Fix all users as well.
      Signed-off-by: NArtem Bityutskiy <dedekind@infradead.org>
      9c74034f
    • V
      [MTD] [NAND] remove len/ooblen confusion. · 7014568b
      Vitaly Wool 提交于
      As was discussed between Ricard Wanderlöf, David Woodhouse, Artem 
      Bityutskiy and me, the current API for reading/writing OOB is confusing. 
      
      The thing that introduces confusion is the need to specify ops.len 
      together with ops.ooblen for reads/writes that concern only OOB not data 
      area. So, ops.len is overloaded: when ops.datbuf != NULL it serves to 
      specify the length of the data read, and when ops.datbuf == NULL, it 
      serves to specify the full OOB read length.
      
      The patch inlined below is the slightly updated version of the previous 
      patch serving the same purpose, but with the new Artem's comments taken 
      into account.
      
      Artem, BTW, thanks a lot for your valuable input!
      Signed-off-by: NVitaly Wool <vwool@ru.mvista.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      7014568b
  4. 21 10月, 2006 2 次提交
  5. 12 10月, 2006 1 次提交
  6. 04 10月, 2006 1 次提交
    • J
      [JFFS2] kill warning RE debug-only variables · a6b1d82d
      Jeff Garzik 提交于
      gcc emits the following warning on a 'allmodconfig' build:
      
      fs/jffs2/xattr.c: In function ‘unrefer_xattr_datum’:
      fs/jffs2/xattr.c:402: warning: unused variable ‘version’
      fs/jffs2/xattr.c:402: warning: unused variable ‘xid’
      
      Given that these variables are only used in the debug printk, and they
      merely remove a deref, we can easily kill the warning by adding the
      derefs to the debug printk.
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      a6b1d82d
  7. 01 10月, 2006 3 次提交
  8. 27 9月, 2006 2 次提交
  9. 22 9月, 2006 1 次提交
  10. 17 9月, 2006 1 次提交
  11. 16 9月, 2006 1 次提交
  12. 16 8月, 2006 1 次提交
  13. 07 7月, 2006 1 次提交
  14. 02 7月, 2006 1 次提交
  15. 01 7月, 2006 1 次提交
  16. 30 6月, 2006 1 次提交
  17. 29 6月, 2006 2 次提交
  18. 27 6月, 2006 8 次提交
  19. 23 6月, 2006 2 次提交
    • D
      [PATCH] VFS: Permit filesystem to perform statfs with a known root dentry · 726c3342
      David Howells 提交于
      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: NDavid Howells <dhowells@redhat.com>
      Acked-by: NAl Viro <viro@zeniv.linux.org.uk>
      Cc: Nathan Scott <nathans@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      726c3342
    • D
      [PATCH] VFS: Permit filesystem to override root dentry on mount · 454e2398
      David Howells 提交于
      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: NDavid Howells <dhowells@redhat.com>
      Acked-by: NAl Viro <viro@zeniv.linux.org.uk>
      Cc: Nathan Scott <nathans@sgi.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      454e2398
  20. 19 6月, 2006 2 次提交
  21. 18 6月, 2006 1 次提交
  22. 09 6月, 2006 1 次提交
  23. 03 6月, 2006 1 次提交
    • D
      [JFFS2] Remove stray __exit from jffs2_compressors_exit() · 3bcc86f5
      David Woodhouse 提交于
      It's used from the initfunc in case of failure too. We could actually do
      with an '__initexit' for this kind of thing -- when built in to the
      kernel, it could do with being dropped with the init text. We _could_
      actually just use __init for it, but that would break if/when we start
      dropping init text from modules. So let's just leave it as it was for now,
      and mutter a little more about random 'janitorial' fixes from people who
      aren't paying attention to what they're doing.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      3bcc86f5
  24. 30 5月, 2006 2 次提交