Re: [PATCH 6/10] ACPI: register ACPI Video LCD as generic thermal cooling device

2008-01-21 Thread Zhang Rui
Hi, Matthew, On Fri, 2008-01-18 at 09:42 +0800, Matthew Garrett wrote: > On Fri, Jan 18, 2008 at 09:31:40AM +0800, Zhang Rui wrote: > > > Just like I don't think lcd should be used for ACPI thermal > management > > before I saw it is listed in _TZD and intel_menlow requires to > throttle > > it

Re: [PATCH 6/6] spi : use class iteration api

2008-01-21 Thread David Brownell
On Monday 21 January 2008, Dave Young wrote: > Convert to use the class iteration api. > > Signed-off-by: Dave Young <[EMAIL PROTECTED]> Ack. > --- > drivers/spi/spi.c | 24 ++-- > 1 file changed, 14 insertions(+), 10 deletions(-) > > diff -upr linux/drivers/spi/spi.c

Re: [PATCH 7/7] driver-core : convert semaphore to mutex in struct class

2008-01-21 Thread Jarek Poplawski
On 22-01-2008 01:55, Dave Young wrote: ... > Hi, thanks your effort. Now I think we should stop this thread and > waiting the class_device going away :) Sure! But, if you change your mind I'm interested in this subject. Thanks, Jarek P. -- To unsubscribe from this list: send the line

Re: [PATCH 1/6] driver-core : add class iteration api

