Displaying 20 results from an estimated 300 matches similar to: "[patch] unlock i_mutex in error path"
2009 Apr 07
0
[PATCH 1/1] OCFS2: use i_size_read() instead of direct accessing inode->i_size
use i_size_read() instead of accessing inode->i_size directly.
Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com>
--
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index b2c52b3..4491851 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -1920,7 +1920,7 @@ int ocfs2_write_end_nolock(struct address_space *mapping,
out_write_size:
pos += copied;
- if (pos >
2009 Jul 30
2
[PATCH] ocfs2/quota: Release lock for error in ocfs2_quota_write.
ocfs2_quota_write needs to release the lock if it fails to
read quota block. So use "goto out" instead of "return err".
Cc: Jan Kara <jack at suse.cz>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
fs/ocfs2/quota_global.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
index
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 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 Jun 28
1
[PATCH 59/62] fs/ocfs2/quota_global.c: Remove unnecessary semicolons
Signed-off-by: Joe Perches <joe at perches.com>
---
fs/ocfs2/quota_global.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
index edfa60c..05ed815 100644
--- a/fs/ocfs2/quota_global.c
+++ b/fs/ocfs2/quota_global.c
@@ -143,7 +143,7 @@ static int ocfs2_get_quota_block(struct inode *inode, int block,
err = -EIO;
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
2009 Aug 11
0
[GIT PULL] ocfs2 fixes for 2.6.31-rc5
Linus, et al,
Here are all the outstanding ocfs2 fixes for 2.6.31. The major
fixes are for aio write and for non-sparse file extending. There are
also a couple of b-tree fixes as well as some for quotas.
Please pull.
Joel
The following changes since commit 44b572809581d5a10dbe35aa6bf689f32b9c5ad6:
Yinghai Lu (1):
x86: don't clear nodes_states[N_NORMAL_MEMORY] when numa is not
2009 Aug 03
1
[PATCH] ocfs2: Handle quota file corruption more gracefully
ocfs2_read_virt_blocks() does BUG when we try to read a block from a file
beyond its end. Since this can happen due to filesystem corruption, it
is not really an appropriate answer. Make ocfs2_read_quota_block() check
the condition and handle it by calling ocfs2_error() and returning EIO.
Reported-by: Tristan Ye <tristan.ye at oracle.com>
Signed-off-by: Jan Kara <jack at suse.cz>
---
2008 Oct 20
0
[PATCH] ocfs2: Implement quota syncing thread
This patch implements functions and timer setup which handles periodic
syncing of locally cached quota information to global quota file.
Signed-off-by: Jan Kara <jack at suse.cz>
---
fs/ocfs2/quota.h | 3 ++
fs/ocfs2/quota_global.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++
fs/ocfs2/quota_local.c | 4 +++
3 files changed, 73 insertions(+), 0 deletions(-)
diff
2012 Jun 25
4
fix mlog_errno in ocfs2_global_read_info
Hi, All,
When mount ocfs2 with option usrquota and grpquota, we will see below
message:
(mount.ocfs2,9434,1):ocfs2_global_read_info:403 ERROR: status = 24
(mount.ocfs2,9434,3):ocfs2_global_read_info:403 ERROR: status = 24
But actually this should not be a error.
In ocfs2_global_read_info, if read_quota() succeed, status is the size
of the struct ocfs2_global_disk_dqinfo, only when it is not
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 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
2004 Mar 18
0
mark_buffer_dirty() reports buffer_head is not uptodate in JBDroutine journal_create() in kernel 2.6.
Hi Stephen,
I found a bug in JBD routine journal_create() in kernel 2.6, when I debug
the OCFS v2 driver. mark_buffer_dirty() reports buffer_head is not
uptodate. See following bug description.
-------------------------------------------------------
OS: Linux Kernel 2.6.1
Plarform: IA32
Steps:
1. Build the ocfs v2 driver under kernel 2.6.
2. insert ocfs2.ko into kernel 2.6.
3. mkfs.ocfs2 -F
2003 Jan 18
2
[patch 2.4] Fix ext3 scheduling storm and lockup
This patch fixes an inefficiency and potential system lockup in the 2.4
kernel's ext3 filesystem. The problem has been present since 2.4.20-pre5.
This patch is applicable to 2.4.20. A copy is at
http://www.zip.com.au/~akpm/linux/patches/2.4/2.4.20/ext3-scheduling-storm.patch
Anyone who is using tasks which have realtime scheduling policy on ext3
systems should apply this change.
2009 Feb 03
1
[git patches] Ocfs2 and Configfs fixes
Please pull from 'upstream-linus' branch of
git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git upstream-linus
to receive the following updates:
fs/configfs/dir.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++
fs/ocfs2/alloc.c | 3 ++
fs/ocfs2/dcache.c | 42 +++++++++++++++++++++++++++++++--
fs/ocfs2/dcache.h | 9 ++++++-
2009 Jun 16
0
[GIT PULL] ocfs2 updates for 2.6.31
Linus, et al,
Here are the ocfs2 updates for 2.6.31. It's a quiet cycle,
almost completely composed of fixes. There is a nice performance
improvement from Hisashi Hifumi for fdatasync. Please pull.
Joel
The following changes since commit b4348f32dae3cb6eb4bc21c7ed8f76c0b11e9d6a:
Linus Torvalds (1):
Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs
are available in
2010 Jul 16
0
[GIT PULL] Important ocfs2 fixes for 2.6.35
Linus, et al,
Here are the major ocfs2 fixes for 2.6.35-rc5. A few more
fixes have trickled in, but as these major fixes have been tested, I
didn't want to delay them any longer.
The first major fix you know about: the tail zeroing fix when
extending files. It's been run under heavy testing for a week now, and
we're quite happy. We should also no longer be touching any pages past
2009 Jun 09
4
[PATCH] btrfs: fix write_dev_supers
Hi.
I got following BUG trace.
This is violation of BUG_ON(!buffer_locked(bh)) check on submit_bh() function.
In write_dev_supers(), if wait parameter is set and buffer_uptodate() check
is negative, submit_bh() is executed and hit above BUG_ON.
So I fixed this issue.
Thanks.
Jun 9 00:41:32 dl580 kernel: ------------[ cut here ]------------
Jun 9 00:41:32 dl580 kernel: kernel BUG at
2010 May 20
0
[GIT PULL] ocfs2 updates for 2.6.35
Linus et al,
Here are the ocfs2 updates for 2.6.35. There are two major
changes. Mark added allocation reservations to our node-local
allocators. This gets us much more contiguousness when many processes
are growing files in parallel. On the other end of contiguousness,
ocfs2 has had a major limitation since the beginning. When ocfs2 needs
new inodes, it has always grown its metadata
2009 Jul 06
1
[Patch v3] btrfs: use file_remove_suid() after i_mutex is held
V2 -> V3:
set ''err'' to -ENOMEM when kmalloc() fails. Thanks to Tao.
V1 -> V2:
Move kmalloc() before mutex_lock(), suggested by Arjan.
file_remove_suid() should be called with i_mutex held,
file_update_time() too. So move them after mutex_lock().
Plus, check the return value of kmalloc().
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Arjan