]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
12 years agoMerge remote-tracking branch 'staging/staging-next'
Stephen Rothwell [Wed, 25 Jul 2012 02:11:20 +0000 (12:11 +1000)]
Merge remote-tracking branch 'staging/staging-next'

Conflicts:
drivers/staging/comedi/drivers/s626.h
drivers/staging/gdm72xx/netlink_k.c

12 years agoMerge remote-tracking branch 'usb/usb-next'
Stephen Rothwell [Wed, 25 Jul 2012 02:06:53 +0000 (12:06 +1000)]
Merge remote-tracking branch 'usb/usb-next'

Conflicts:
include/scsi/scsi_device.h

12 years agoMerge remote-tracking branch 'tty/tty-next'
Stephen Rothwell [Wed, 25 Jul 2012 02:04:35 +0000 (12:04 +1000)]
Merge remote-tracking branch 'tty/tty-next'

12 years agoMerge remote-tracking branch 'driver-core/driver-core-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:58:06 +0000 (11:58 +1000)]
Merge remote-tracking branch 'driver-core/driver-core-next'

12 years agoMerge remote-tracking branch 'leds/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:56:19 +0000 (11:56 +1000)]
Merge remote-tracking branch 'leds/for-next'

12 years agoMerge remote-tracking branch 'drivers-x86/linux-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:54:38 +0000 (11:54 +1000)]
Merge remote-tracking branch 'drivers-x86/linux-next'

12 years agoMerge remote-tracking branch 'workqueues/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:52:08 +0000 (11:52 +1000)]
Merge remote-tracking branch 'workqueues/for-next'

12 years agoMerge remote-tracking branch 'xen-two/linux-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:50:27 +0000 (11:50 +1000)]
Merge remote-tracking branch 'xen-two/linux-next'

12 years agoMerge remote-tracking branch 'kvm-ppc/kvm-ppc-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:50:18 +0000 (11:50 +1000)]
Merge remote-tracking branch 'kvm-ppc/kvm-ppc-next'

Conflicts:
arch/powerpc/kvm/booke_interrupts.S

12 years agoMerge remote-tracking branch 'kmemleak/kmemleak'
Stephen Rothwell [Wed, 25 Jul 2012 01:48:41 +0000 (11:48 +1000)]
Merge remote-tracking branch 'kmemleak/kmemleak'

12 years agoMerge remote-tracking branch 'tip/auto-latest'
Stephen Rothwell [Wed, 25 Jul 2012 01:41:28 +0000 (11:41 +1000)]
Merge remote-tracking branch 'tip/auto-latest'

12 years agoMerge remote-tracking branch 'spi-mb/spi-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:39:57 +0000 (11:39 +1000)]
Merge remote-tracking branch 'spi-mb/spi-next'

12 years agoMerge remote-tracking branch 'spi/spi/next'
Stephen Rothwell [Wed, 25 Jul 2012 01:39:53 +0000 (11:39 +1000)]
Merge remote-tracking branch 'spi/spi/next'

12 years agoMerge remote-tracking branch 'devicetree/devicetree/next'
Stephen Rothwell [Wed, 25 Jul 2012 01:39:47 +0000 (11:39 +1000)]
Merge remote-tracking branch 'devicetree/devicetree/next'

12 years agoMerge remote-tracking branch 'edac-amd/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:39:43 +0000 (11:39 +1000)]
Merge remote-tracking branch 'edac-amd/for-next'

Conflicts:
Documentation/edac.txt
drivers/edac/amd64_edac.c

12 years agoMerge remote-tracking branch 'edac/linux_next'
Stephen Rothwell [Wed, 25 Jul 2012 01:38:07 +0000 (11:38 +1000)]
Merge remote-tracking branch 'edac/linux_next'

12 years agoMerge remote-tracking branch 'fsnotify/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:36:31 +0000 (11:36 +1000)]
Merge remote-tracking branch 'fsnotify/for-next'

12 years agoMerge remote-tracking branch 'pm/linux-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:36:27 +0000 (11:36 +1000)]
Merge remote-tracking branch 'pm/linux-next'