2008-01-21 Thread Dave Young
On Mon, Jan 21, 2008 at 10:24:17PM -0800, David Brownell wrote: > On Monday 21 January 2008, Dave Young wrote: > > > > +/** > > + * class_for_each_device - device iterator > > + * @class: the class we're iterating > > + * @data: data for the callback > > + * @fn: function to be called for each

Re: [PATCH 0/6] RFC: Typesafe callbacks

2008-01-21 Thread Rusty Russell
On Tuesday 22 January 2008 10:57:03 Linus Torvalds wrote: > On Tue, 22 Jan 2008, Rusty Russell wrote: > > Attempt to create callbacks which take unsigned long as well as > > correct pointer types. > > I bow down before you. > > I thought I had done some rather horrible things with gcc built-ins

Re: [PATCH 6/6] spi : use class iteration api

2008-01-21 Thread Dave Young
Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/spi/spi.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff -upr linux/drivers/spi/spi.c linux.new/drivers/spi/spi.c --- linux/drivers/spi/spi.c

Re: [RFC] Parallelize IO for e2fsck

2008-01-21 Thread Andreas Dilger
On Jan 22, 2008 14:38 +1100, David Chinner wrote: > On Mon, Jan 21, 2008 at 04:00:41PM -0700, Andreas Dilger wrote: > > I discussed this with Ted at one point also. This is a generic problem, > > not just for readahead, because "fsck" can run multiple e2fsck in parallel > > and in case of many

Re: [RFC] Parallelize IO for e2fsck

2008-01-21 Thread Andreas Dilger
On Jan 21, 2008 23:17 -0500, [EMAIL PROTECTED] wrote: > On Tue, 22 Jan 2008 14:38:30 +1100, David Chinner said: > > Perhaps instead of swapping immediately, a SIGLOWMEM could be sent > > to a processes that aren't masking the signal followed by a short > > grace period to allow the processes to

Re: [PATCH 6/6] spi : use class iteration api

2008-01-21 Thread Dave Young
On Jan 22, 2008 2:56 PM, David Brownell <[EMAIL PROTECTED]> wrote: > On Monday 21 January 2008, Dave Young wrote: > > +static int __spi_master_match(struct device *dev, void *data) > > +{ > > +struct spi_master *m; > > +u16 *bus_num = (u16 *)data; > > That's "void *data" so "u16 *bus_num = data"

Re: [PATCH 6/6] spi : use class iteration api

2008-01-21 Thread David Brownell
On Monday 21 January 2008, Dave Young wrote: > +static int __spi_master_match(struct device *dev, void *data) > +{ > +   struct spi_master *m; > +   u16 *bus_num = (u16 *)data; That's "void *data" so "u16 *bus_num = data" is preferred. -- To unsubscribe from this list: send the line

Re: [PATCH] bluetooth : move children of connection device to NULL before connection down

2008-01-21 Thread Marcel Holtmann
Hi Dave, > > Add people missed in cc-list. > > Thanks Dave for your continued efforts on Bluetooth bugs like this. > > Marcel, are you going to review/ACK/integrate/push-upstream/whatever > any of these Bluetooth patches? > > It hasn't been getting much love from you as of late, you are one of

Re: [PATCH 1/6] driver-core : add class iteration api

2008-01-21 Thread Dave Young
On Jan 22, 2008 2:24 PM, David Brownell <[EMAIL PROTECTED]> wrote: > On Monday 21 January 2008, Dave Young wrote: > > > > +/** > > + * class_for_each_device - device iterator > > + * @class: the class we're iterating > > + * @data: data for the callback > > + * @fn: function to be called

Re: [PATCH] bluetooth : move children of connection device to NULL before connection down

2008-01-21 Thread David Miller
From: Marcel Holtmann <[EMAIL PROTECTED]> Date: Tue, 22 Jan 2008 07:18:16 +0100 > Right now I can't think of any side effects by this patch. Actually I > only see an improvement with this patch. So please take it directly and > starting with next week, I gonna make sure that they are handled

Re: [PATCH 1/6] driver-core : add class iteration api

2008-01-21 Thread David Brownell
On Monday 21 January 2008, Dave Young wrote: > > +/** > + * class_for_each_device - device iterator > + * @class: the class we're iterating > + * @data: data for the callback > + * @fn: function to be called for each device > + * > + * Iterate over @class's list of devices, and call

[PATCH] pci-skeleton: Misc fixes to build neatly

2008-01-21 Thread Jike Song
Hello Jeff, The pci-skeleton.c has several problems with compilation, such as missing args when calling synchronize_irq(). Fix it. Signed-off-by: Jike Song <[EMAIL PROTECTED]> --- drivers/net/pci-skeleton.c | 49 ++- 1 files changed, 25 insertions(+),

Re: [PATCH 7/7] driver-core : convert semaphore to mutex in struct class

2008-01-21 Thread Dave Young
> > > > Hope the iteration patches 1-6/7 could be applied. > > Can you resend them again, and CC: me on all of them, with the latest > updates, so I know what I should be reviewing this time around? Hi, sent. > > thanks, > > greg k-h > -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 1/6] driver-core : add class iteration api

2008-01-21 Thread Dave Young
On Jan 22, 2008 1:54 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > Add the following class iteration functions for driver use: > class_for_each_device > class_find_device > class_for_each_child > class_find_child > > Signed-off-by: Dave Young <[EMAIL PROTECTED]> > Acked-by: Cornelia Huck <[EMAIL

[PATCH 6/6] spi : use class iteration api

2008-01-21 Thread Dave Young
Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/spi/spi.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff -upr linux/drivers/spi/spi.c linux.new/drivers/spi/spi.c --- linux/drivers/spi/spi.c

[PATCH 5/6] scsi : use class iteration api

2008-01-21 Thread Dave Young
Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/scsi/hosts.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff -upr linux/drivers/scsi/hosts.c linux.new/drivers/scsi/hosts.c --- linux/drivers/scsi/hosts.c

[PATCH 4/6] rtc : use class iteration api

2008-01-21 Thread Dave Young
Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/rtc/interface.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff -upr linux/drivers/rtc/interface.c linux.new/drivers/rtc/interface.c ---

[PATCH 3/6] power supply : use class iteration api

2008-01-21 Thread Dave Young
Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/power/apm_power.c | 116 ++ drivers/power/power_supply_core.c | 72 --- 2 files changed, 106 insertions(+), 82 deletions(-) diff

[PATCH 2/6] ieee1394 : use class iteration api

2008-01-21 Thread Dave Young
Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/ieee1394/nodemgr.c | 312 + 1 file changed, 175 insertions(+), 137 deletions(-) diff -upr linux/drivers/ieee1394/nodemgr.c

[PATCH 1/6] driver-core : add class iteration api

2008-01-21 Thread Dave Young
Add the following class iteration functions for driver use: class_for_each_device class_find_device class_for_each_child class_find_child Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/base/class.c | 159 + include/linux/device.h |

Re: questions on NAPI processing latency and dropped network packets

2008-01-21 Thread Eric Dumazet
Chris Friesen a écrit : Eric Dumazet wrote: Chris Friesen a écrit : I've done some further digging, and it appears that one of the problems we may be facing is very high instantaneous traffic rates. Instrumentation showed up to 222K packets/sec for short periods (at least 1.1 ms, possibly

Re: 2.6.24 regression: pan hanging unkilleable and un-straceable

2008-01-21 Thread Mike Galbraith
On Tue, 2008-01-22 at 16:25 +1100, Nick Piggin wrote: > On Tuesday 22 January 2008 16:03, Mike Galbraith wrote: > > I've hit same twice recently (not pan, and not repeatable). > > Nasty. The attached patch is something really simple that can sometimes help. > sysrq+p is also an option, if

Re: [PATCH] rcu: fix section mismatch

2008-01-21 Thread Sam Ravnborg
On Mon, Jan 21, 2008 at 03:34:09PM -0800, Randy Dunlap wrote: > On Mon, 21 Jan 2008 11:38:38 +1100 Rusty Russell wrote: > > > On Sunday 20 January 2008 08:25:49 Sam Ravnborg wrote: > > > On Sat, Jan 19, 2008 at 11:56:43AM -0800, Randy Dunlap wrote: > > > > rcu_online_cpu() should be __cpuinit

[PATCHSET] driver core : add class iteration api

2008-01-21 Thread Dave Young
Repost for review. [PATCH 1/6] Add some class iteration functions in driver core [PATCH 2-6/6] Make the drivers with class iterating to use class iteration api toc: --- 1-driver-core-add-class-iteration-api.patch 2-ieee1394-use-class-iteration-api.patch

Re: sysfs network namespace support - was this patch set forgotten ?

2008-01-21 Thread Greg KH
On Sun, Jan 20, 2008 at 09:08:43AM +0200, Ian Brown wrote: > Hello, > > I saw some posts (from about a month ago) about network namespace > support patches; I wonder: what > is the status of this patch set ? was it somehow forgotten ? > (I don't see it in v2.6.24-rc8 mm tree). It wasn't

Re: [PATCH 0/12] ide-floppy redux v2.5

2008-01-21 Thread Borislav Petkov
On Mon, Jan 21, 2008 at 11:45:35PM +0100, Bartlomiej Zolnierkiewicz wrote: > > Hi Borislav, > > On Sunday 20 January 2008, Borislav Petkov wrote: > > On Mon, Jan 14, 2008 at 10:38:17PM +0100, Bartlomiej Zolnierkiewicz wrote: > > > > By the way, I have an Iomega ZIP 100 drive somewhere in my

Re: 2.6.22.16 MD raid1 doesn't mark removed disk faulty, MD thread goes UN

2008-01-21 Thread Mike Snitzer
cc'ing Tanaka-san given his recent raid1 BUG report: http://lkml.org/lkml/2008/1/14/515 On Jan 21, 2008 6:04 PM, Mike Snitzer <[EMAIL PROTECTED]> wrote: > Under 2.6.22.16, I physically pulled a SATA disk (/dev/sdac, connected to > an aacraid controller) that was acting as the local raid1 member

Re: The SMP alternatives code breaks exception fixup?

2008-01-21 Thread Andi Kleen
Chuck Ebbert <[EMAIL PROTECTED]> writes: > > There is a fixup, so this should never happen. But the lock instruction > was replaced with a nop by the altinstruction code, and that makes the fixup > address wrong. AFAICT we don't fix up the exception table when we replace > a lock with a nop,

Re: 2.6.24 regression: pan hanging unkilleable and un-straceable

2008-01-21 Thread Nick Piggin
On Tuesday 22 January 2008 16:03, Mike Galbraith wrote: > On Tue, 2008-01-22 at 11:05 +1100, Nick Piggin wrote: > > On Tuesday 22 January 2008 07:58, Frederik Himpe wrote: > > > With Linux 2.6.24-rc8 I often have the problem that the pan usenet > > > reader starts using 100% of CPU time after some

Re: [PATCH 7/7] driver-core : convert semaphore to mutex in struct class

2008-01-21 Thread Greg KH
On Tue, Jan 22, 2008 at 08:55:05AM +0800, Dave Young wrote: > On Jan 22, 2008 5:16 AM, Jarek Poplawski <[EMAIL PROTECTED]> wrote: > > Dave Young wrote, On 01/21/2008 09:44 AM: > > ... > > > I applied it in my kernel, built and run without warnings, but it need > > > more testing. > > > I will be

Re: 2.6.24 regression: pan hanging unkilleable and un-straceable

2008-01-21 Thread Mike Galbraith
On Tue, 2008-01-22 at 11:05 +1100, Nick Piggin wrote: > On Tuesday 22 January 2008 07:58, Frederik Himpe wrote: > > With Linux 2.6.24-rc8 I often have the problem that the pan usenet > > reader starts using 100% of CPU time after some time. When this happens, > > kill -9 does not work, and strace

Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped files

2008-01-21 Thread Andi Kleen
Anton Salikhmetov <[EMAIL PROTECTED]> writes: You should probably put your design document somewhere in Documentation with a patch. > + * Scan the PTEs for pages belonging to the VMA and mark them read-only. > + * It will force a pagefault on the next write access. > + */ > +static void

