Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346340
b: refs/heads/master
c: d712407
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Dec 18, 2012
1 parent ded773b commit 525b209
Show file tree
Hide file tree
Showing 113 changed files with 9,166 additions and 13,992 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 992956189de58cae9f2be40585bc25105cd7c5ad
refs/heads/master: d7124073add4cd04508f9ae3adc2746c61d7e78b
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/cell/spufs/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ static int show_spu_loadavg(struct seq_file *s, void *private)
LOAD_INT(c), LOAD_FRAC(c),
count_active_contexts(),
atomic_read(&nr_spu_contexts),
task_active_pid_ns(current)->last_pid);
current->nsproxy->pid_ns->last_pid);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/drivers/mconsole_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void mconsole_log(struct mc_request *req)

void mconsole_proc(struct mc_request *req)
{
struct vfsmount *mnt = task_active_pid_ns(current)->proc_mnt;
struct vfsmount *mnt = current->nsproxy->pid_ns->proc_mnt;
char *buf;
int len;
struct file *file;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/include/uapi/asm/hw_breakpoint.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* */
1 change: 1 addition & 0 deletions trunk/arch/x86/include/uapi/asm/setup.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* */
8 changes: 7 additions & 1 deletion trunk/block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ void __init printk_all_partitions(void)
struct hd_struct *part;
char name_buf[BDEVNAME_SIZE];
char devt_buf[BDEVT_SIZE];
char uuid_buf[PARTITION_META_INFO_UUIDLTH * 2 + 5];

/*
* Don't show empty devices or things that have been
Expand All @@ -761,11 +762,16 @@ void __init printk_all_partitions(void)
while ((part = disk_part_iter_next(&piter))) {
bool is_part0 = part == &disk->part0;

uuid_buf[0] = '\0';
if (part->info)
snprintf(uuid_buf, sizeof(uuid_buf), "%pU",
part->info->uuid);

printk("%s%s %10llu %s %s", is_part0 ? "" : " ",
bdevt_str(part_devt(part), devt_buf),
(unsigned long long)part_nr_sects_read(part) >> 1
, disk_name(disk, part->partno, name_buf),
part->info ? part->info->uuid : "");
uuid_buf);
if (is_part0) {
if (disk->driverfs_dev != NULL &&
disk->driverfs_dev->driver != NULL)
Expand Down
7 changes: 6 additions & 1 deletion trunk/block/partitions/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ int efi_partition(struct parsed_partitions *state)
gpt_entry *ptes = NULL;
u32 i;
unsigned ssz = bdev_logical_block_size(state->bdev) / 512;
u8 unparsed_guid[37];

if (!find_valid_gpt(state, &gpt, &ptes) || !gpt || !ptes) {
kfree(gpt);
Expand Down Expand Up @@ -648,7 +649,11 @@ int efi_partition(struct parsed_partitions *state)
state->parts[i + 1].flags = ADDPART_FLAG_RAID;

info = &state->parts[i + 1].info;
efi_guid_unparse(&ptes[i].unique_partition_guid, info->uuid);
/* Instead of doing a manual swap to big endian, reuse the
* common ASCII hex format as the interim.
*/
efi_guid_unparse(&ptes[i].unique_partition_guid, unparsed_guid);
part_pack_uuid(unparsed_guid, info->uuid);

/* Naively convert UTF16-LE to 7 bits. */
label_max = min(sizeof(info->volname) - 1,
Expand Down
21 changes: 2 additions & 19 deletions trunk/block/partitions/msdos.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,6 @@ static int aix_magic_present(struct parsed_partitions *state, unsigned char *p)
return ret;
}

static void set_info(struct parsed_partitions *state, int slot,
u32 disksig)
{
struct partition_meta_info *info = &state->parts[slot].info;

snprintf(info->uuid, sizeof(info->uuid), "%08x-%02x", disksig,
slot);
info->volname[0] = 0;
state->parts[slot].has_info = true;
}

/*
* Create devices for each logical partition in an extended partition.
* The logical partitions form a linked list, with each entry being
Expand All @@ -117,8 +106,7 @@ static void set_info(struct parsed_partitions *state, int slot,
*/

static void parse_extended(struct parsed_partitions *state,
sector_t first_sector, sector_t first_size,
u32 disksig)
sector_t first_sector, sector_t first_size)
{
struct partition *p;
Sector sect;
Expand Down Expand Up @@ -178,7 +166,6 @@ static void parse_extended(struct parsed_partitions *state,
}

put_partition(state, state->next, next, size);
set_info(state, state->next, disksig);
if (SYS_IND(p) == LINUX_RAID_PARTITION)
state->parts[state->next].flags = ADDPART_FLAG_RAID;
loopct = 0;
Expand Down Expand Up @@ -450,7 +437,6 @@ int msdos_partition(struct parsed_partitions *state)
struct partition *p;
struct fat_boot_sector *fb;
int slot;
u32 disksig;

data = read_part_sector(state, 0, &sect);
if (!data)
Expand Down Expand Up @@ -505,8 +491,6 @@ int msdos_partition(struct parsed_partitions *state)
#endif
p = (struct partition *) (data + 0x1be);

disksig = le32_to_cpup((__le32 *)(data + 0x1b8));

/*
* Look for partitions in two passes:
* First find the primary and DOS-type extended partitions.
Expand All @@ -531,12 +515,11 @@ int msdos_partition(struct parsed_partitions *state)
put_partition(state, slot, start, n);

strlcat(state->pp_buf, " <", PAGE_SIZE);
parse_extended(state, start, size, disksig);
parse_extended(state, start, size);
strlcat(state->pp_buf, " >", PAGE_SIZE);
continue;
}
put_partition(state, slot, start, size);
set_info(state, slot, disksig);
if (SYS_IND(p) == LINUX_RAID_PARTITION)
state->parts[slot].flags = ADDPART_FLAG_RAID;
if (SYS_IND(p) == DM6_PARTITION)
Expand Down
21 changes: 14 additions & 7 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@
#include <linux/spinlock.h>
#include <linux/compat.h>
#include <linux/mutex.h>
#include <linux/bitmap.h>
#include <linux/io.h>
#include <asm/uaccess.h>
#include <asm/io.h>

#include <linux/dma-mapping.h>
#include <linux/blkdev.h>
Expand Down Expand Up @@ -979,7 +978,8 @@ static CommandList_struct *cmd_alloc(ctlr_info_t *h)
i = find_first_zero_bit(h->cmd_pool_bits, h->nr_cmds);
if (i == h->nr_cmds)
return NULL;
} while (test_and_set_bit(i, h->cmd_pool_bits) != 0);
} while (test_and_set_bit(i & (BITS_PER_LONG - 1),
h->cmd_pool_bits + (i / BITS_PER_LONG)) != 0);
c = h->cmd_pool + i;
memset(c, 0, sizeof(CommandList_struct));
cmd_dma_handle = h->cmd_pool_dhandle + i * sizeof(CommandList_struct);
Expand Down Expand Up @@ -1046,7 +1046,8 @@ static void cmd_free(ctlr_info_t *h, CommandList_struct *c)
int i;

i = c - h->cmd_pool;
clear_bit(i, h->cmd_pool_bits);
clear_bit(i & (BITS_PER_LONG - 1),
h->cmd_pool_bits + (i / BITS_PER_LONG));
h->nr_frees++;
}

Expand Down Expand Up @@ -4267,7 +4268,10 @@ static void __devinit cciss_find_board_params(ctlr_info_t *h)

static inline bool CISS_signature_present(ctlr_info_t *h)
{
if (!check_signature(h->cfgtable->Signature, "CISS", 4)) {
if ((readb(&h->cfgtable->Signature[0]) != 'C') ||
(readb(&h->cfgtable->Signature[1]) != 'I') ||
(readb(&h->cfgtable->Signature[2]) != 'S') ||
(readb(&h->cfgtable->Signature[3]) != 'S')) {
dev_warn(&h->pdev->dev, "not a valid CISS config table\n");
return false;
}
Expand Down Expand Up @@ -4808,7 +4812,8 @@ static __devinit int cciss_init_reset_devices(struct pci_dev *pdev)

static __devinit int cciss_allocate_cmd_pool(ctlr_info_t *h)
{
h->cmd_pool_bits = kmalloc(BITS_TO_LONGS(h->nr_cmds) *
h->cmd_pool_bits = kmalloc(
DIV_ROUND_UP(h->nr_cmds, BITS_PER_LONG) *
sizeof(unsigned long), GFP_KERNEL);
h->cmd_pool = pci_alloc_consistent(h->pdev,
h->nr_cmds * sizeof(CommandList_struct),
Expand Down Expand Up @@ -5063,7 +5068,9 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
pci_set_drvdata(pdev, h);
/* command and error info recs zeroed out before
they are used */
bitmap_zero(h->cmd_pool_bits, h->nr_cmds);
memset(h->cmd_pool_bits, 0,
DIV_ROUND_UP(h->nr_cmds, BITS_PER_LONG)
* sizeof(unsigned long));

h->num_luns = 0;
h->highest_lun = -1;
Expand Down
10 changes: 4 additions & 6 deletions trunk/drivers/block/drbd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
# DRBD device driver configuration
#

comment "DRBD disabled because PROC_FS or INET not selected"
depends on PROC_FS='n' || INET='n'
comment "DRBD disabled because PROC_FS, INET or CONNECTOR not selected"
depends on PROC_FS='n' || INET='n' || CONNECTOR='n'

config BLK_DEV_DRBD
tristate "DRBD Distributed Replicated Block Device support"
depends on PROC_FS && INET
depends on PROC_FS && INET && CONNECTOR
select LRU_CACHE
select LIBCRC32C
default n
help

Expand Down Expand Up @@ -59,8 +58,7 @@ config DRBD_FAULT_INJECTION
32 data read
64 read ahead
128 kmalloc of bitmap
256 allocation of peer_requests
512 insert data corruption on receiving side
256 allocation of EE (epoch_entries)

fault_devs: bitmask of minor numbers
fault_rate: frequency in percent
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/block/drbd/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
drbd-y := drbd_bitmap.o drbd_proc.o
drbd-y += drbd_worker.o drbd_receiver.o drbd_req.o drbd_actlog.o
drbd-y += drbd_main.o drbd_strings.o drbd_nl.o
drbd-y += drbd_interval.o drbd_state.o
drbd-y += drbd_nla.o

obj-$(CONFIG_BLK_DEV_DRBD) += drbd.o
Loading

0 comments on commit 525b209

Please sign in to comment.