Displaying 11 results from an estimated 11 matches for "ocfs2_extend_no_hol".
Did you mean:
ocfs2_extend_no_holes
2010 Apr 05
1
Kernel Panic, Server not coming back up
...2
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: status = -5
(2869,0):ocfs2_file_buffered_write:2039 ERROR: status = -5
(2869,0):__ocfs2_file_aio_write:2194 ERROR:...
2009 Jul 29
1
ocfs2 quota qs.
Hi Jan,
I am now reading quota support in ocfs2 and have some qs. Wish you can
help me clarify it. Thanks.
ocfs2_quota_write:
In the comment, you said that "we know the transaction is already
started", so it should be called within a transaction. But in this
function, we call ocfs2_extend_no_holes and ocfs2_simple_size_update
which will start another transaction. So we can survive with nested
transaction or this scenario will never happen?
Regards,
Tao
2009 Apr 07
0
[PATCH 1/1] OCFS2: use i_size_read() instead of direct accessing inode->i_size
...@@ -210,7 +210,7 @@ ssize_t ocfs2_quota_write(struct super_block *sb, int type,
}
mutex_lock_nested(&gqinode->i_mutex, I_MUTEX_QUOTA);
- if (gqinode->i_size < off + len) {
+ if (i_size_read(gqinode) < off + len) {
down_write(&OCFS2_I(gqinode)->ip_alloc_sem);
err = ocfs2_extend_no_holes(gqinode, off + len, off);
up_write(&OCFS2_I(gqinode)->ip_alloc_sem);
diff --git a/fs/ocfs2/quota_local.c b/fs/ocfs2/quota_local.c
index 07deec5..cf9deab 100644
--- a/fs/ocfs2/quota_local.c
+++ b/fs/ocfs2/quota_local.c
@@ -938,14 +938,14 @@ static struct ocfs2_quota_chunk *ocfs2_local_qu...
2009 Aug 02
1
Non sparse extend init issue
The patch was created against a 1.4 tree. However, it applies cleanly to mainline too.
The patch has been lightly tested. I am running fill_verify_holes on a non sparse volume
currently.
Please review.
Sunil
2009 Aug 03
1
Non sparse init fix v3
One line fix from Joel's version. Also, some comments removed.
18:58 <sunil> wc->w_first_new_cpos =
18:58 <sunil> - ocfs2_align_bytes_to_clusters(inode->i_sb, i_size_read(inode));
18:58 <sunil> + ocfs2_clusters_for_bytes(inode->i_sb, i_size_read(inode));
2009 Jul 22
8
[PATCH 0/7] OCFS2 quota fixes (version 2)
Hi,
here is the second version of OCFS2 quota fixes with Joel's comments
fixed. Also I've added a patch defining counts of credits for quota
operations as Joel asked.
Honza
2009 Jul 15
7
[PATCH 0/6] Quota fixes for 2.6.31-rc4
Hi,
I did some more in-depth testing of OCFS2 quota code, especially with ECC
feature enabled and spotted some problems. First four patches fix them.
I need the fifth patch to be able to mount OCFS2 filesystem with 2.6.31-rc3.
The sixth patch fixes a potential problem when quota syncing interval is
updated while the cluster is running (which is not possible currently).
Joel, could you please
2009 Jul 13
1
[PATCH 1/1] adds mlogs to aops.c
...= OCFS2_SB(inode->i_sb);
loff_t newsize = pos + len;
+ mlog_entry("(%llu, %lld, %u, 0x%p)\n",
+ OCFS2_I(inode)->ip_blkno, pos, len, wc);
+
if (ocfs2_sparse_alloc(osb))
- return 0;
+ goto bail;
if (newsize <= i_size_read(inode))
- return 0;
+ goto bail;
ret = ocfs2_extend_no_holes(inode, newsize, newsize - len);
if (ret)
mlog_errno(ret);
+bail:
+ mlog_exit(ret);
return ret;
}
@@ -1655,6 +1778,10 @@ int ocfs2_write_begin_nolock(struct address_space *mapping,
handle_t *handle;
struct ocfs2_extent_tree et;
+ mlog_entry("(0x%p, %lld, %u, %u, .., %llu, %l...
2009 Jul 21
1
(no subject)
...;i_sb);
loff_t newsize = pos + len;
+ mlog_entry("(%llu, %lld, %u, 0x%p)\n",
+ (unsigned long long)OCFS2_I(inode)->ip_blkno, pos, len, wc);
+
if (ocfs2_sparse_alloc(osb))
- return 0;
+ goto bail;
if (newsize <= i_size_read(inode))
- return 0;
+ goto bail;
ret = ocfs2_extend_no_holes(inode, newsize, newsize - len);
if (ret)
mlog_errno(ret);
+bail:
+ mlog_exit(ret);
return ret;
}
@@ -1655,6 +1786,10 @@ int ocfs2_write_begin_nolock(struct address_space *mapping,
handle_t *handle;
struct ocfs2_extent_tree et;
+ mlog_entry("(0x%p, %lld, %u, %u, .., %llu, %l...
2009 Jul 21
1
[PATCH 1/1] ocfs2: adds mlogs to aops.c -V2
...;i_sb);
loff_t newsize = pos + len;
+ mlog_entry("(%llu, %lld, %u, 0x%p)\n",
+ (unsigned long long)OCFS2_I(inode)->ip_blkno, pos, len, wc);
+
if (ocfs2_sparse_alloc(osb))
- return 0;
+ goto bail;
if (newsize <= i_size_read(inode))
- return 0;
+ goto bail;
ret = ocfs2_extend_no_holes(inode, newsize, newsize - len);
if (ret)
mlog_errno(ret);
+bail:
+ mlog_exit(ret);
return ret;
}
@@ -1655,6 +1786,10 @@ int ocfs2_write_begin_nolock(struct address_space *mapping,
handle_t *handle;
struct ocfs2_extent_tree et;
+ mlog_entry("(0x%p, %lld, %u, %u, .., %llu, %l...
2008 Dec 22
56
[git patches] Ocfs2 patches for merge window, batch 2/3
Hi,
This is the second batch of Ocfs2 patches intended for the merge window. The
1st batch were sent out previously:
http://lkml.org/lkml/2008/12/19/280
The bulk of this set is comprised of Jan Kara's patches to add quota support
to Ocfs2. Many of the quota patches are to generic code, which I carried to
make merging of the Ocfs2 support easier. All of the non-ocfs2 patches
should have