Re: 2.6.24-rc8-mm1 : net tcp_input.c warnings

2008-01-21 Thread Dave Young
On Jan 22, 2008 5:14 AM, Ilpo Järvinen <[EMAIL PROTECTED]> wrote: > > On Mon, 21 Jan 2008, Dave Young wrote: > > > Please see the kernel messages following,(trigged while using some qemu > > session) > > BTW, seems there's some e100 error message as well. > > > > PCI: Setting latency timer of

Re: [PATCH 0/6] RFC: Typesafe callbacks

2008-01-21 Thread Andi Kleen
Rusty Russell <[EMAIL PROTECTED]> writes: > === > Attempt to create callbacks which take unsigned long as well as > correct pointer types. FWIW i had something similar using the gcc union extension at some point for ioctls because I was tired for all the ugly casts from unsigned long arg to void

Re: [RFC] Parallelize IO for e2fsck

2008-01-21 Thread Valdis . Kletnieks
On Tue, 22 Jan 2008 14:38:30 +1100, David Chinner said: > Perhaps instead of swapping immediately, a SIGLOWMEM could be sent > to a processes that aren't masking the signal followed by a short > grace period to allow the processes to free up some memory before > swapping out pages from that

[PATCH] ARM: Ignore memory tags with invalid data

2008-01-21 Thread Corey Minyard
From: Corey Minyard <[EMAIL PROTECTED]> The DNS-323 system has several bogus memory entries in the tag table, and it caused the system to crash at startup. Ignore tag entries that are obviously bogus. Signed-off-by: Corey Minyard <[EMAIL PROTECTED]> --- arch/arm/kernel/setup.c |7 ++-