12 years agoMerge remote-tracking branch 'osd/linux-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:34:46 +0000 (11:34 +1000)]
Merge remote-tracking branch 'osd/linux-next'

12 years agoMerge remote-tracking branch 'vfio/next'
Stephen Rothwell [Wed, 25 Jul 2012 01:33:12 +0000 (11:33 +1000)]
Merge remote-tracking branch 'vfio/next'

12 years agoMerge remote-tracking branch 'iommu/next'
Stephen Rothwell [Wed, 25 Jul 2012 01:26:47 +0000 (11:26 +1000)]
Merge remote-tracking branch 'iommu/next'

12 years agoMerge remote-tracking branch 'watchdog/master'
Stephen Rothwell [Wed, 25 Jul 2012 01:25:14 +0000 (11:25 +1000)]
Merge remote-tracking branch 'watchdog/master'

12 years agoMerge remote-tracking branch 'selinux/master'
Stephen Rothwell [Wed, 25 Jul 2012 01:25:09 +0000 (11:25 +1000)]
Merge remote-tracking branch 'selinux/master'

12 years agoMerge remote-tracking branch 'omap_dss2/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:23:29 +0000 (11:23 +1000)]
Merge remote-tracking branch 'omap_dss2/for-next'

Conflicts:
drivers/video/omap2/dss/core.c
drivers/video/omap2/dss/dispc.c

12 years agoMerge remote-tracking branch 'fbdev/fbdev-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:21:53 +0000 (11:21 +1000)]
Merge remote-tracking branch 'fbdev/fbdev-next'

12 years agoMerge remote-tracking branch 'battery/master'
Stephen Rothwell [Wed, 25 Jul 2012 01:20:18 +0000 (11:20 +1000)]
Merge remote-tracking branch 'battery/master'

12 years agoMerge remote-tracking branch 'mfd/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:18:47 +0000 (11:18 +1000)]
Merge remote-tracking branch 'mfd/for-next'

Conflicts:
arch/arm/configs/tegra_defconfig
drivers/mfd/mc13xxx-spi.c
drivers/regulator/s5m8767.c
include/linux/mfd/s5m87xx/s5m-core.h

12 years agoMerge remote-tracking branch 'md/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:10:20 +0000 (11:10 +1000)]
Merge remote-tracking branch 'md/for-next'

12 years agoMerge remote-tracking branch 'slab/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:03:19 +0000 (11:03 +1000)]
Merge remote-tracking branch 'slab/for-next'

12 years agoMerge branch 'quilt/device-mapper'
Stephen Rothwell [Wed, 25 Jul 2012 01:01:25 +0000 (11:01 +1000)]
Merge branch 'quilt/device-mapper'

12 years agoMerge remote-tracking branch 'block/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 01:01:22 +0000 (11:01 +1000)]
Merge remote-tracking branch 'block/for-next'

12 years agoMerge remote-tracking branch 'cgroup/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:57:21 +0000 (10:57 +1000)]
Merge remote-tracking branch 'cgroup/for-next'

12 years agoMerge remote-tracking branch 'input/next'
Stephen Rothwell [Wed, 25 Jul 2012 00:55:27 +0000 (10:55 +1000)]
Merge remote-tracking branch 'input/next'

12 years agoMerge branch 'quilt/rr'
Stephen Rothwell [Wed, 25 Jul 2012 00:48:26 +0000 (10:48 +1000)]
Merge branch 'quilt/rr'

12 years agoMerge remote-tracking branch 'sound-asoc/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:46:53 +0000 (10:46 +1000)]
Merge remote-tracking branch 'sound-asoc/for-next'

12 years agoMerge remote-tracking branch 'drm/drm-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:43:28 +0000 (10:43 +1000)]
Merge remote-tracking branch 'drm/drm-next'

Conflicts:
include/linux/pci_regs.h

12 years agoMerge remote-tracking branch 'crypto/master'
Stephen Rothwell [Wed, 25 Jul 2012 00:41:49 +0000 (10:41 +1000)]
Merge remote-tracking branch 'crypto/master'

12 years agoMerge remote-tracking branch 'l2-mtd/master'
Stephen Rothwell [Wed, 25 Jul 2012 00:40:14 +0000 (10:40 +1000)]
Merge remote-tracking branch 'l2-mtd/master'

