Displaying 20 results from an estimated 45 matches for "localalloc".
2010 Mar 12
1
[PATCH] ocfs2: Always try for maximum bits with new local alloc windows
...So
while we still want to ask for a minimum number of bits equal to window
size, there is no reason why we should limit the number of bits the local
alloc should accept. Hence always allow the maximum number of local alloc
bits.
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
---
fs/ocfs2/localalloc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
index 9ab9d33..955a60b 100644
--- a/fs/ocfs2/localalloc.c
+++ b/fs/ocfs2/localalloc.c
@@ -1002,7 +1002,7 @@ static int ocfs2_local_alloc_reserve_for_window(struct ocfs2_supe...
2013 Mar 10
1
[PATCH] fs: fs2fs: Replaced calls to kmalloc and memcpy with kmemdup
Replaced calls to kmalloc followd by memcpy with a single call to kmemdup.
This patch was found using coccicheck.
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru at gmail.com>
---
fs/ocfs2/localalloc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
index aebeacd..839183f 100644
--- a/fs/ocfs2/localalloc.c
+++ b/fs/ocfs2/localalloc.c
@@ -434,12 +434,11 @@ void ocfs2_shutdown_local_alloc(struct ocfs2_super *osb)
bh = os...
2023 Apr 30
3
[PATCH 2/2] ocfs2: add error handling path when jbd2 enter ABORT status
...same issue:
When jbd2 enter ABORT status, ocfs2 ignores it and keep going to commit
journal.
This commit gives ocfs2 ability to handle jbd2 ABORT case.
Signed-off-by: Heming Zhao <heming.zhao at suse.com>
---
fs/ocfs2/alloc.c | 10 ++++++----
fs/ocfs2/journal.c | 5 +++++
fs/ocfs2/localalloc.c | 3 +++
3 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 51c93929a146..d90961a1c433 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -6308,11 +6308,13 @@ void ocfs2_truncate_log_shutdown(struct ocfs2_super *osb)
if (tl_inode) {...
2013 Nov 22
0
[PATCH Resend] ocfs2: free allocated clusters if error occurs after ocfs2_claim_clusters
...failed in ocfs2_insert_extent.
So we need free the allocated clusters if they are not used indeed.
Signed-off-by: Zongxun Wang <wangzongxun at huawei.com>
Signed-off-by: Joseph Qi <joseph.qi at huawei.com>
---
fs/ocfs2/alloc.c | 38 +++++++++++++++++++++++++++++++++++---
fs/ocfs2/localalloc.c | 40 ++++++++++++++++++++++++++++++++++++++++
fs/ocfs2/localalloc.h | 6 ++++++
3 files changed, 81 insertions(+), 3 deletions(-)
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 17e6bdd..36c1b71 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -4742,6 +4742,7 @@ int ocfs2_add_clu...
2010 Jun 09
3
[PATCH] ocfs2: Limit default local alloc size within bitmap range.
...culate 96MB while the maximum local alloc size is only
76M. So the bitmap will overflow and corrupt the system truncate
log file. See bug
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1262
Cc: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
fs/ocfs2/localalloc.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
index 3d74196..ec6adbf 100644
--- a/fs/ocfs2/localalloc.c
+++ b/fs/ocfs2/localalloc.c
@@ -118,6 +118,7 @@ unsigned int ocfs2_la_default_mb(struct ocfs2_super *osb)
{
uns...
2013 Nov 21
1
[PATCH] ocfs2: free allocated clusters if error occurs after ocfs2_claim_clusters
...file, but failed in ocfs2_insert_extent.
So we need free the allocated clusters if they are not used indeed.
Cc: Joseph Qi <joseph.qi at huawei.com>
Signed-off-by: Zongxun Wang <wangzongxun at huawei.com>
---
fs/ocfs2/alloc.c | 38 +++++++++++++++++++++++++++++++++++---
fs/ocfs2/localalloc.c | 40 ++++++++++++++++++++++++++++++++++++++++
fs/ocfs2/localalloc.h | 6 ++++++
3 files changed, 81 insertions(+), 3 deletions(-)
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 17e6bdd..36c1b71 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -4742,6 +4742,7 @@ int ocfs2_add_clu...
2010 Apr 06
2
[PATCH] ocfs2/trivial: Code cleanup for allocation reservation.
Two tiny cleanup for allocation reservation.
1. Remove some extra codes in ocfs2_local_alloc_find_clear_bits.
2. Remove an unuseful variables in ocfs2_find_resv_lhs.
Cc: Mark Fasheh <mfasheh at suse.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
fs/ocfs2/localalloc.c | 7 ++-----
fs/ocfs2/reservations.c | 2 --
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
index 2882f79..0b32113 100644
--- a/fs/ocfs2/localalloc.c
+++ b/fs/ocfs2/localalloc.c
@@ -879,13 +879,10 @@ static int ocfs2_local_allo...
2013 Nov 25
0
[PATCH] ocfs2: correctly update i_used in ocfs2_free_local_alloc_bits
...-
after-ocfs2_claim_clusters.patch.
https://oss.oracle.com/pipermail/ocfs2-devel/2013-November/009461.html
We should note down num of bits to be freed, so as to update i_used
correspondingly after clearing those bits in bitmap.
Signed-off-by: Joseph Qi <joseph.qi at huawei.com>
---
fs/ocfs2/localalloc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fs/ocfs2/localalloc.c b/fs/ocfs2/localalloc.c
index 25ec3b7..0440134 100644
--- a/fs/ocfs2/localalloc.c
+++ b/fs/ocfs2/localalloc.c
@@ -788,6 +788,7 @@ int ocfs2_free_local_alloc_bits(struct ocfs2_super *osb,
u32 num_bits...
2009 Apr 15
1
hang with fsdlm
...man Name: 8A77044F9D98416FAB240B44B1843EDA Version: 1.0
DownCnvt => Pid: 3053 Count: 0 WakeSeq: 55892 WorkSeq: 55892
Recovery => Pid: -1 Nodes: None
Commit => Pid: 3068 Interval: 0 Needs: 1
Journal => State: 1 NumTxns: 2 TxnId: 1136
Stats => GlobalAllocs: 3 LocalAllocs: 915 SubAllocs: 2938 LAWinMoves: 1
SAExtends: 2
LocalAlloc => State: 1 Descriptor: 2032128 Size: 2048 bits Default: 2048 bits
Steal => Slot: -1 NumStolen: 0
Slots => Num RecoGen
* 0 3
1 3
2 3...
2023 Apr 30
2
[PATCH 1/2] ocfs2: fix missing reset j_num_trans for sync
fstest generic cases 266 272 281 trigger hanging issue when umount.
I use 266 to describe the root cause.
```
49 _dmerror_unmount
50 _dmerror_mount
51
52 echo "Compare files"
53 md5sum $testdir/file1 | _filter_scratch
54 md5sum $testdir/file2 | _filter_scratch
55
56 echo "CoW and unmount"
57 sync
58 _dmerror_load_error_table
59 urk=$($XFS_IO_PROG -f -c "pwrite
2009 Mar 31
0
[PATCH] ocfs2: remove some pointless conditionals before kfree()
...loc.c | 3 +--
fs/ocfs2/cluster/heartbeat.c | 6 ++----
fs/ocfs2/cluster/tcp.c | 6 ++----
fs/ocfs2/dlm/dlmdomain.c | 3 +--
fs/ocfs2/dlm/dlmrecovery.c | 6 ++----
fs/ocfs2/extent_map.c | 3 +--
fs/ocfs2/journal.c | 9 +++------
fs/ocfs2/localalloc.c | 9 +++------
fs/ocfs2/super.c | 6 ++----
9 files changed, 17 insertions(+), 34 deletions(-)
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 19e3a96..08f46cd 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -6882,8 +6882,7 @@ int ocfs2_zero_range_for_trun...
2001 Oct 09
2
crash on priviledged instruction
...l USER.13: GETTICKCOUNT() ret=03c7:041d ds=09c7
08243b48:Ret USER.13: GETTICKCOUNT() retval=0x00003470 ret=03c7:041d ds=09c7
08243b48:Call KERNEL.169: GETFREESPACE(0x0000) ret=0417:0ae9 ds=09c7
08243b48:Ret KERNEL.169: GETFREESPACE() retval=0x7ffdffff ret=0417:0ae9 ds=09c7
08243b48:Call KERNEL.5: LOCALALLOC(0x0040,0x004c) ret=04e7:001e ds=09d7
08243b48:Ret KERNEL.5: LOCALALLOC() retval=0x99b0 ret=04e7:001e ds=09d7
08243b48:Call KERNEL.8: LOCALLOCK(0x99b0) ret=04e7:002b ds=09d7
08243b48:Ret KERNEL.8: LOCALLOCK() retval=0x09d799b0 ret=04e7:002b ds=09d7
08243b48:Call USER.13: GETTICKCOUNT() ret=03c7:04...
2010 May 20
0
[GIT PULL] ocfs2 updates for 2.6.35
...ocfs2: allocation reservations
ocfs2: use allocation reservations during file write
ocfs2: use allocation reservations for directory data
ocfs2: allocate btree internal block groups from the global bitmap
ocfs2: remove ocfs2_local_alloc_in_range()
ocfs2: clean up localalloc mount option size parsing
ocfs2: increase the default size of local alloc windows
ocfs2: change default reservation window sizes
ocfs2: Add dir_resv_level mount option
Srinivas Eeda (1):
o2net: log socket state changes
Sunil Mushran (3):
ocfs2/dlm: Make o2dlm domain...
2006 Aug 15
0
[git patches] ocfs2 updates
...ink they've had enough testing that they can go
upstream.
Please pull from 'upstream-linus' branch of
git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git
to receive the following updates:
fs/ocfs2/dlm/dlmmaster.c | 1
fs/ocfs2/dlm/dlmunlock.c | 43 +++----
fs/ocfs2/localalloc.c | 8 +
fs/ocfs2/ocfs2.h | 2
fs/ocfs2/suballoc.c | 261 +++++++++++++++++++++++++++++++++++++++++------
fs/ocfs2/suballoc.h | 2
fs/ocfs2/super.c | 8 +
7 files changed, 263 insertions(+), 62 deletions(-)
Adrian Bunk:
fs/ocfs2/dlm/dlmmaster.c: un...
2013 Mar 22
0
OCFS2 performance issues
...Name: 45B8B88228BD4DFBBE91BFC85C748FB6
Version: 1.0
DownCnvt => Pid: 9804 Count: 0 WakeSeq: 42573 WorkSeq: 42573
Recovery => Pid: -1 Nodes: None
Commit => Pid: 9809 Interval: 0 Needs: 1
Journal => State: 1 TxnId: 57 NumTxns: 0
Stats => GlobalAllocs: 1 LocalAllocs: 393 SubAllocs: 108
LAWinMoves: 1 SAExtends: 0
LocalAlloc => State: 1 Descriptor: 0 Size: 27136 bits Default: 27136 bits
Steal => InodeSlot: -1 StolenInodes: 0, MetaSlot: -1 StolenMeta: 0
OrphanScan => Local: 126 Global: 1036 Last Scan: 851 seconds ago
Slots => Nu...
2023 Apr 06
3
[PATCH] ocfs2: Fix wrong search logic in __ocfs2_resv_find_window
** problem **
Current code triggers a defragfs bug [1]:
```
tw-tst:~ # defragfs.ocfs2 /mnt/test_from_dd1
defragfs.ocfs2 1.8.7
[ERROR]Move extent failed:"/mnt/test_from_dd1" - No space left on device
[ERROR]"/mnt/test_from_dd1":No space left on device
```
I added some debug messages in relevant functions. When above error
messages appeared, the la-window still had enough
2013 Nov 05
1
ocfs2: why not set EROFS when clearing bits multiple times
In ocfs2_block_group_clear_bits, when num_bits != bits_cleared, it just
log an error message without setting EROFS.
The code is below:
/*
* If encountered, it means we are clearing bits multiple times. While
* we are handling the case, we still need to be alerted to its
* occurrence. Hence, marking it as an ERROR and not NOTICE.
*/
if (num_bits != bits_cleared) {
mlog(ML_ERROR,
2001 Jul 12
0
BadMatch on X_CreateCursor (cvs 010712)
...000 ret=05cf:057a
ds=01ef
080a7df8:Call USER.69: SETCURSOR(0x1486) ret=055f:02d3 ds=01ef
080a7df8:Call x11drv.SetCursor(41290c4c) ret=4094abc6
080a7df8:Ret x11drv.SetCursor() retval=00000001 ret=4094abc6
080a7df8:Ret USER.69: SETCURSOR() retval=0x147e ret=055f:02d3 ds=01ef
080a7df8:Call KERNEL.5: LOCALALLOC(0x0040,0x0010) ret=0597:001f ds=133f
080a7df8:Ret KERNEL.5: LOCALALLOC() retval=0x0508 ret=0597:001f ds=133f
080a7df8:Call USER.236: GETCAPTURE() ret=0547:1152 ds=01ef
080a7df8:Ret USER.236: GETCAPTURE() retval=0x2274 ret=0547:1152 ds=01ef
080a7df8:Call KERNEL.335: ISBADWRITEPTR(0x145f0d63,0x0008...
2011 May 26
5
[PATCH 0/4] ocfs2: bugfix for hard readonly mount
Hi, All,
These four patches are all related to ocfs2 on hard readonly mount.
patch 1 fix oops when umount ocfs2 on hard readonly device.
Because ocfs2_dismount_volume() will call ocfs2_cluster_hangup() and
then call ocfs2_stack_driver_put(), will hit BUG_ON(active_stack == NULL).
patch 2 fix oops when do ls or cat in ocfs2 on hard readonly device.
Because ocfs2_open_lock() will call
2008 Sep 04
4
[PATCH 0/3] ocfs2: Switch over to JBD2.
ocfs2 currently uses the Journaled Block Device (JBD) for its
journaling. This is a very stable and tested codebase. However, JBD
is limited by architecture to 32bit block numbers. This means an ocfs2
filesystem is limited to 2^32 blocks. With a 4K blocksize, that's 16TB.
People want larger volumes.
Fortunately, there is now JBD2. JBD2 adds 64bit block number support
and some other