[patch] mm: fix PageUptodate data race

2008-01-21 Thread Nick Piggin
After running SetPageUptodate, preceeding stores to the page contents to actually bring it uptodate may not be ordered with the store to set the page uptodate. Therefore, another CPU which checks PageUptodate is true, then reads the page contents can get stale data. Fix this by having an

[PATCH 49/49] jbd2: sparse pointer use of zero as null

2008-01-21 Thread Theodore Ts'o
From: Mingming Cao <[EMAIL PROTECTED]> Get rid of sparse related warnings from places that use integer as NULL pointer. (Ported from upstream ext3/jbd changes.) Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> Signed-off-by: "Theodore Ts'o" <[EMAIL PROTECTED]> --- fs/jbd2/transaction.c | 12

Re: [RFC] Parallelize IO for e2fsck

2008-01-21 Thread David Chinner
On Mon, Jan 21, 2008 at 04:00:41PM -0700, Andreas Dilger wrote: > On Jan 16, 2008 13:30 -0800, Valerie Henson wrote: > > I have a partial solution that sort of blindly manages the buffer > > cache. First, the user passes e2fsck a parameter saying how much > > memory is available as buffer cache.

Re: W1: w1_slave units, standardize 1C or .001C? Break API

2008-01-21 Thread H. Peter Anvin
H. Peter Anvin wrote: David Fries wrote: The ds18b20 one wire temperature sensor conversion routine is returning the units in degrees C while the ds1820 (ds18s20) is returning it in .001 degrees C. 20C vs 20312C. Once you know the units I'm liking the latter as it gives a higher precision.

Re: [PATCH] Use separate sections for __dev/__cpu/__mem code/data

2008-01-21 Thread Sam Ravnborg
On Tue, Jan 22, 2008 at 09:56:57AM +0900, Paul Mundt wrote: > On Mon, Jan 21, 2008 at 01:06:41PM +0100, Sam Ravnborg wrote: > > On Mon, Jan 21, 2008 at 07:52:57PM +0900, Paul Mundt wrote: > > > On Mon, Jan 21, 2008 at 11:47:45AM +0100, Sam Ravnborg wrote: > > > > On Mon, Jan 21, 2008 at 11:45:06AM

[PATCH 32/49] jbd2: jbd2 stats through procfs