Conflicts:
arch/arm/mach-imx/clk-imx6q.c

12 years agoMerge remote-tracking branch 'mtd/master'
Stephen Rothwell [Wed, 25 Jul 2012 00:38:37 +0000 (10:38 +1000)]
Merge remote-tracking branch 'mtd/master'

12 years agoMerge remote-tracking branch 'bluetooth/master'
Stephen Rothwell [Wed, 25 Jul 2012 00:37:03 +0000 (10:37 +1000)]
Merge remote-tracking branch 'bluetooth/master'

12 years agoMerge remote-tracking branch 'slave-dma/next'
Stephen Rothwell [Wed, 25 Jul 2012 00:33:00 +0000 (10:33 +1000)]
Merge remote-tracking branch 'slave-dma/next'

Conflicts:
drivers/dma/Kconfig
drivers/dma/Makefile
drivers/mmc/host/sh_mmcif.c

12 years agoMerge remote-tracking branch 'isci/all'
Stephen Rothwell [Wed, 25 Jul 2012 00:31:22 +0000 (10:31 +1000)]
Merge remote-tracking branch 'isci/all'

12 years agoMerge remote-tracking branch 'target-merge/for-next-merge'
Stephen Rothwell [Wed, 25 Jul 2012 00:29:44 +0000 (10:29 +1000)]
Merge remote-tracking branch 'target-merge/for-next-merge'

12 years agoMerge remote-tracking branch 'scsi/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:27:34 +0000 (10:27 +1000)]
Merge remote-tracking branch 'scsi/for-next'

Conflicts:
drivers/ata/libata-core.c
include/scsi/scsi_device.h

12 years agoMerge remote-tracking branch 'dlm/next'
Stephen Rothwell [Wed, 25 Jul 2012 00:25:56 +0000 (10:25 +1000)]
Merge remote-tracking branch 'dlm/next'

12 years agoMerge remote-tracking branch 'ieee1394/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:24:18 +0000 (10:24 +1000)]
Merge remote-tracking branch 'ieee1394/for-next'

12 years agoMerge remote-tracking branch 'cpuidle/cpuidle-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:24:06 +0000 (10:24 +1000)]
Merge remote-tracking branch 'cpuidle/cpuidle-next'

Conflicts:
drivers/cpuidle/coupled.c

12 years agoMerge remote-tracking branch 'acpi/next'
Stephen Rothwell [Wed, 25 Jul 2012 00:22:14 +0000 (10:22 +1000)]
Merge remote-tracking branch 'acpi/next'

Conflicts:
drivers/pci/pci-acpi.c

12 years agoMerge remote-tracking branch 'infiniband/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:21:58 +0000 (10:21 +1000)]
Merge remote-tracking branch 'infiniband/for-next'

12 years agoMerge remote-tracking branch 'libata/NEXT'
Stephen Rothwell [Wed, 25 Jul 2012 00:19:53 +0000 (10:19 +1000)]
Merge remote-tracking branch 'libata/NEXT'

12 years agoMerge remote-tracking branch 'kconfig/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:18:17 +0000 (10:18 +1000)]
Merge remote-tracking branch 'kconfig/for-next'

12 years agoMerge remote-tracking branch 'kbuild/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:16:33 +0000 (10:16 +1000)]
Merge remote-tracking branch 'kbuild/for-next'

12 years agoMerge remote-tracking branch 'v4l-dvb/master'
Stephen Rothwell [Wed, 25 Jul 2012 00:14:02 +0000 (10:14 +1000)]
Merge remote-tracking branch 'v4l-dvb/master'

Conflicts:
Documentation/feature-removal-schedule.txt

12 years agoMerge branch 'quilt/jdelvare-hwmon'
Stephen Rothwell [Wed, 25 Jul 2012 00:12:32 +0000 (10:12 +1000)]
Merge branch 'quilt/jdelvare-hwmon'

12 years agoMerge remote-tracking branch 'i2c-embedded/i2c-embedded/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:11:02 +0000 (10:11 +1000)]
Merge remote-tracking branch 'i2c-embedded/i2c-embedded/for-next'

