search for: ocfs2_lock_alloc

Displaying 15 results from an estimated 15 matches for "ocfs2_lock_alloc".

Did you mean: ocfs2_local_alloc
2010 Apr 05
1
Kernel Panic, Server not coming back up
....com 2.6.18-164.15.1.0.1.el5 #1 SMP Wed Mar 17 00:56:05 EDT 2010 i686 i686 i386 GNU/Linux # rpm -qa | grep ocfs2 ocfs2-2.6.18-164.11.1.0.1.el5-1.4.4-1.el5 ocfs2-tools-1.4.3-1.el5 ocfs2-2.6.18-164.15.1.0.1.el5-1.4.4-1.el5 This is the latest from one of the alive hosts: # dmesg | tail -50 (2869,0):ocfs2_lock_allocators:677 ERROR: status = -5 (2869,0):__ocfs2_extend_allocation:739 ERROR: status = -5 (2869,0):ocfs2_extend_no_holes:952 ERROR: status = -5 (2869,0):ocfs2_expand_nonsparse_inode:1678 ERROR: status = -5 (2869,0):ocfs2_write_begin_nolock:1722 ERROR: status = -5 (2869,0):ocfs2_write_begin:1860 ERROR:...
2009 Mar 18
2
[RFC] metadata alloc fix in machines which has PAGE_SIZE > CLUSTER_SIZE
...us allocated with unwritten and then divide it by write to the 256 with 1 cluster. Now if we try to write 40960 bytes at offset 256. We will panic. Why? The reason is that: 1. with ppc box, we have page_size=64K. So in one ocfs2_write_begin_no_lock we will try to handle 40960 bytes together. 2. in ocfs2_lock_allocators we will get that no metadata is need since the 2nd extent block has so many empty extent recs. 3. then write begin one cluster by one in ocfs2_write_cluster. 1) The 1st cluster(256) nothing special. 2) the 2nd (257), it will be merged with 256. 3) the 3rd (258), be merged with 256....
2017 Jun 19
1
core dump on ocfs2
...3642] [<fffffffbyefa05101d3>] ocfs2_reserve_local_alloc_bits+0x1a3/0x330 [ocfs2] Jun 19 14:22:45 posta2 kernel: [885017.413706] [<ffffffffa053396b>] ocfs2_reserve_clusters_with_limit+0xab/0x330 [ocfs2] Jun 19 14:22:45 posta2 kernel: [885017.413780] [<ffffffffa0534d15>] ocfs2_lock_allocators+0xc5/0x290 [ocfs2] Jun 19 14:22:45 posta2 kernel: [885017.413847] [<ffffffffa04e30fd>] ocfs2_write_begin_nolock+0x89d/0x11d0 [ocfs2] Jun 19 14:22:45 posta2 kernel: [885017.413883] [<ffffffffa04e3b47>] ocfs2_write_begin+0x117/0x240 [ocfs2] Jun 19 14:22:45 posta2 kernel: [8...
2011 Aug 10
1
fsck hangs in Pass 0a
...ERROR: status = -5 (kvm,12322,1):ocfs2_local_alloc_new_window:1013 ERROR: status = -5 (kvm,12322,1):ocfs2_local_alloc_slide_window:1116 ERROR: status = -5 (kvm,12322,1):ocfs2_reserve_local_alloc_bits:537 ERROR: status = -5 (kvm,12322,1):__ocfs2_reserve_clusters:816 ERROR: status = -5 (kvm,12322,1):ocfs2_lock_allocators:677 ERROR: status = -5 (kvm,12322,1):ocfs2_write_begin_nolock:1750 ERROR: status = -5 (kvm,12322,1):ocfs2_write_begin:1860 ERROR: status = -5 (kvm,12322,1):ocfs2_file_buffered_write:2039 ERROR: status = -5 OCFS2: ERROR (device dm-7): ocfs2_check_group_descriptor: Group Descriptor # 0 has bad s...
2009 Feb 11
1
Possible lock inversion in directory locking
...erve_local_alloc_bits+0xf6/0xdec [ocfs2] [<ffffffff80468376>] _spin_unlock+0x17/0x20 [<ffffffffa03012e9>] ocfs2_alloc_should_use_local+0x9e/0xa9 [ocfs2] [<ffffffffa030f782>] ocfs2_reserve_clusters_with_limit+0xf4/0x242 [ocfs2] [<ffffffffa0310954>] ocfs2_lock_allocators+0x15d/0x1e8 [ocfs2] [<ffffffffa02e25ce>] ocfs2_write_begin_nolock+0x9f6/0x1a99 [ocfs2] [<ffffffff80249424>] find_usage_backwards+0xc7/0xe8 [<ffffffff8024cf83>] __lock_acquire+0x133e/0x156e [<ffffffff80249be9>] add_lock_to_list+0x74/0xb3...
2009 Mar 03
3
[PATCH 1/1] OCFS2: anti stale inode for nfs (V6)
...= 'Q'; break; + case OCFS2_LOCK_TYPE_NFS_SYNC: + c = 'Y'; + break; default: c = '\0'; } Index: suballoc.h =================================================================== --- suballoc.h (revision 139) +++ suballoc.h (working copy) @@ -186,4 +186,6 @@ int ocfs2_lock_allocators(struct inode * u32 clusters_to_add, u32 extents_to_split, struct ocfs2_alloc_context **data_ac, struct ocfs2_alloc_context **meta_ac); + +int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res); #endif /* _CHAINALLOC_H_ */ Index: ocfs2.h ======================...
2009 Mar 05
0
[PATCH 1/1] OCFS2: anti stale inode for nfs (V6.2)
...lock(&inode_alloc_inode->i_mutex); + + iput(inode_alloc_inode); + brelse(alloc_bh); +bail: + mlog_exit(status); + return status; +} diff --git a/fs/ocfs2/suballoc.h b/fs/ocfs2/suballoc.h index e3c13c7..62d1f94 100644 --- a/fs/ocfs2/suballoc.h +++ b/fs/ocfs2/suballoc.h @@ -186,4 +186,6 @@ int ocfs2_lock_allocators(struct inode *inode, struct ocfs2_extent_tree *et, u32 clusters_to_add, u32 extents_to_split, struct ocfs2_alloc_context **data_ac, struct ocfs2_alloc_context **meta_ac); + +int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res); #endif /* _CHAINALLOC_H_ */
2009 Mar 06
0
[PATCH 1/1] OCFS2: anti stale inode for nfs (V6.3)
...lock(&inode_alloc_inode->i_mutex); + + iput(inode_alloc_inode); + brelse(alloc_bh); +bail: + mlog_exit(status); + return status; +} diff --git a/fs/ocfs2/suballoc.h b/fs/ocfs2/suballoc.h index e3c13c7..62d1f94 100644 --- a/fs/ocfs2/suballoc.h +++ b/fs/ocfs2/suballoc.h @@ -186,4 +186,6 @@ int ocfs2_lock_allocators(struct inode *inode, struct ocfs2_extent_tree *et, u32 clusters_to_add, u32 extents_to_split, struct ocfs2_alloc_context **data_ac, struct ocfs2_alloc_context **meta_ac); + +int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res); #endif /* _CHAINALLOC_H_ */
2009 Feb 27
2
[PATCH 1/1] OCFS2: anti stale inode for nfs (V5)
...;inode_alloc_inode->i_mutex); + + iput(inode_alloc_inode); + brelse(alloc_bh); +bail: + mlog_exit(status); + return status; +} Index: suballoc.h =================================================================== --- suballoc.h (revision 139) +++ suballoc.h (working copy) @@ -186,4 +186,6 @@ int ocfs2_lock_allocators(struct inode * u32 clusters_to_add, u32 extents_to_split, struct ocfs2_alloc_context **data_ac, struct ocfs2_alloc_context **meta_ac); + +int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res); #endif /* _CHAINALLOC_H_ */ Index: ocfs2.h ======================...
2009 Feb 20
3
[PATCH 1/1] OCFS2: anti stale inode for nfs (V4)
...bit failed %d\n", status); + + iput(inode_alloc_inode); + brelse(alloc_bh); +bail: + mlog_exit(status); + return status; +} Index: suballoc.h =================================================================== --- suballoc.h (revision 139) +++ suballoc.h (working copy) @@ -186,4 +186,6 @@ int ocfs2_lock_allocators(struct inode * u32 clusters_to_add, u32 extents_to_split, struct ocfs2_alloc_context **data_ac, struct ocfs2_alloc_context **meta_ac); + +int ocfs2_test_inode_bit(struct ocfs2_super *osb, u64 blkno, int *res); #endif /* _CHAINALLOC_H_ */ Index: ocfs2.h ======================...
2009 Feb 13
44
[PATCH 0/40] ocfs2: Detach ocfs2 metadata I/O from struct inode
The following series of patches attempts to detach metadata I/O from struct inode. They are currently tied together pretty tightly. Metadata reads happen via the ocfs2_read_blocks() functions, writes via both jbd2 and ocfs2_write_blocks(). - Each inode has a cache of associated metadata blocks stored on its ip_metadata_cache member. The ocfs2_read/write_blocks() functions take a struct
2009 Apr 03
42
[PATCH 00/42] ocfs2: Add reflink file support. V2
Hi all, Change from v1 to v2: bug fix and metadata/credits reservation improvement. The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink. For the design doc, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/RefcountTrees http://oss.oracle.com/osswiki/OCFS2/DesignDocs/ReflinkOperation
2009 Mar 27
42
[PATCH 00/42] ocfs2: Add reflink file support. V1
Hi all, So I have finally finished the v1 of reflink for ocfs2. It has some bugs that I am still investigating, but the schema is almost there. So I'd like to send it out first for review. And Tristan and I will continue to work on the stability of the code. The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink. For the design doc, please
2009 Mar 17
33
[git patches] Ocfs2 updates for 2.6.30
Hi, The following patches comprise the bulk of Ocfs2 updates for the 2.6.30 merge window. Aside from larger, more involved fixes, we're adding the following features, which I will describe in the order their patches are mailed. Sunil's exported some more state to our debugfs files, and consolidated some other aspects of our debugfs infrastructure. This will further aid us in debugging
2009 Jan 30
8
[PATCH 0/7] ocfs2: Directory indexing support
The following patches implement indexed directory support in Ocfs2, mostly according to the design doc I wrote up a while ago: http://oss.oracle.com/osswiki/OCFS2/DesignDocs/IndexedDirectories The patches have been rebased on top of 2.6.29-rc2. It should be trivial to put them into merge_window. Things are what I'd call complete now. I'd like to get these into the merge_window branch