2008-01-21 Thread Theodore Ts'o
From: Johann Lombardi <[EMAIL PROTECTED]> The patch below updates the jbd stats patch to 2.6.20/jbd2. The initial patch was posted by Alex Tomas in December 2005 (http://marc.info/?l=linux-ext4=113538565128617=2). It provides statistics via procfs such as transaction lifetime and size.

[PATCH 06/49] ext4: fixes block group number being set to a negative value

2008-01-21 Thread Theodore Ts'o
From: Avantika Mathur <[EMAIL PROTECTED]> This patch fixes various places where the group number is set to a negative value. Signed-off-by: Avantika Mathur <[EMAIL PROTECTED]> Signed-off-by: "Theodore Ts'o" <[EMAIL PROTECTED]> --- fs/ext4/ialloc.c | 101

[PATCH 03/49] ext4: Introduce ext4_lblk_t

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> This patch adds a new data type ext4_lblk_t to represent the logical file blocks. This is the preparatory patch to support large files in ext4 The follow up patch with convert the ext4_inode i_blocks to represent the number of blocks in file system

[PATCH 35/49] ext4: Add inode version support in ext4

2008-01-21 Thread Theodore Ts'o
From: Jean Noel Cordenner <[EMAIL PROTECTED]> This patch adds 64-bit inode version support to ext4. The lower 32 bits are stored in the osd1.linux1.l_i_version field while the high 32 bits are stored in the i_version_hi field newly created in the ext4_inode. This field is incremented in case the

[PATCH 38/49] ext4: fix up EXT4FS_DEBUG builds

2008-01-21 Thread Theodore Ts'o
From: Eric Sandeen <[EMAIL PROTECTED]> Builds with EXT4FS_DEBUG defined (to enable ext4_debug()) fail without these changes. Clean up some format warnings too. Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> --- fs/ext4/balloc.c |6 +++---

[PATCH 34/49] vfs: Add 64 bit i_version support

2008-01-21 Thread Theodore Ts'o
From: Jean Noel Cordenner <[EMAIL PROTECTED]> The i_version field of the inode is changed to be a 64-bit counter that is set on every inode creation and that is incremented every time the inode data is modified (similarly to the "ctime" time-stamp). The aim is to fulfill a NFSv4 requirement for

[PATCH 18/49] ext4: sync up block group descriptor with e2fsprogs.

2008-01-21 Thread Theodore Ts'o
From: Coly Li <[EMAIL PROTECTED]> This patch extends bg_itable_unused of ext4 group descriptor from 16bit into 32bit. In order to add bg_itable_unused_hi into struct ext4_group_desc, some extra fields which are already introduced into e2fsprogs are also added in for consistency. Signed-off-by:

[PATCH 33/49] ext4: Add the journal checksum feature

2008-01-21 Thread Theodore Ts'o
From: Girish Shilamkar <[EMAIL PROTECTED]> The journal checksum feature adds two new flags i.e JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT and JBD2_FEATURE_COMPAT_CHECKSUM. JBD2_FEATURE_CHECKSUM flag indicates that the commit block contains the checksum for the blocks described by the descriptor blocks.

[PATCH 02/49] ext4: Avoid rec_len overflow with 64KB block size

2008-01-21 Thread Theodore Ts'o
From: Jan Kara <[EMAIL PROTECTED]> With 64KB blocksize, a directory entry can have size 64KB which does not fit into 16 bits we have for entry lenght. So we store 0x instead and convert value when read from / written to disk. The patch also converts some places to use ext4_next_entry() when

[PATCH 43/49] ext4: Check for return value from sb_set_blocksize

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> sb_set_blocksize validates whether the specfied block size can be used by the file system. Make sure we fail mounting the file system if the blocksize specfied cannot be used. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> Signed-off-by: Mingming

[PATCH 05/49] ext4: add ext4_group_t, and change all group variables to this type.

2008-01-21 Thread Theodore Ts'o
From: Avantika Mathur <[EMAIL PROTECTED]> In many places variables for block group are of type int, which limits the maximum number of block groups to 2^31. Each block group can have up to 2^15 blocks, with a 4K block size, and the max filesystem size is limited to 2^31 * (2^15 * 2^12) = 2^58

[PATCH 22/49] ext4: Change the default behaviour on error

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> ext4 file system was by default ignoring errors and continuing. This is not a good default as continuing on error could lead to file system corruption. Change the default to mark the file system readonly. Debian and ubuntu already does this as the

[PATCH 36/49] ext4: Add EXT4_IOC_MIGRATE ioctl

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> The below patch add ioctl for migrating ext3 indirect block mapped inode to ext4 extent mapped inode. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/Makefile|2 +- fs/ext4/ioctl.c |3 + fs/ext4/migrate.c |

[PATCH 13/49] ext4: different maxbytes functions for bitmap & extent files

2008-01-21 Thread Theodore Ts'o
From: Eric Sandeen <[EMAIL PROTECTED]> use 2 different maxbytes functions for bitmapped & extent-based files. Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]> --- fs/ext4/super.c | 45 ++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git

[PATCH 30/49] ext4: Convert truncate_mutex to read write semaphore.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> We are currently taking the truncate_mutex for every read. This would have performance impact on large CPU configuration. Convert the lock to read write semaphore and take read lock when we are trying to read the file. Signed-off-by: Aneesh Kumar K.V