Conflicts:
drivers/i2c/busses/i2c-nomadik.c

12 years agoMerge remote-tracking branch 'bjdooks-i2c/next-i2c'
Stephen Rothwell [Wed, 25 Jul 2012 00:10:55 +0000 (10:10 +1000)]
Merge remote-tracking branch 'bjdooks-i2c/next-i2c'

Conflicts:
drivers/i2c/busses/i2c-omap.c

12 years agoMerge branch 'quilt/i2c'
Stephen Rothwell [Wed, 25 Jul 2012 00:10:40 +0000 (10:10 +1000)]
Merge branch 'quilt/i2c'

12 years agoMerge remote-tracking branch 'hid/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:10:23 +0000 (10:10 +1000)]
Merge remote-tracking branch 'hid/for-next'

12 years agoMerge remote-tracking branch 'pci/next'
Stephen Rothwell [Wed, 25 Jul 2012 00:07:02 +0000 (10:07 +1000)]
Merge remote-tracking branch 'pci/next'

12 years agoMerge remote-tracking branch 'xfs/for-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:05:27 +0000 (10:05 +1000)]
Merge remote-tracking branch 'xfs/for-next'

Conflicts:
fs/xfs/xfs_buf.c
fs/xfs/xfs_log.c
fs/xfs/xfs_log_priv.h

12 years agoMerge remote-tracking branch 'nfsd/nfsd-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:03:48 +0000 (10:03 +1000)]
Merge remote-tracking branch 'nfsd/nfsd-next'

12 years agoMerge remote-tracking branch 'nfs/linux-next'
Stephen Rothwell [Wed, 25 Jul 2012 00:02:04 +0000 (10:02 +1000)]
Merge remote-tracking branch 'nfs/linux-next'

12 years agoMerge remote-tracking branch 'logfs/master'
Stephen Rothwell [Wed, 25 Jul 2012 00:00:28 +0000 (10:00 +1000)]
Merge remote-tracking branch 'logfs/master'

12 years agoMerge remote-tracking branch 'gfs2/master'
Stephen Rothwell [Tue, 24 Jul 2012 23:55:58 +0000 (09:55 +1000)]
Merge remote-tracking branch 'gfs2/master'

12 years agoMerge remote-tracking branch 'fuse/for-next'
Stephen Rothwell [Tue, 24 Jul 2012 23:54:33 +0000 (09:54 +1000)]
Merge remote-tracking branch 'fuse/for-next'

12 years agoMerge remote-tracking branch 'ext4/dev'
Stephen Rothwell [Tue, 24 Jul 2012 23:53:03 +0000 (09:53 +1000)]
Merge remote-tracking branch 'ext4/dev'

12 years agoMerge remote-tracking branch 'ext3/for_next'
Stephen Rothwell [Tue, 24 Jul 2012 23:51:38 +0000 (09:51 +1000)]
Merge remote-tracking branch 'ext3/for_next'

12 years agoMerge remote-tracking branch 'ecryptfs/next'
Stephen Rothwell [Tue, 24 Jul 2012 23:50:14 +0000 (09:50 +1000)]
Merge remote-tracking branch 'ecryptfs/next'

12 years agoMerge remote-tracking branch 'cifs/for-next'
Stephen Rothwell [Tue, 24 Jul 2012 23:48:41 +0000 (09:48 +1000)]
Merge remote-tracking branch 'cifs/for-next'

12 years agoMerge remote-tracking branch 'ceph/master'
Stephen Rothwell [Tue, 24 Jul 2012 23:47:16 +0000 (09:47 +1000)]
Merge remote-tracking branch 'ceph/master'

Conflicts:
net/ceph/messenger.c
net/ceph/osd_client.c

12 years agoMerge remote-tracking branch 'unicore32/unicore32'
Stephen Rothwell [Tue, 24 Jul 2012 23:45:42 +0000 (09:45 +1000)]
Merge remote-tracking branch 'unicore32/unicore32'

12 years agoMerge remote-tracking branch 'galak/next'
Stephen Rothwell [Tue, 24 Jul 2012 23:44:15 +0000 (09:44 +1000)]
Merge remote-tracking branch 'galak/next'

