]> Git Repo - linux.git/commitdiff
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
authorDavid Woodhouse <[email protected]>
Mon, 23 Jul 2007 09:20:10 +0000 (10:20 +0100)
committerDavid Woodhouse <[email protected]>
Mon, 23 Jul 2007 09:20:10 +0000 (10:20 +0100)
1  2 
drivers/mtd/mtd_blkdevs.c
fs/Kconfig
fs/jffs2/background.c

index a8a1587082938deb923d8fdf57a6b06898a5467a,ef89780eb9d6d213ba186348a2f73304b3479428..74d9d30edabdc49c04f42b435b53e851f159c3c5
@@@ -16,6 -16,7 +16,7 @@@
  #include <linux/mtd/mtd.h>
  #include <linux/blkdev.h>
  #include <linux/blkpg.h>
+ #include <linux/freezer.h>
  #include <linux/spinlock.h>
  #include <linux/hdreg.h>
  #include <linux/init.h>
  #include <linux/kthread.h>
  #include <asm/uaccess.h>
  
 -static LIST_HEAD(blktrans_majors);
 +#include "mtdcore.h"
  
 -extern struct mutex mtd_table_mutex;
 -extern struct mtd_info *mtd_table[];
 +static LIST_HEAD(blktrans_majors);
  
  struct mtd_blkcore_priv {
        struct task_struct *thread;
@@@ -79,7 -81,7 +80,7 @@@ static int mtd_blktrans_thread(void *ar
        struct request_queue *rq = tr->blkcore_priv->rq;
  
        /* we might get involved when memory gets low, so use PF_MEMALLOC */
-       current->flags |= PF_MEMALLOC | PF_NOFREEZE;
+       current->flags |= PF_MEMALLOC;
  
        spin_lock_irq(rq->queue_lock);
        while (!kthread_should_stop()) {
@@@ -200,7 -202,7 +201,7 @@@ static int blktrans_ioctl(struct inode 
        }
  }
  
 -struct block_device_operations mtd_blktrans_ops = {
 +static struct block_device_operations mtd_blktrans_ops = {
        .owner          = THIS_MODULE,
        .open           = blktrans_open,
        .release        = blktrans_release,
diff --combined fs/Kconfig
index 42cfb7dc95b5d8d48e25a07bf6d2b5d342e8a953,58a0650293e19082ad2b4f951d17a35b78f9224a..9acccda4fd6be4d394fe128c134166d42bbbfdca
@@@ -251,7 -251,7 +251,7 @@@ config JBD
  
  config JBD2_DEBUG
        bool "JBD2 (ext4dev/ext4) debugging support"
-       depends on JBD2
+       depends on JBD2 && DEBUG_FS
        help
          If you are using the ext4dev/ext4 journaled file system (or
          potentially any other filesystem/device using JBD2), this option
          By default, the debugging output will be turned off.
  
          If you select Y here, then you will be able to turn on debugging
-         with "echo N > /proc/sys/fs/jbd2-debug", where N is a number between
-         1 and 5. The higher the number, the more debugging output is
-         generated.  To turn debugging off again, do
-         "echo 0 > /proc/sys/fs/jbd2-debug".
+         with "echo N > /sys/kernel/debug/jbd2/jbd2-debug", where N is a
+         number between 1 and 5. The higher the number, the more debugging
+         output is generated.  To turn debugging off again, do
+         "echo 0 > /sys/kernel/debug/jbd2/jbd2-debug".
  
  config FS_MBCACHE
  # Meta block cache for Extended Attributes (ext2/ext3/ext4)
@@@ -991,7 -991,7 +991,7 @@@ config TMPFS_POSIX_AC
  
  config HUGETLBFS
        bool "HugeTLB file system support"
-       depends on X86 || IA64 || PPC64 || SPARC64 || SUPERH || BROKEN
+       depends on X86 || IA64 || PPC64 || SPARC64 || (SUPERH && MMU) || BROKEN
        help
          hugetlbfs is a filesystem backing for HugeTLB pages, based on
          ramfs. For architectures that support it, say Y here and read
@@@ -1228,14 -1228,6 +1228,14 @@@ config JFFS2_FS_WRITEBUFFE
            - NOR flash with transparent ECC
            - DataFlash
  
 +config JFFS2_FS_WBUF_VERIFY
 +      bool "Verify JFFS2 write-buffer reads"
 +      depends on JFFS2_FS_WRITEBUFFER
 +      default n
 +      help
 +        This causes JFFS2 to read back every page written through the
 +        write-buffer, and check for errors.
 +
  config JFFS2_SUMMARY
        bool "JFFS2 summary support (EXPERIMENTAL)"
        depends on JFFS2_FS && EXPERIMENTAL
@@@ -1306,70 -1298,52 +1306,70 @@@ config JFFS2_ZLI
        select ZLIB_DEFLATE
        depends on JFFS2_FS
        default y
 -        help
 -          Zlib is designed to be a free, general-purpose, legally unencumbered,
 -          lossless data-compression library for use on virtually any computer
 -          hardware and operating system. See <http://www.gzip.org/zlib/> for
 -          further information.
 +      help
 +        Zlib is designed to be a free, general-purpose, legally unencumbered,
 +        lossless data-compression library for use on virtually any computer
 +        hardware and operating system. See <http://www.gzip.org/zlib/> for
 +        further information.
  
 -          Say 'Y' if unsure.
 +        Say 'Y' if unsure.
 +
 +config JFFS2_LZO
 +      bool "JFFS2 LZO compression support" if JFFS2_COMPRESSION_OPTIONS
 +      select LZO_COMPRESS
 +      select LZO_DECOMPRESS
 +      depends on JFFS2_FS
 +      default y
 +      help
 +        minilzo-based compression. Generally works better than Zlib.
 +
 +        Say 'Y' if unsure.
  
  config JFFS2_RTIME
        bool "JFFS2 RTIME compression support" if JFFS2_COMPRESSION_OPTIONS
        depends on JFFS2_FS
        default y
 -        help
 -          Rtime does manage to recompress already-compressed data. Say 'Y' if unsure.
 +      help
 +        Rtime does manage to recompress already-compressed data. Say 'Y' if unsure.
  
  config JFFS2_RUBIN
        bool "JFFS2 RUBIN compression support" if JFFS2_COMPRESSION_OPTIONS
        depends on JFFS2_FS
        default n
 -        help
 -          RUBINMIPS and DYNRUBIN compressors. Say 'N' if unsure.
 +      help
 +        RUBINMIPS and DYNRUBIN compressors. Say 'N' if unsure.
  
  choice
 -        prompt "JFFS2 default compression mode" if JFFS2_COMPRESSION_OPTIONS
 -        default JFFS2_CMODE_PRIORITY
 -        depends on JFFS2_FS
 -        help
 -          You can set here the default compression mode of JFFS2 from
 -          the available compression modes. Don't touch if unsure.
 +      prompt "JFFS2 default compression mode" if JFFS2_COMPRESSION_OPTIONS
 +      default JFFS2_CMODE_PRIORITY
 +      depends on JFFS2_FS
 +      help
 +        You can set here the default compression mode of JFFS2 from
 +        the available compression modes. Don't touch if unsure.
  
  config JFFS2_CMODE_NONE
 -        bool "no compression"
 -        help
 -          Uses no compression.
 +      bool "no compression"
 +      help
 +        Uses no compression.
  
  config JFFS2_CMODE_PRIORITY
 -        bool "priority"
 -        help
 -          Tries the compressors in a predefined order and chooses the first
 -          successful one.
 +      bool "priority"
 +      help
 +        Tries the compressors in a predefined order and chooses the first
 +        successful one.
  
  config JFFS2_CMODE_SIZE
 -        bool "size (EXPERIMENTAL)"
 -        help
 -          Tries all compressors and chooses the one which has the smallest
 -          result.
 +      bool "size (EXPERIMENTAL)"
 +      help
 +        Tries all compressors and chooses the one which has the smallest
 +        result.
 +
 +config JFFS2_CMODE_FAVOURLZO
 +      bool "Favour LZO"
 +      help
 +        Tries all compressors and chooses the one which has the smallest
 +        result but gives some preference to LZO (which has faster
 +        decompression) at the expense of size.
  
  endchoice
  
@@@ -1700,7 -1674,8 +1700,8 @@@ config NFSD_V3_AC
  
  config NFSD_V4
        bool "Provide NFSv4 server support (EXPERIMENTAL)"
-       depends on NFSD_V3 && EXPERIMENTAL
+       depends on NFSD && NFSD_V3 && EXPERIMENTAL
+       select RPCSEC_GSS_KRB5
        help
          If you would like to include the NFSv4 server as well as the NFSv2
          and NFSv3 servers, say Y here.  This feature is experimental, and
@@@ -2074,7 -2049,7 +2075,7 @@@ config AFS_DEBU
  
  config 9P_FS
        tristate "Plan 9 Resource Sharing Support (9P2000) (Experimental)"
-       depends on INET && EXPERIMENTAL
+       depends on INET && NET_9P && EXPERIMENTAL
        help
          If you say Y here, you will get experimental support for
          Plan 9 resource sharing via the 9P2000 protocol.
diff --combined fs/jffs2/background.c
index 8754b2742112f03590f3506825b1f5b82da8a974,143c5530caf35ab48446cc3fbe38c6ace0fac41d..d568ae846741a7a89729794404958d969c98507e
@@@ -23,8 -23,8 +23,8 @@@ static int jffs2_garbage_collect_thread
  void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c)
  {
        spin_lock(&c->erase_completion_lock);
 -        if (c->gc_task && jffs2_thread_should_wake(c))
 -                send_sig(SIGHUP, c->gc_task, 1);
 +      if (c->gc_task && jffs2_thread_should_wake(c))
 +              send_sig(SIGHUP, c->gc_task, 1);
        spin_unlock(&c->erase_completion_lock);
  }
  
@@@ -81,9 -81,10 +81,10 @@@ static int jffs2_garbage_collect_thread
  
        set_user_nice(current, 10);
  
+       set_freezable();
        for (;;) {
                allow_signal(SIGHUP);
 -
 +      again:
                if (!jffs2_thread_should_wake(c)) {
                        set_current_state (TASK_INTERRUPTIBLE);
                        D1(printk(KERN_DEBUG "jffs2_garbage_collect_thread sleeping...\n"));
@@@ -94,6 -95,9 +95,6 @@@
                        schedule();
                }
  
 -              if (try_to_freeze())
 -                      continue;
 -
                /* This thread is purely an optimisation. But if it runs when
                   other things could be running, it actually makes things a
                   lot worse. Use yield() and put it at the back of the runqueue
                        siginfo_t info;
                        unsigned long signr;
  
 +                      if (try_to_freeze())
 +                              goto again;
 +
                        signr = dequeue_signal_lock(current, &current->blocked, &info);
  
                        switch(signr) {
This page took 0.076567 seconds and 4 git commands to generate.