[PATCH 10/49] ext4: Rename i_dir_acl to i_size_high

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Rename ext4_inode.i_dir_acl to i_size_high drop ext4_inode_info.i_dir_acl as it is not used Rename ext4_inode.i_size to ext4_inode.i_size_lo Add helper function for accessing the ext4_inode combined i_size. Signed-off-by: Aneesh Kumar K.V <[EMAIL

[PATCH 29/49] ext4: Make ext4_get_blocks_wrap take the truncate_mutex early.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> When doing a migrate from ext3 to ext4 inode we need to make sure the test for inode type and walking inode data happens inside lock. To make this happen move truncate_mutex early before checking the i_flags. This actually should enable us to remove

[PATCH 11/49] ext4: Add support for 48 bit inode i_blocks.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Use the __le16 l_i_reserved1 field of the linux2 struct of ext4_inode to represet the higher 16 bits for i_blocks. With this change max_file size becomes (2**48 -1 )* 512 bytes. We add a RO_COMPAT feature to the super block to indicate that inode have

[PATCH 24/49] ext4: add block bitmap validation

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> When a new block bitmap is read from disk in read_block_bitmap() there are a few bits that should ALWAYS be set. In particular, the blocks given corresponding to block bitmap, inode bitmap and inode tables. Validate the block bitmap against these

[PATCH 46/49] jbd2: add lockdep support

2008-01-21 Thread Theodore Ts'o
From: Mingming Cao <[EMAIL PROTECTED]> Ported from similar patch for the jbd layer. Signed-off-by: Mingming Cao <[EMAIL PROTECTED]> Signed-off-by: "Theodore Ts'o" <[EMAIL PROTECTED]> --- fs/jbd2/transaction.c | 11 +++ include/linux/jbd2.h |4 2 files changed, 15

[PATCH 12/49] ext4: Support large files

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> This patch converts ext4_inode i_blocks to represent total blocks occupied by the inode in file system block size. Earlier the variable used to represent this in 512 byte block size. This actually limited the total size of the file. The feature is

[PATCH 37/49] ext4: Fix ext4_show_options to show the correct mount options.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> We need to look at the default value and make sure the mount options are not set via default value before showing them via ext4_show_options Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/super.c | 26 +++--- 1

[PATCH 07/49] ext4: Introduce ext4_update_*_feature

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Introduce ext4_update_*_feature and use them instead of opencoding. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/ialloc.c| 11 +++- fs/ext4/super.c | 60 +++

[PATCH 08/49] ext4: Fix sparse warnings.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Fix sparse warnings related to static functions and local variables. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/extents.c |6 +++--- fs/ext4/inode.c | 18 +++--- fs/ext4/super.c |3 +++

[PATCH 21/49] ext4: fix oops on corrupted ext4 mount

2008-01-21 Thread Theodore Ts'o
From: Eric Sandeen <[EMAIL PROTECTED]> When mounting an ext4 filesystem with corrupted s_first_data_block, things can go very wrong and oops. Because blocks_count in ext4_fill_super is a u64, and we must use do_div, the calculation of db_count is done differently than on ext4. If

[PATCH 26/49] jbd2: Fix assertion failure in fs/jbd2/checkpoint.c

2008-01-21 Thread Theodore Ts'o
From: Jan Kara <[EMAIL PROTECTED]> Before we start committing a transaction, we call __journal_clean_checkpoint_list() to cleanup transaction's written-back buffers. If this call happens to remove all of them (and there were already some buffers), __journal_remove_checkpoint() will decide to

[PATCH 23/49] Add buffer head related helper functions

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Add buffer head related helper function bh_uptodate_or_lock and bh_submit_read which can be used by file system Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/buffer.c | 41 +

[PATCH 31/49] ext4: Take read lock during overwrite case.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> When we are overwriting a file and not actually allocating new file system blocks we need to take only the read lock on i_data_sem. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/inode.c | 32 1 files

[PATCH 14/49] ext4: export iov_shorten from kernel for ext4's use

2008-01-21 Thread Theodore Ts'o
From: Eric Sandeen <[EMAIL PROTECTED]> Export iov_shorten() from kernel so that ext4 can truncate too-large writes to bitmapped files. Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]> --- fs/read_write.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/read_write.c

[PATCH 16/49] ext2: Fix the max file size for ext2 file system.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> The max file size for ext2 file system is now calculated with hardcoded 4K block size. The patch fixes it to be calculated with the right block size. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext2/super.c | 32

[PATCH 17/49] ext3: Fix the max file size for ext3 file system.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> The max file size for ext3 file system is now calculated with hardcoded 4K block size. The patch fixes it to be calculated with the right block size. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext3/super.c | 32

[PATCH 27/49] ext4: Check for the correct error return from

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> ext4_ext_get_blocks returns negative values on error. We should check for <= 0 Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/extents.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 19/49] ext4: Return after ext4_error in case of failures

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> This fix some instances where we were continuing after calling ext4_error. ext4_error call panic only if errors=panic mount option is set. So we need to make sure we return correctly after ext4_error call Reported by: Adrian Bunk <[EMAIL PROTECTED]>