12 years agoMerge remote-tracking branch 'mpc5xxx/next'
Stephen Rothwell [Tue, 24 Jul 2012 23:42:51 +0000 (09:42 +1000)]
Merge remote-tracking branch 'mpc5xxx/next'

12 years agoMerge remote-tracking branch 'mips/mips-for-linux-next'
Stephen Rothwell [Tue, 24 Jul 2012 23:41:21 +0000 (09:41 +1000)]
Merge remote-tracking branch 'mips/mips-for-linux-next'

12 years agoMerge remote-tracking branch 'm68knommu/for-next'
Stephen Rothwell [Tue, 24 Jul 2012 23:39:54 +0000 (09:39 +1000)]
Merge remote-tracking branch 'm68knommu/for-next'

12 years agoMerge remote-tracking branch 'cris/for-next'
Stephen Rothwell [Tue, 24 Jul 2012 23:38:26 +0000 (09:38 +1000)]
Merge remote-tracking branch 'cris/for-next'

12 years agoMerge remote-tracking branch 'arm-perf/for-next/perf'
Stephen Rothwell [Tue, 24 Jul 2012 23:38:14 +0000 (09:38 +1000)]
Merge remote-tracking branch 'arm-perf/for-next/perf'

12 years agoMerge remote-tracking branch 'arm/for-next'
Stephen Rothwell [Tue, 24 Jul 2012 23:36:49 +0000 (09:36 +1000)]
Merge remote-tracking branch 'arm/for-next'

12 years agoMerge remote-tracking branch 'gpio-current/gpio/merge'
Stephen Rothwell [Tue, 24 Jul 2012 23:35:24 +0000 (09:35 +1000)]
Merge remote-tracking branch 'gpio-current/gpio/merge'

12 years agoMerge remote-tracking branch 'spi-current/spi/merge'
Stephen Rothwell [Tue, 24 Jul 2012 23:35:21 +0000 (09:35 +1000)]
Merge remote-tracking branch 'spi-current/spi/merge'

12 years agoMerge remote-tracking branch 'devicetree-current/devicetree/merge'
Stephen Rothwell [Tue, 24 Jul 2012 23:35:19 +0000 (09:35 +1000)]
Merge remote-tracking branch 'devicetree-current/devicetree/merge'

12 years agoMerge remote-tracking branch 'sparc/master'
Stephen Rothwell [Tue, 24 Jul 2012 23:34:54 +0000 (09:34 +1000)]
Merge remote-tracking branch 'sparc/master'

12 years agoMerge remote-tracking branch 'm68k-current/for-linus'
Stephen Rothwell [Tue, 24 Jul 2012 23:34:51 +0000 (09:34 +1000)]
Merge remote-tracking branch 'm68k-current/for-linus'

12 years agoMerge remote-tracking branch 'arm-current/fixes'
Stephen Rothwell [Tue, 24 Jul 2012 23:34:49 +0000 (09:34 +1000)]
Merge remote-tracking branch 'arm-current/fixes'

12 years agoAdd read-only and fail-io modes to thin provisioning.
Joe Thornber [Tue, 24 Jul 2012 23:25:33 +0000 (09:25 +1000)]
Add read-only and fail-io modes to thin provisioning.

If a transaction commit fails the pool's metadata device will transition
to "read-only" mode.  If a commit fails once already in read-only mode
the transition to "fail-io" mode occurs.

Once in fail-io mode the pool and all associated thin devices will
report a status of "Fail".

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoIntroduce dm_pool_abort_metadata to abort the current metadata
Joe Thornber [Tue, 24 Jul 2012 23:25:33 +0000 (09:25 +1000)]
Introduce dm_pool_abort_metadata to abort the current metadata
transaction.  Generally this will only be called when bad things are
happening and dm-thin is trying to roll back to a good state for
read-only mode.

