Displaying 20 results from an estimated 44 matches for "max_slot".
Did you mean:
max_slots
2009 Mar 18
3
[PATCH] ocfs2: Fix 2 warning during ocfs2 make.
...c_slot_bit(struct ocfs2_super *osb, u64 blkno,
goto bail;
}
- if (le16_to_cpu(inode_fe->i_suballoc_slot) != OCFS2_INVALID_SLOT &&
+ if (le16_to_cpu(inode_fe->i_suballoc_slot) != (u16)OCFS2_INVALID_SLOT &&
(u32)le16_to_cpu(inode_fe->i_suballoc_slot) > osb->max_slots - 1) {
mlog(ML_ERROR, "inode %llu has invalid suballoc slot %u\n",
blkno, (u32)le16_to_cpu(inode_fe->i_suballoc_slot));
--
1.6.2.rc2.16.gf474c
2007 Nov 16
8
[PATCH 0/6] Add online resize for ocfs2-tools,take 1
Add online resize in tunefs.ocfs2 so that user can increase
the volume when it is mounted.
2009 Mar 04
2
[PATCH 1/1] Patch to recover orphans in offline slots during recovery and mount
...nsigned int rm_slots;
+ unsigned char rm_replay_slots[0];
+};
+
+int ocfs2_compute_replay_slots(struct ocfs2_super *osb)
+{
+ struct ocfs2_replay_map *replay_map;
+ int i, node_num;
+
+ if (osb->replay_map)
+ return 0;
+
+ replay_map = kzalloc(sizeof(struct ocfs2_replay_map) +
+ (osb->max_slots * sizeof(char)), GFP_KERNEL);
+ if (!replay_map) {
+ mlog_errno(-ENOMEM);
+ return -ENOMEM;
+ }
+
+ spin_lock(&osb->osb_lock);
+
+ replay_map->rm_slots = osb->max_slots;
+
+ /* set rm_replay_slots for offline slot(s) */
+ for (i = 0; i < replay_map->rm_slots; i++) {
+ if (ocf...
2009 Feb 28
1
[PATCH 1/1] Patch to recover orphans in offline slots during recovery.
...+1209,9 @@ static int __ocfs2_recovery_thread(void *arg)
struct ocfs2_super *osb = arg;
struct ocfs2_recovery_map *rm = osb->recovery_map;
int *rm_quota = NULL;
- int rm_quota_used = 0, i;
+ int rm_quota_used = 0, i, saveslots = 1;
struct ocfs2_quota_recovery *qrec;
+ int slot_arr[OCFS2_MAX_SLOTS];
mlog_entry_void();
@@ -1224,6 +1225,7 @@ static int __ocfs2_recovery_thread(void *arg)
status = -ENOMEM;
goto bail;
}
+
restart:
status = ocfs2_super_lock(osb, 1);
if (status < 0) {
@@ -1231,6 +1233,13 @@ restart:
goto bail;
}
+ /* save slots status so we can recover...
2006 Jun 25
1
Error while Mounting
...ournal superblock found
I have searched high and low for this, but wasn't able to come up with
anything as to why I get this. This error will occur on either node.
(3509,0):o2net_set_nn_state:415 accepted connection from node bsp (num 1) at
10.1.1.11:7777
(3575,0):ocfs2_initialize_super:1326 max_slots for this device: 4
(3575,0):ocfs2_fill_local_node_info:1019 I am node 0
(3575,0):__dlm_print_nodes:377 Nodes in my domain
("E09A0D90C8454749B81E9754438611B8"):
(3575,0):__dlm_print_nodes:381 node 0
(3575,0):__dlm_print_nodes:381 node 1
(3575,0):ocfs2_find_slot:267 taking node slot 1
JB...
2009 Apr 07
1
Backport to 1.4 of patch that recovers orphans from offline slots
The following patch is a backport of patch that recovers orphans from offline
slots. It is being backported from mainline to 1.4
mainline patch: 0001-Patch-to-recover-orphans-in-offline-slots-during-rec.patch
Thanks,
--Srini
2009 Mar 06
0
[PATCH 1/1] ocfs2: recover orphans in offline slots during recovery and mount
...+int ocfs2_compute_replay_slots(struct ocfs2_super *osb)
+{
+ struct ocfs2_replay_map *replay_map;
+ int i, node_num;
+
+ /* If replay map is already set, we don't do it again */
+ if (osb->replay_map)
+ return 0;
+
+ replay_map = kzalloc(sizeof(struct ocfs2_replay_map) +
+ (osb->max_slots * sizeof(char)), GFP_KERNEL);
+
+ if (!replay_map) {
+ mlog_errno(-ENOMEM);
+ return -ENOMEM;
+ }
+
+ spin_lock(&osb->osb_lock);
+
+ replay_map->rm_slots = osb->max_slots;
+ replay_map->rm_state = REPLAY_UNNEEDED;
+
+ /* set rm_replay_slots for offline slot(s) */
+ for (i = 0; i...
2009 Mar 06
1
[PATCH 1/1] Patch to recover orphans in offline slots during recovery and mount (revised)
...+int ocfs2_compute_replay_slots(struct ocfs2_super *osb)
+{
+ struct ocfs2_replay_map *replay_map;
+ int i, node_num;
+
+ /* If replay map is already set, we don't do it again */
+ if (osb->replay_map)
+ return 0;
+
+ replay_map = kzalloc(sizeof(struct ocfs2_replay_map) +
+ (osb->max_slots * sizeof(char)), GFP_KERNEL);
+
+ if (!replay_map) {
+ mlog_errno(-ENOMEM);
+ return -ENOMEM;
+ }
+
+ spin_lock(&osb->osb_lock);
+
+ replay_map->rm_slots = osb->max_slots;
+ replay_map->rm_state = REPLAY_UNNEEDED;
+
+ /* set rm_replay_slots for offline slot(s) */
+ for (i = 0; i...
2009 Feb 12
0
Suggestions to fix orphan dir cleanup
...rm of a file while it is
opened by node B. Now if node A umounts and node B dies and is restarted
first, it only recovers itself leaving orphan file in node A's orphan
directory.
In order to fix the problem, I am looking for your inputs on what is
the best :)
1) recover all slots(osb->max_slots) whenever there is a recovery. This
can trigger simultaneous recoveries if there were multiple node failures.
2) queue recovery during mount(even if the journal is clean). This can
still leave the file in orphan directory till the slot is used.
3) Initiate recovery periodically after certian...
2009 Feb 20
3
[PATCH 1/1] OCFS2: anti stale inode for nfs (V4)
...oto bail;
+
+ inode_fe = (struct ocfs2_dinode *) inode_bh->b_data;
+ if (!OCFS2_IS_VALID_DINODE(inode_fe)) {
+ status = -EINVAL;
+ goto bail;
+ }
+
+ if (le16_to_cpu(inode_fe->i_suballoc_slot) != OCFS2_INVALID_SLOT &&
+ (u32)le16_to_cpu(inode_fe->i_suballoc_slot) > osb->max_slots -1) {
+ mlog(ML_ERROR, "inode %llu has invalid suballoc slot %u"
+ "this may be caused by file system crash", blkno,
+ (u32)le16_to_cpu(inode_fe->i_suballoc_slot));
+ status = -EINVAL;
+ goto bail;
+ }
+ if (suballoc_slot)
+ *suballoc_slot = le16_to_cpu(inode...
2013 Jan 24
1
[PATCH 35/35] x86: Don't panic if can not alloc buffer for swiotlb
...+ free_bootmem(io_tlb_start,
+ PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT));
+ pr_warn("Cannot allocate SWIOTLB buffer");
+ no_iotlb_memory = true;
}
/*
@@ -405,6 +413,9 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev,
unsigned long offset_slots;
unsigned long max_slots;
+ if (no_iotlb_memory)
+ panic("Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer");
+
mask = dma_get_seg_boundary(hwdev);
tbl_dma_addr &= mask;
--
1.7.10.4
2013 Jan 24
1
[PATCH 35/35] x86: Don't panic if can not alloc buffer for swiotlb
...+ free_bootmem(io_tlb_start,
+ PAGE_ALIGN(io_tlb_nslabs << IO_TLB_SHIFT));
+ pr_warn("Cannot allocate SWIOTLB buffer");
+ no_iotlb_memory = true;
}
/*
@@ -405,6 +413,9 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev,
unsigned long offset_slots;
unsigned long max_slots;
+ if (no_iotlb_memory)
+ panic("Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer");
+
mask = dma_get_seg_boundary(hwdev);
tbl_dma_addr &= mask;
--
1.7.10.4
2009 Jun 24
0
[STABLE, 2.6.30.x] ocfs2: Fix ocfs2_osb_dump()
...alAllocs: %d LocalAllocs: %d "
@@ -302,7 +307,6 @@ static int ocfs2_osb_dump(struct ocfs2_super *osb, char *buf, int len)
out += snprintf(buf + out, len - out, "%10s => %3s %10s\n",
"Slots", "Num", "RecoGen");
-
for (i = 0; i < osb->max_slots; ++i) {
out += snprintf(buf + out, len - out,
"%10s %c %3d %10d\n",
--
1.6.3.1
--
A good programming language should have features that make the
kind of people who use the phrase "software engineering" shake
their heads disapprovingly.
- Paul Graham
Joel Becker...
2008 Nov 13
69
[PATCH 00 of 38] xen: add more Xen dom0 support
Hi Ingo,
Here''s the chunk of patches to add Xen Dom0 support (it''s probably
worth creating a new xen/dom0 topic branch for it).
A dom0 Xen domain is basically the same as a normal domU domain, but
it has extra privileges to directly access hardware. There are two
issues to deal with:
- translating to and from the domain''s pseudo-physical addresses and
real machine
2006 Feb 28
5
Problem with paginate, include and foreign keys
....0
Postgres 8.1
postgres driver 0.7.1
I''m having a problem with getting paginate() to properly pick up an FK
constraint properly.
I don''t seem to have this issue with ActiveRecord, however. Consider:
create table start_dates (
id bigserial,
start_date date unique,
max_slots int default 40,
primary key (id)
);
create table schedules (
id bigserial,
start_date_id int,
...
foreign key (start_date_id) references start_dates (id),
primary key (id)
);
class StartDate < ActiveRecord::Base
has_many :schedules
end
class Schedule...
2009 Apr 21
0
[PATCH] ocfs2: Fix some printk() warnings.
...ong)blkno);
status = -EINVAL;
goto bail;
}
@@ -2216,7 +2218,8 @@ static int ocfs2_get_suballoc_slot_bit(struct ocfs2_super *osb, u64 blkno,
if (le16_to_cpu(inode_fe->i_suballoc_slot) != (u16)OCFS2_INVALID_SLOT &&
(u32)le16_to_cpu(inode_fe->i_suballoc_slot) > osb->max_slots - 1) {
mlog(ML_ERROR, "inode %llu has invalid suballoc slot %u\n",
- blkno, (u32)le16_to_cpu(inode_fe->i_suballoc_slot));
+ (unsigned long long)blkno,
+ (u32)le16_to_cpu(inode_fe->i_suballoc_slot));
status = -EINVAL;
goto bail;
}
@@ -2251,7 +2254,8 @@ s...
2009 Jun 04
2
Backport that adds delayed orphan scan timer to 1.4
Next two patches are backport of orphan scan timer patches to ocfs2-1.4
2010 Oct 22
0
[GIT PULL] ocfs2 changes for 2.6.37
...0d8157f:
Linux 2.6.36 (2010-10-20 13:30:22 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2.git upstream-linus
Goldwyn Rodrigues (3):
Reorganize data elements to reduce struct sizes
Track negative entries v3
Initialize max_slots early
Jan Kara (1):
ocfs2: Remove ocfs2_sync_inode()
Jeff Liu (1):
ocfs2: Avoid to evaluate xattr block flags again.
Joel Becker (5):
Merge branch 'cow_readahead' of git://oss.oracle.com/git/tma/linux-2.6 into merge-2
libfs: Fix shift bug in generic_check_address...
2009 Jun 19
6
[PATCH 1/5] ocfs2: Pin journal head before accessing jh->b_committed_data
This patch adds jbd_lock_bh_state() and jbd_unlock_bh_state() around accessses
to jh->b_committed_data.
Fixes oss bugzilla#1131
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1131
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
fs/ocfs2/suballoc.c | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/fs/ocfs2/suballoc.c
2005 Nov 26
1
Tomb Raider 4 and wine 0.9.1(DirectX 6.1)
...stub!
fixme:ddraw:Main_IDirect3DVertexBufferImpl_7_1T_Optimize (0x7ff202b0/0x7ff202b0)->(0x7d506028,00000000): stub!
fixme:ddraw:Main_IDirect3DVertexBufferImpl_7_1T_Optimize (0x7ff203b0/0x7ff203b0)->(0x7d506028,00000000): stub!
X 69632, Y 0, Z 74752, Xs 7, Ys 7
Ouside room table = 112 bytes, max_slots = 5
wine: Unhandled page fault on read access to 0x0000012c at address 0x45f25c (thread 000e), starting debugger...
WineDbg starting on pid 0x8
Unhandled exception: page fault on read access to 0x0000012c in 32-bit code (0x0045f25c).
In 32 bit mode.
Register dump:
CS:0073 SS:007b DS:007b ES:007b...