[PATCH 42/49] ext4: Enable the multiblock allocator by default

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Enable the multiblock allocator by default. Fix ext4_show_options() so if it is not enabled, the nomballoc option included in /proc/mounts. Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> Acked-by: Eric Sandeen <[EMAIL PROTECTED]> Signed-off-by:

[PATCH 28/49] ext4: remove unused code from ext4_find_entry()

2008-01-21 Thread Theodore Ts'o
From: Mariusz Kozlowski <[EMAIL PROTECTED]> The unused code found in ext3_find_entry() is also present (and still unused) in the ext4_find_entry() code. This patch removes it. Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]> Signed-off-by: "Theodore Ts'o" <[EMAIL PROTECTED]> ---

[PATCH 45/49] ext4: Use the ext4_ext_actual_len() helper function

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> ext4 uses the high bit of the extent length to encode whether the extent is intialized or not. The helper function ext4_ext_get_actual_len should be used to get the actual length of the extent. This addresses the kernel bug documented here:

Re: [PATCH][RESEND] sh: termios ioctl definitions

2008-01-21 Thread Andrew Morton
On Sat, 19 Jan 2008 16:05:06 + Alan Cox <[EMAIL PROTECTED]> wrote: > These ports are holding up progress and now have been for months. Do the > job for them. Never understood the dependencies here. Do these two patches depend on something else which is only-in-mm? Also, I've been

[PATCH 09/49] ext4: Rename i_file_acl to i_file_acl_lo

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> Rename i_file_acl to i_file_acl_lo. This helps in finding bugs where we use i_file_acl instead of the combined i_file_acl_lo and i_file_acl_high Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> --- fs/ext4/inode.c |4 ++--

[PATCH 04/49] ext4 extents: remove unneeded casts

2008-01-21 Thread Theodore Ts'o
From: Eric Sandeen <[EMAIL PROTECTED]> There are many casts in extents.c which are not needed, as the variables are already the type of the cast, or are being promoted for no particular reason in printk's. Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]> Signed-off-by: Mingming Cao <[EMAIL

[PATCH 47/49] jbd2: Mark jbd2 slabs as SLAB_TEMPORARY

2008-01-21 Thread Theodore Ts'o
From: Mingming Cao <[EMAIL PROTECTED]> This patch marks slab allocations by jbd2 as short-lived in support of Mel Gorman's "Group short-lived and reclaimable kernel allocations" patch. (Ported from similar changes made to fs/jbd/journal.c and fs/jbd/revoke.c in Mel's patch.) Cc: Mel Gorman

[PATCH 25/49] jbd2: Remove printk from J_ASSERT to preserve registers during BUG

2008-01-21 Thread Theodore Ts'o
From: Chris Snook <[EMAIL PROTECTED]> Signed-off-by: Chris Snook <[EMAIL PROTECTED]> Cc: "Stephen C. Tweedie" <[EMAIL PROTECTED]> Cc: Theodore Ts'o <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: "Theodore Ts'o" <[EMAIL PROTECTED]> --- include/linux/jbd2.h |

[PATCH 39/49] ext4: Add ext4_find_next_bit()

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> This function is used by the ext4 multi block allocator patches. Also add generic_find_next_le_bit Signed-off-by: Aneesh Kumar K.V <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> ---

[PATCH 20/49] ext4/super.c: fix #ifdef's (CONFIG_EXT4_* -> CONFIG_EXT4DEV_*)

2008-01-21 Thread Theodore Ts'o
From: Adrian Bunk <[EMAIL PROTECTED]> Based on a report by Robert P. J. Day. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- fs/ext4/super.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 0931831..1484a08 100644 ---

[PATCH 44/49] ext4: fix uniniatilized extent splitting error