It's complicated by the fact that the metadata device may have failed
completely causing the abort to be unable to read the old transaction.
In this case the metadata object is placed in a 'fail' mode and
everything fails apart from destroying it.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoIntroduce dm_pool_metadata_set_read_only to put the underlying block
Joe Thornber [Tue, 24 Jul 2012 23:25:32 +0000 (09:25 +1000)]
Introduce dm_pool_metadata_set_read_only to put the underlying block
manager into read-only mode.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoIntroduce dm_bm_set_read_only to switch the block manager into a
Joe Thornber [Tue, 24 Jul 2012 23:25:32 +0000 (09:25 +1000)]
Introduce dm_bm_set_read_only to switch the block manager into a
read-only mode.  To be used when dm-thin degrades due to io errors on
the metadata device.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoReduce the number of metadata commits by using
Joe Thornber [Tue, 24 Jul 2012 23:25:32 +0000 (09:25 +1000)]
Reduce the number of metadata commits by using
dm_thin_changed_this_transaction to check if metadata was changed on a
per thin device granularity.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoIntroduce dm_thin_changed_this_transaction to dm-thin-metadata to publish a
Joe Thornber [Tue, 24 Jul 2012 23:25:31 +0000 (09:25 +1000)]
Introduce dm_thin_changed_this_transaction to dm-thin-metadata to publish a
useful bit of information we're already tracking.  This will help dm thin
decide when to commit.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoAdd a parameter to dm_pool_metadata_open to indicate whether or not an unformatted
Joe Thornber [Tue, 24 Jul 2012 23:25:31 +0000 (09:25 +1000)]
Add a parameter to dm_pool_metadata_open to indicate whether or not an unformatted
metadata area should be formatted.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoTidy up error path in __open_metadata and __format_metadata in dm-thin-metadata.
Joe Thornber [Tue, 24 Jul 2012 23:25:30 +0000 (09:25 +1000)]
Tidy up error path in __open_metadata and __format_metadata in dm-thin-metadata.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoFactor out __check_incompat_features and only call it once when we open
Mike Snitzer [Tue, 24 Jul 2012 23:25:30 +0000 (09:25 +1000)]
Factor out __check_incompat_features and only call it once when we open
the metadata device rather than at the beginning of every transaction.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoRemove some duplicate initialisation of struct dm_pool_metadata.
Joe Thornber [Tue, 24 Jul 2012 23:25:29 +0000 (09:25 +1000)]
Remove some duplicate initialisation of struct dm_pool_metadata.

These pmd fields are initialised by both:
  __format_metadata's calls to dm_btree_empty
  __write_initial_superblock + __begin_transaction

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoRemove 'create' parameter from __create_persistent_data_objects() in dm-thin-metadata.
Joe Thornber [Tue, 24 Jul 2012 23:25:29 +0000 (09:25 +1000)]
Remove 'create' parameter from __create_persistent_data_objects() in dm-thin-metadata.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoMove the check for __superblock_all_zeroes from
Joe Thornber [Tue, 24 Jul 2012 23:25:29 +0000 (09:25 +1000)]
Move the check for __superblock_all_zeroes from
__create_persistent_data_objects() down to __open_or_format_metadata in
dm-thin-metadata.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoRemove nr_blocks arg from __create_persistent_data_objects in dm-thin-metadata.
Joe Thornber [Tue, 24 Jul 2012 23:25:28 +0000 (09:25 +1000)]
Remove nr_blocks arg from __create_persistent_data_objects in dm-thin-metadata.
It was always passed as zero.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoSplit __open_or_format_metadata into __format_metadata and __open_metadata in
Joe Thornber [Tue, 24 Jul 2012 23:25:28 +0000 (09:25 +1000)]
Split __open_or_format_metadata into __format_metadata and __open_metadata in
dm-thin-metadata.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoClean up __open_or_format_metadata in dm-thin-metadata by using struct
Joe Thornber [Tue, 24 Jul 2012 23:25:27 +0000 (09:25 +1000)]
Clean up __open_or_format_metadata in dm-thin-metadata by using struct
dm_pool_metadata members to replace local variables.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
12 years agoZero the unused uuid when initialising the metadata superblock.
Joe Thornber [Tue, 24 Jul 2012 23:25:27 +0000 (09:25 +1000)]
Zero the unused uuid when initialising the metadata superblock.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>