linux-kernel mailing list

FromSubjectsort iconDate
joern
[patch 4/15] fs/logfs/compr.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/compr.c 2008-03-25 16:56:40.399236016 +0100 @@ -0,0 +1,95 @@ +/* + * fs/logfs/compr.c - compression routines + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + */ +#include "logfs.h" +#include <linux/vmalloc.h> +#include <linux/zlib.h> + +#define COMPR_LEVEL 3 + +static DEFINE_MUTEX(compr_mutex); +static struct z...
Apr 1, 2:13 pm 2008
joern
[patch 10/15] fs/logfs/memtree.c
--- /dev/null 2008-04-02 16:29:12.813336657 +0200 +++ linux-2.6.24logfs/fs/logfs/memtree.c 2008-04-01 21:43:14.593326689 +0200 @@ -0,0 +1,405 @@ +/* + * fs/logfs/memtree.c - Simple In-memory B+Tree + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2007 Joern Engel <joern@logfs.org> + * + * + * This could possibly get moved to lib/. + * + * A relatively simple B+Tree implementation. I have written it as a learning + * excercise to understand how B...
Apr 1, 2:13 pm 2008
joern
[patch 14/15] fs/logfs/dev_bdev.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/dev_bdev.c 2008-03-28 20:04:13.961033452 +0100 @@ -0,0 +1,146 @@ +/* + * fs/logfs/dev_bdev.c - Device access methods for block devices + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + */ +#include "logfs.h" +#include <linux/buffer_head.h> + +#define PAGE_OFS(ofs) ((ofs) & (PAGE_SIZE-1)) + +static int bdev_read(stru...
Apr 1, 2:13 pm 2008
joern
[patch 15/15] fs/logfs/dev_mtd.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/dev_mtd.c 2008-04-01 19:44:47.991289121 +0200 @@ -0,0 +1,406 @@ +/* + * fs/logfs/dev_mtd.c - Device access methods for MTD + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + */ +#include "logfs.h" +#include <linux/completion.h> +#include <linux/mount.h> + +#define PAGE_OFS(ofs) ((ofs) & (PAGE_SIZE-1)) + +stati...
Apr 1, 2:13 pm 2008
joern
[patch 12/15] fs/logfs/segment.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/segment.c 2008-03-28 18:40:52.161518316 +0100 @@ -0,0 +1,595 @@ +/* + * fs/logfs/segment.c - Handling the Object Store + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + * + * Object store or ostore makes up the complete device with exception of + * the superblock and journal areas. Apart from its own metadata it stores + * thre...
Apr 1, 2:13 pm 2008
joern
[patch 11/15] fs/logfs/readwrite.c
--- /dev/null 2008-04-02 16:29:12.813336657 +0200 +++ linux-2.6.24logfs/fs/logfs/readwrite.c 2008-04-02 00:01:54.545819992 +0200 @@ -0,0 +1,1618 @@ +/* + * fs/logfs/readwrite.c + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + * + * + * Actually contains five sets of very similar functions: + * read read blocks from a file + * seek_hole find next hole + * seek_data find next data block + * valid check wh...
Apr 1, 2:13 pm 2008
joern
[patch 13/15] fs/logfs/super.c
--- /dev/null 2008-04-02 16:29:12.813336657 +0200 +++ linux-2.6.24logfs/fs/logfs/super.c 2008-04-01 22:58:50.362878974 +0200 @@ -0,0 +1,374 @@ +/* + * fs/logfs/super.c + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + * + * Generally contains mount/umount code and also serves as a dump area for + * any functions that don't fit elsewhere and neither justify a file of their + * own. + */ +#include "logfs.h" ...
Apr 1, 2:13 pm 2008
joern
[patch 9/15] fs/logfs/journal.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/journal.c 2008-03-31 13:47:33.248155528 +0200 @@ -0,0 +1,805 @@ +/* + * fs/logfs/journal.c - journal handling code + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + */ +#include "logfs.h" + +static void clear_retired(struct super_block *sb) +{ + struct logfs_super *super = logfs_super(sb); + int i; + + for (i = 0; i < JE...
Apr 1, 2:13 pm 2008
joern
[patch 8/15] fs/logfs/inode.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/inode.c 2008-04-01 19:42:55.146055510 +0200 @@ -0,0 +1,575 @@ +/* + * fs/logfs/inode.c - inode handling code + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + */ +#include "logfs.h" +#include <linux/writeback.h> +#include <linux/backing-dev.h> + +/* + * We need to include <linux/writeback.h> - a header we no...
Apr 1, 2:13 pm 2008
joern
[patch 7/15] fs/logfs/gc.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/gc.c 2008-04-01 19:48:36.066470483 +0200 @@ -0,0 +1,729 @@ +/* + * fs/logfs/gc.c - garbage collection code + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + * + * GC design as it should be (and isn't, as of 15.3.07): + * 1. Pick a good candidate for GC, constrained by the number of currently + * free segments. + * 2. Move al...
Apr 1, 2:13 pm 2008
joern
[patch 6/15] fs/logfs/file.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/file.c 2008-03-28 18:26:27.421722776 +0100 @@ -0,0 +1,236 @@ +/* + * fs/logfs/file.c - prepare_write, commit_write and friends + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + */ +#include "logfs.h" +#include <linux/sched.h> +#include <linux/writeback.h> + +static int logfs_prepare_write(struct file *file, struct ...
Apr 1, 2:13 pm 2008
joern
[patch 5/15] fs/logfs/dir.c
--- /dev/null 2008-03-30 12:15:48.586669308 +0200 +++ linux-2.6.24logfs/fs/logfs/dir.c 2008-03-28 18:26:06.154955960 +0100 @@ -0,0 +1,765 @@ +/* + * fs/logfs/dir.c - directory-related code + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + */ +#include "logfs.h" + + +/* + * Atomic dir operations + * + * Directory operations are by default not atomic. Dentries and Inodes are + * created/removed/altered i...
Apr 1, 2:13 pm 2008
joern
[patch 3/15] fs/logfs/logfs.h
--- /dev/null 2008-04-02 16:29:12.813336657 +0200 +++ linux-2.6.24logfs/fs/logfs/logfs.h 2008-04-01 21:00:59.600247674 +0200 @@ -0,0 +1,555 @@ +/* + * fs/logfs/logfs.h + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + * + * Private header for logfs. + */ +#ifndef fs_logfs_logfs_h +#define fs_logfs_logfs_h + +#define __CHECK_ENDIAN__ + +#include <linux/crc32.h> +#include <linux/fs.h> +#incl...
Apr 1, 2:13 pm 2008
joern
[patch 2/15] fs/logfs/logfs_abi.h
--- /dev/null 2008-04-02 16:29:12.813336657 +0200 +++ linux-2.6.24logfs/fs/logfs/logfs_abi.h 2008-04-01 21:02:34.980239877 +0200 @@ -0,0 +1,523 @@ +/* + * fs/logfs/logfs.h + * + * As should be obvious for Linux kernel code, license is GPLv2 + * + * Copyright (c) 2005-2007 Joern Engel <joern@logfs.org> + * + * Public header for logfs. + */ +#ifndef fs_logfs_logfs_abi_h +#define fs_logfs_logfs_abi_h + + +/* + * Throughout the logfs code, we're constantly dealing with blocks at + * vari...
Apr 1, 2:13 pm 2008
joern
[patch 1/15] Makefiles and Kconfig
--- linux-2.6.24logfs/fs/Kconfig~logfs 2008-03-24 12:39:10.190939342 +0100 +++ linux-2.6.24logfs/fs/Kconfig 2008-04-01 19:48:18.517351063 +0200 @@ -1385,6 +1385,23 @@ config JFFS2_CMODE_FAVOURLZO endchoice +config LOGFS + bool "Log Filesystem (EXPERIMENTAL)" + depends on (MTD || BLOCK) && EXPERIMENTAL + select ZLIB_INFLATE + select ZLIB_DEFLATE + select CRC32 + help + Flash filesystem aimed to scale efficiently to large devices. + In comparison to JFFS2 it offers significantly...
Apr 1, 2:13 pm 2008
joern
[patch 0/15] LogFS take five
Add LogFS, a scalable flash filesystem. Patch is split into individual files for review. Several details will surely raise eyebrows and likely require changes: - Using two page flags where only one is generally available for filesystems. One of the flags is necessary to deal with a deadlock when writepage() sends a locked page for writing. Details can be found in readwrite.c, around the definition of PG_pre_locked. Added Nick Piggin to Cc: for that detail. - Caching in the mtd layer. T...
Apr 1, 2:13 pm 2008
Dmitri Vorobiev
[PATCH 0/5] [MIPS] unexport a few symbols in MIPS-specific c...
Hi Ralf, A few exported symbols in MIPS-specific code can be unexported, and this series of patches does so. This series was tested using a custom config that was produced by running `make allmodconfig', after which the CONFIG_VORTEX option was manually turned off. The patches I am submitting do not touch the code affected by this option, however. Setting this options on leads to unbuildable kernel independently of whether the patches are applied. Additionally, the entire patchset was tested ...
Apr 1, 7:58 pm 2008
Dmitri Vorobiev
[PATCH 5/5] [MIPS] unexport null_perf_irq() and make it static
This patch unexports the null_perf_irq() symbol, and simultaneously makes this function static. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> --- arch/mips/kernel/time.c | 4 +--- arch/mips/oprofile/op_impl.h | 1 - arch/mips/oprofile/op_model_mipsxx.c | 5 ++++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index d70ce5c..1f467d5 100644 --- a/arch/mips/kernel/time.c +++ b/arch/...
Apr 1, 7:58 pm 2008
Dmitri Vorobiev
[PATCH 4/5] [MIPS] unexport rtc_mips_set_time()
No users for the rtc_mips_set_time() routine exist outside of the core kernel code. Therefore, EXPORT_SYMBOL(rtc_mips_set_time) is useless, and this patch removes it. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> --- arch/mips/kernel/time.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index b45a709..d70ce5c 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c @@ -38,7 +38,6 @@ int __...
Apr 1, 7:58 pm 2008
Dmitri Vorobiev
[PATCH 3/5] [MIPS] unexport copy_from_user_page()
No users for the copy_from_user_page() routine exist outside of the core kernel code. Therefore, EXPORT_SYMBOL(copy_from_user_page) is useless, and this patch removes it. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> --- arch/mips/mm/init.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 6b9d54b..ff61184 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -263,9 +263,6 @@ void copy_from_use...
Apr 1, 7:58 pm 2008
Dmitri Vorobiev
[PATCH 2/5] [MIPS] unexport copy_to_user_page()
The copy_to_user_page() function is called only in the core kernel code. Therefore, there is no need to export it. This patch removes EXPORT_SYMBOL(copy_to_user_page). Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> --- arch/mips/mm/init.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 71e5962..6b9d54b 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -247,8 +247,6 @@ void copy_to_user_page...
Apr 1, 7:58 pm 2008
Dmitri Vorobiev
[PATCH 1/5] [MIPS] unexport copy_user_highpage()
The copy_user_highpage() routine has no users outside of the core kernel code, so exporting this symbol is pointless. This patch removes EXPORT_SYMBOL(copy_user_highpage). Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> --- arch/mips/mm/init.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index c7aed13..71e5962 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -229,8 +229,6 @@ void copy_user_hig...
Apr 1, 7:58 pm 2008
Dave Jones
GFP_ATOMIC page allocation failures.
I found a few ways to cause pages and pages of spew to dmesg of the following form.. rhythmbox: page allocation failure. order:3, mode:0x4020 Pid: 4299, comm: rhythmbox Not tainted 2.6.25-0.172.rc7.git4.fc9.x86_64 #1 Call Trace: <IRQ> [<ffffffff810862dc>] __alloc_pages+0x3a3/0x3c3 [<ffffffff812a58df>] ? trace_hardirqs_on_thunk+0x35/0x3a [<ffffffff8109fd94>] alloc_pages_current+0x100/0x109 [<ffffffff810a6fd5>] new_slab+0x4a/0x249 [<ffffffff810a776a>] __s...
Apr 1, 7:56 pm 2008
Adrian Bunk
HugeTLB vs. SH3 cpu
fs/Kconfig says: config HUGETLBFS bool "HugeTLB file system support" depends on X86 || IA64 || PPC64 || SPARC64 || (SUPERH && MMU) || BROKEN arch/sh/mm/Kconfig says: choice prompt "HugeTLB page size" depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU The compiler says with CONFIG_CPU_SH3: <-- snip --> ... CC arch/sh/mm/hugetlbpage.o In file included from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/mm...
Apr 1, 6:58 pm 2008
Nish Aravamudan
Re: HugeTLB vs. SH3 cpu
So the problem is that SH3 is allowed to enable HUGETLB_PAGE/HUGETLBFS, but only SH4/5 define the HPAGE_SHIFT macro, due to some #ifdeffery on the hugepage size. So either the choice needs to be extended to include CPU_SH3 (which builds here, when changed) or the HUGETLBFS conditional needs to depend more specifically on SH4/5 and not just SUPERH. I think the arch maintainer has to make that call, as I don't know the hardware to say if SH3 actually supports multiple hugepage sizes. Thanks, Nish...
Apr 1, 7:26 pm 2008
Mike Travis
[PATCH 3/3] cpumask: use new cpuset_scnprintf function
Use cpuset_scnprintf to print cpumask sets where appropriate. This is used when the number of cpus present in a system is so large that the current method of printing cpumask_t sets as mask bits result in a large number of output lines. See Documentation/sysctl/kernel.txt(compat_cpuset_printf) for usage info. Also some small bugs fixed (or code efficiency improvments) for various uses of cpuset_scnprintf. [Depends on: x86: add cpuset_scnprintf function patch] Based on: git://git.kernel.org...
Apr 1, 6:54 pm 2008
Mike Travis
[PATCH 2/3] x86: modify show_shared_cpu_map in intel_cacheinfo
Use cpuset_scnprintf to print cpus on a leaf instead of requiring a new "cpumask_scnprintf_len" function to determine the size of the temporary buffer. cpuset_scnprintf can be used to print directly to the output buffer, eliminating the need for the temporary buffer. The format that cpuset_scnprintf uses is dependent on the sysctl variable kernel.compat_cpuset_printf. The default is '1' and results in this printout when NR_CPUS = 4096: # cat /sys/devices/system/cpu/cpu3/cache/index0/shared_...
Apr 1, 6:54 pm 2008
Mike Travis
[PATCH 1/3] x86: add cpuset_scnprintf function
Add a new cpuset_scnprintf() function and a sysctl flag to control how cpumask sets are printed. The default is to use the current cpumask_scnprintf(). If kernel.compat_cpuset_printf is '0' (default 1), then cpulist_scnprintf() is used. A nodeset_scnprintf() function is also provided for compatibilty. This is introduced with a CONFIG_KERN_COMPAT_CPUSET_PRINTF flag which currently is only defined for X86_64_SMP architecture. In addition, remove the cpumask_scnprintf_len() function. This is a...
Apr 1, 6:54 pm 2008
Mike Travis
[PATCH 0/3] x86: add cpuset_scnprintf function
* Add a new cpuset_scnprintf and a sysctl flag to control how cpumask sets are printed. The default is to use the current cpumask_scnprintf. If kernel.compat_cpuset_printf is '0' (default 1), then cpulist_scnprintf is used. In addition, a nodeset_scnprintf is provided for compatibilty. This is introduced with a CONFIG_KERN_COMPAT_CPUSET_PRINTF flag which currently is only defined for X86_64_SMP architecture. For all other architectures the current cpumask_scnprintf() is used...
Apr 1, 6:54 pm 2008
Mauro Carvalho Chehab
[GIT PATCHES] V4L/DVB fixes for 2.6.25-rc8
Linus, Please pull from: ssh://master.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb.git master For the following fixes and regressions: - bttv fixes for bugzilla regressions #10027 and #10364; - cx23885 fixes for some regressions; - add missing MODULE_LICENSE to v4l2-int-device; - radio-cadet compilation fixes for PNP probe code. One of the changes of cx23885 is bigger, since it simplified the on-chip memory usage. All changes are trivial. Cheers, Mauro. --- dr...
Apr 1, 6:50 pm 2008
Alessandro Suardi
2.6.25-rc6-git2: warn_on_slowpath for tcp_simple_retransmit
Found this in my FC6-based bittorrent box (K7-800 running a 2.6.25-rc6-git2 kernel) this evening. The kernel was upgraded two weeks ago to fix the bug in which an USB VIA driver hammered the PCI bus causing ATA disk performance to drop, and has been running since then (it still is). So it's actually 2.6.25-rc6-git2 plus patch as in here http://www.gossamer-threads.com/lists/linux/kernel/895506#895506 If there's anything useful I can do, just ask. Thanks ! [1164423.381894] WARNING: at ne...
Apr 1, 6:28 pm 2008
Johannes Weiner
[PATCH] Fix kernel thread names that might offend users.
More and more GNOME users (especially Ubuntu) get confused by their process list showing several process names that seem to indicate KDE-related services. To settle things down a bit on the bugtrackers, this patch renames all offending kernel threads into something that goes better with GNOME-based systems. Since KDE is essentially dead, the thread-names are not made compile-time configurable but rather just renamed completely here to fit modern distributions. Signed-off-by: Johannes Weiner ...
Apr 1, 4:54 pm 2008
Randy Dunlap
Re: [PATCH] Fix kernel thread names that might offend users.
but, but, the 'k' means kernel. Is that so bad? --- ~Randy --
Apr 1, 6:18 pm 2008
Andreas Schwab
Re: [PATCH] Fix kernel thread names that might offend users.
It will survive as KErnel. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." --
Apr 1, 6:30 pm 2008
Leonardo Potenza
[PATCH] drivers/atm/iphase.c: compilation warning fix
From: Leonardo Potenza <lpotenza@inwind.it> Removed the warning messages: drivers/atm/iphase.c:961: warning: 'tcnter' defined but not used drivers/atm/iphase.c:963: warning: 'xdump' defined but not used tcnter and xdump() are used only in debug build Signed-off-by: Leonardo Potenza <lpotenza@inwind.it> --- iphase.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-2.6.orig/drivers/atm/iphase.c +++ linux-2.6/drivers/atm/iphase.c @@ -958,6 +958,7 @@ static void ia_suni_pm734...
Apr 1, 5:49 pm 2008
Leonardo Potenza
[PATCH] drivers/pcmcia/i82365.c: check request_irq return va...
From: Leonardo Potenza <lpotenza@inwind.it> Add a check for the request_irq() return value. Signed-off-by: Leonardo Potenza <lpotenza@inwind.it> --- The aim of this patch is to remove the following warning message: drivers/pcmcia/i82365.c: In function 'init_i82365': drivers/pcmcia/i82365.c:1296: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result --- linux-2.6.orig/drivers/pcmcia/i82365.c +++ linux-2.6/drivers/pcmcia/i82365.c @@ -1263,7 +1...
Apr 1, 5:47 pm 2008
Mike Frysinger
nommu: handling anonymous mmap clearing in userspace rather ...
the problem: doing malloc() in userspace on no-mmu systems can take up an inordinate amount of time merely due to kernel forcing anonymously mapped memory to zero. this is because the only way to implement userspace malloc() on no-mmu systems is via mmap(MAP_ANONYMOUS), and the kernel has an explicit memset() in mm/nommu.c:do_mmap_private() when MAP_ANONYMOUS is in the mmap flags. however, POSIX states that memory returned from malloc() may be uninitialized, so this zeroing is not wanted in that ca...
Apr 1, 5:34 pm 2008
Stefan Richter
[PATCH upate] iso transmit cycle skip patch
Date: Wed, 19 Mar 2008 22:10:59 +0100 From: Pieter Palmers <pieterp@joow.be> Subject: ieee1394: rawiso: requeue packet for transmission after skipped cycle As it seems, some host controllers have issues that can cause them to skip cycles now and then when using large packets. I suspect that this is due to DMA not succeeding in time. If the transmit fifo can't contain more than one packet (big packets), the DMA should provide a new packet each cycle (125us). I am under the impression that ...
Apr 1, 5:21 pm 2008
Tyson Whitehead Apr 1, 5:21 pm 2008
Paul Clements
[PATCH 1/1] NBD: add partition support
This patch from Laurent Vivier (with minor changes by Paul Clements) adds partition support to NBD. By default this is turned off, but can be enabled with a new module parameter, max_part. Below, Laurent notes that partition table re-read doesn't automatically occur. For now you'll have to open("/dev/nbdX") to get that to happen. Longer term, nbd-client can be modified to fork just before nbd_do_it() and then call ioctl(BLKRRPART, "/dev/nbdX") in the parent process (probably need to wait for t...
Apr 1, 5:14 pm 2008
Vegard Nossum
kmemcheck caught read from freed memory (cfq_free_io_context)
Hi, This appeared in my logs: kmemcheck: Caught 32-bit read from freed memory (f7042348) Pid: 1374, comm: bash Not tainted (2.6.25-rc7 #92) EIP: 0060:[<c0502f0d>] EFLAGS: 00210202 CPU: 0 EIP is at call_for_each_cic+0x2d/0x44 EAX: 00200286 EBX: 00000001 ECX: c200e908 EDX: f7042348 ESI: f6c26c60 EDI: c0503310 EBP: f70fff38 ESP: c082ec88 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 CR0: 8005003b CR2: f7826904 CR3: 36cd7000 CR4: 000006c0 DR0: 00000000 DR1: 00000000 DR2: 00000000 ...
Apr 1, 5:08 pm 2008
Peter Zijlstra
Re: kmemcheck caught read from freed memory (cfq_free_io_con...
The missing hlist for loop would look something like so: #define hlist_for_each_entry_safe_rcu(tpos, pos, n, head, member) \ for (pos = (head)->first; \ rcu_dereference(pos) && ({ n = pos->next; 1; }) && \ ({ tpos = hlist_entry(pos, typeof(*tpos), member); 1;}); \ pos = n) --
Apr 1, 5:36 pm 2008
Paul E. McKenney
Re: kmemcheck caught read from freed memory (cfq_free_io_con...
Why the heck is cic_free_func() immediately doing a kmem_cache_free() on the cfq_io_context structure??? Shouldn't we have a call_rcu() or a synchronize_rcu() in there somewhere??? Given the way this is written, wouldn't readers on other code paths get dumped onto the freelist? This would not be a good thing... Thanx, Paul --
Apr 1, 6:51 pm 2008
Erez Zadok
[GIT PULL -mm] 00/14 VFS/Unionfs updates/fixes/cleanups
The following is a series of patchsets related to Unionfs. Two of the patches are VFS changes (and one of those two is rather minor). There are two major changes to Unionfs in this release: 1. Based on recommendations we've received while at LSF'08, we've changed Unionfs to use the vm_operations->fault method, instead of address_space_operations. This makes unionfs's code smaller, runs faster (reduce memory pressure), and removes a number of potential races. This change is sign...
Apr 1, 5:06 pm 2008
Erez Zadok
[PATCH 04/14] Unionfs: implement vm_operations->fault
As per recommendations made at LSF'08, a stackable file system which does not change the data across layers, should try to use vm_operations instead of address_space_operations. This means we now have to implement out own ->read and ->write methods because we cannot rely on VFS helpers which require us to have a ->readpage method. Either way there are two caveats: (1) It's not possible currently to set inode->i_mapping->a_ops to NULL, because too many code paths expect i_mapping to ...
Apr 1, 5:06 pm 2008
Erez Zadok
[PATCH 14/14] Unionfs: update lower mnts on rmdir with copyup
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/unlink.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c index c66bb3e..cad0386 100644 --- a/fs/unionfs/unlink.c +++ b/fs/unionfs/unlink.c @@ -280,6 +280,8 @@ out: !unionfs_lower_inode_idx(inode, dend)) ibstart(inode) = ibend(inode) = -1; d_drop(dentry); + /* update our lower vfsmnts, in case a copyup took place */ + unionfs_postcopyup_setmnt(d...
Apr 1, 5:06 pm 2008
Erez Zadok
[PATCH 12/14] Unionfs: do not over-decrement lower superbloc...
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/super.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index e5cb235..4cddc83 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -755,7 +755,7 @@ out_no_change: /* grab new lower super references; release old ones */ for (i = 0; i < new_branches; i++) atomic_inc(&new_data[i].sb->s_active); - for (i = 0; i < new_branches; i++) + for ...
Apr 1, 5:06 pm 2008
Erez Zadok
[PATCH 13/14] Unionfs: don't purge lower sb data on remount
This is no longer needed, as we don't have upper and lower pages. Plus this was racy, requiring the unexported inode_lock variable. Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/dentry.c | 11 ----------- fs/unionfs/super.c | 8 +++++--- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index 5e498c2..ee0da4f 100644 --- a/fs/unionfs/dentry.c +++ b/fs/unionfs/dentry.c @@ -273,17 +273,6 @@ static inline void pur...
Apr 1, 5:06 pm 2008
Erez Zadok
[PATCH 05/14] Unionfs: lock our dentry in file operations
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/commonfops.c | 32 ++++++++++----------------- fs/unionfs/dirfops.c | 18 ++++++++++----- fs/unionfs/file.c | 55 +++++++++++++++++++++++++++++------------------ fs/unionfs/union.h | 1 - 4 files changed, 58 insertions(+), 48 deletions(-) diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c index 2add167..50f4eda 100644 --- a/fs/unionfs/commonfops.c +++ b/fs/unionfs/commonfops.c @@ -302,7 +302,7...
Apr 1, 5:06 pm 2008
Erez Zadok
[PATCH 11/14] Unionfs: display mount point name along with g...
CC: Dave Miller <justdave@mozilla.com> Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu> --- fs/unionfs/main.c | 7 ++++++- fs/unionfs/super.c | 4 +++- fs/unionfs/union.h | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c index 8f59fb5..b76264a 100644 --- a/fs/unionfs/main.c +++ b/fs/unionfs/main.c @@ -736,7 +736,12 @@ static int unionfs_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name,...
Apr 1, 5:06 pm 2008
previous daytodaynext day
February 29, 2008April 1, 2008April 2, 2008