2008-01-21 Thread Theodore Ts'o
From: Dmitry Monakhov <[EMAIL PROTECTED]> Fix bug reported by Dmitry Monakhov caused by lost error code Testcase: blksize = 0x1000; fd = open(argv[1], O_RDWR|O_CREAT, 0700); unsigned long long sz = 0x1000UL; /* allocating big blocks chunk */ syscall(__NR_fallocate,

[PATCH 48/49] jbd2: Use round-jiffies() function for the "5 second" ext4/jbd2 wakeup

2008-01-21 Thread Theodore Ts'o
From: Mingming Cao <[EMAIL PROTECTED]> While "every 5 seconds" doesn't sound as a problem, there can be many of these (and these timers do add up over all the kernel). The "5 second" wakeup isn't really timing sensitive; in addition even with rounding it'll still happen every 5 seconds (with the

[PATCH 01/49] ext4: Support large blocksize up to PAGESIZE

2008-01-21 Thread Theodore Ts'o
From: Takashi Sato <[EMAIL PROTECTED]> This patch set supports large block size(>4k, <=64k) in ext4, just enlarging the block size limit. But it is NOT possible to have 64kB blocksize on ext4 without some changes to the directory handling code. The reason is that an empty 64kB directory block

[PATCH 40/49] ext4: Add new functions for searching extent tree

2008-01-21 Thread Theodore Ts'o
From: Alex Tomas <[EMAIL PROTECTED]> Add the functions ext4_ext_search_left() and ext4_ext_search_right(), which are used by mballoc during ext4_ext_get_blocks to decided whether to merge extent information. Signed-off-by: Alex Tomas <[EMAIL PROTECTED]> Signed-off-by: Andreas Dilger <[EMAIL

[PATCH 15/49] ext4: store maxbytes for bitmapped files and return EFBIG as appropriate

2008-01-21 Thread Theodore Ts'o
From: Eric Sandeen <[EMAIL PROTECTED]> Calculate & store the max offset for bitmapped files, and catch too-large seeks, truncates, and writes in ext4, shortening or rejecting as appropriate. Signed-off-by: Eric Sandeen <[EMAIL PROTECTED]> --- fs/ext4/file.c | 19

ext4 merge plans for 2.6.25

2008-01-21 Thread Theodore Ts'o
The following patches have been in the -mm tree for a while, and I plan to push them to Linus when the 2.6.25 merge window opens. With this patch series, it is expected that ext4 format should be settling down. We still have delayed allocation and online defrag which aren't quite ready to merge,

[RFC/PATCH] dma: dma_{un}map_{single|sg}_attrs() interface

2008-01-21 Thread akepner
Here's a new interface for passing attributes to the dma mapping and unmapping routines. (I have patches that make use of the interface as well, but let's discuss this piece first.) For ia64, new machvec entries replace the dma map/unmap interface, and the old interface is implemented in

Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped files

2008-01-21 Thread Anton Salikhmetov
2008/1/22, Linus Torvalds <[EMAIL PROTECTED]>: > > > On Tue, 22 Jan 2008, Anton Salikhmetov wrote: > > > > /* > > + * Scan the PTEs for pages belonging to the VMA and mark them read-only. > > + * It will force a pagefault on the next write access. > > + */ > > +static void vma_wrprotect(struct

WARNING: at kernel/mutex.c:134

2008-01-21 Thread Dave Young
While try to trigger bug 9778, press ctrl+alt+sysrq +w, the following warnings appeared: usb0: unregister 'cdc_ether' usb-:00:1d.7-1.3, CDC Ethernet Device unregister_netdevice: waiting for usb0 to become free. Usage count = 1 SysRq : Show Blocked State taskPC stack pid

[PATCH] CRAMFS: Uncompressed files support

2008-01-21 Thread Kyungmin Park
Hi, This patch enables the uncompressed files support in cramfs. The word 'uncompressed file' is from linear cramfs (aka Application XIP). In linear cramfs, it is used to suport XIP on NOR. However it is also helpful on OneNAND. It makes a filesystem faster by removing compression overhead. In

Re: [PATCH] mmu notifiers #v3

2008-01-21 Thread Rik van Riel
On Mon, 21 Jan 2008 13:52:04 +0100 Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > Signed-off-by: Andrea Arcangeli <[EMAIL PROTECTED]> Reviewed-by: Rik van Riel <[EMAIL PROTECTED]> -- All rights reversed. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped files

2008-01-21 Thread Jesper Juhl
On 22/01/2008, Anton Salikhmetov <[EMAIL PROTECTED]> wrote: > 2008/1/22, Jesper Juhl <[EMAIL PROTECTED]>: > > On 22/01/2008, Anton Salikhmetov <[EMAIL PROTECTED]> wrote: > > > 2008/1/22, Jesper Juhl <[EMAIL PROTECTED]>: > > > > Some very pedantic nitpicking below; > > > > > > > > On 22/01/2008,

Re: [PATCH -v7 2/2] Update ctime and mtime for memory-mapped files

2008-01-21 Thread Linus Torvalds
On Tue, 22 Jan 2008, Anton Salikhmetov wrote: > > /* > + * Scan the PTEs for pages belonging to the VMA and mark them read-only. > + * It will force a pagefault on the next write access. > + */ > +static void vma_wrprotect(struct vm_area_struct *vma) > +{ > + unsigned long addr; > + > +

  1   2   3   4   5   6   7   8   9   >