search for: buffer_head_io

Displaying 20 results from an estimated 30 matches for "buffer_head_io".

2009 Apr 17
1
[PATCH 1/1] OCFS2: Log -EIO errors just when hit them.
This patch logs(ERROR) -EIO errors just when they are hitted. Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com> -- diff -up ./linux-2.6.29.y.build/fs/ocfs2/buffer_head_io.c.orig ./linux-2.6.29.y.build/fs/ocfs2/buffer_head_io.c --- ./linux-2.6.29.y.build/fs/ocfs2/buffer_head_io.c.orig 2009-04-17 13:55:52.000000000 +0800 +++ ./linux-2.6.29.y.build/fs/ocfs2/buffer_head_io.c 2009-04-17 14:19:54.000000000 +0800 @@ -91,6 +91,8 @@ int ocfs2_write_block(struct ocfs2_super...
2004 Jun 06
1
[PATCH] use sb_getblk
...@@ ((node_num + OCFS_VOLCFG_HDR_SECTORS) * osb->sect_size); blocknum = offset >> sb->s_blocksize_bits; - bh = getblk(OCFS_GET_BLOCKDEV(sb), blocknum, sb->s_blocksize); + bh = sb_getblk(sb, blocknum); if (bh == NULL) { status = -EIO; LOG_ERROR_STATUS(status); Index: src/buffer_head_io.c =================================================================== --- src/buffer_head_io.c (revision 1014) +++ src/buffer_head_io.c (working copy) @@ -64,7 +64,6 @@ int status = 0; int i; struct super_block *sb; - ocfs_blockdev dev; struct buffer_head *bh; #ifdef OCFS_DBG_TIMING @@ -...
2009 Mar 20
1
[stable] Linux 2.6.28.8 (ocfs2 build failure)
...; fs/ocfs2/journal.h:451: warning: passing argument 2 of 'jbd2_journal_begin_ordered_truncate' makes integer from pointer without a cast > >> fs/ocfs2/journal.h:451: error: too many arguments to function 'jbd2_journal_begin_ordered_truncate' > >> CC [M] fs/ocfs2/buffer_head_io.o > >> In file included from fs/ocfs2/aops.c:42: > >> fs/ocfs2/journal.h: In function 'ocfs2_begin_ordered_truncate': > >> fs/ocfs2/journal.h:451: warning: passing argument 1 of 'jbd2_journal_begin_ordered_truncate' from incompatible pointer type > >...
2010 Jun 12
1
Problems building ocfs2-1.4.7 against Centos 5.3 and 2.6.30 kernel
...s/linux-2.6.30' CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/compat_should_remove_suid.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/compat_generic_segment_checks.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/alloc.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/aops.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/buffer_head_io.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/dcache.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/dir.o /root/src/ocfs2-1.4.7/fs/ocfs2/dir.c: In function ?ocfs2_readdir?: /root/src/ocfs2-1.4.7/fs/ocfs2/dir.c:865: warning: passing argument 2 of ?ocfs2_dir_foreach_blk? from incompatible pointer type CC...
2008 Jan 25
0
[git patches] ocfs2 and configfs updates
...+ fs/Kconfig | 14 +- fs/configfs/dir.c | 5 +- fs/configfs/file.c | 2 +- fs/ocfs2/Makefile | 5 +- fs/ocfs2/alloc.c | 8 +- fs/ocfs2/aops.c | 137 ++++--- fs/ocfs2/buffer_head_io.c | 65 +++- fs/ocfs2/buffer_head_io.h | 2 + fs/ocfs2/cluster/heartbeat.h | 2 +- fs/ocfs2/cluster/tcp.h | 4 +- fs/ocfs2/cluster/tcp_internal.h | 8 +- fs/ocfs2/cluster/ver.c | 2 +- fs/ocfs2/dcache.c |...
2009 Feb 28
2
Patch to move ocfs2_slot_info to slot_map.h
Next 3 patches does the following 1) movies ocfs2_slot_info struct from slot_map.c to slot_map.h 2) patch to recover orphans during mount even if the journal is clean 3) patch to recovery orphans in offline slots
2009 Apr 06
0
[PATCH] ocfs2: Use nd_set_link().
...ocfs2/symlink.c +++ b/fs/ocfs2/symlink.c @@ -39,6 +39,7 @@ #include <linux/slab.h> #include <linux/pagemap.h> #include <linux/utsname.h> +#include <linux/namei.h> #define MLOG_MASK_PREFIX ML_NAMEI #include <cluster/masklog.h> @@ -54,26 +55,6 @@ #include "buffer_head_io.h" -static char *ocfs2_page_getlink(struct dentry * dentry, - struct page **ppage); -static char *ocfs2_fast_symlink_getlink(struct inode *inode, - struct buffer_head **bh); - -/* get the link contents into pagecache */ -static char *ocfs2_page_getlink(struct dentry * dentry, - str...
2009 Feb 13
44
[PATCH 0/40] ocfs2: Detach ocfs2 metadata I/O from struct inode
...needs struct inode. ocfs2: __ocfs2_mark_extent_written() doesn't need struct inode. ocfs2: Pass ocfs2_caching_info into ocfs_init_*_extent_tree(). alloc.c | 896 ++++++++++++++++++++++++++++--------------------------- alloc.h | 33 -- aops.c | 10 buffer_head_io.c | 47 +- buffer_head_io.h | 8 dir.c | 38 +- dlmglue.c | 4 extent_map.c | 14 file.c | 21 - inode.c | 80 ++++ inode.h | 20 - journal.c | 53 +-- journal.h | 70 ++-- localalloc.c | 12 namei.c...
2009 Feb 26
3
[PATCH 0/3] ocfs2-1.4: Backport inode alloc from mainline.
Hi all, this patch set are the backport of inode alloc improvement from mainline to ocfs2-1.4. the patches are almost the same excpet one thing: Joel has added JBD2 support to ocfs2, so he has added "max_blocks" to alloc_context and add a new function "ocfs2_reserve_clusters_with_limit". We don't have that in ocfs2-1.4. So there are some great difference in patch 2.
2009 Mar 03
3
[PATCH 1/1] OCFS2: anti stale inode for nfs (V6)
...++++++++++++++++++ suballoc.h | 2 9 files changed, 298 insertions(+), 9 deletions(-) Index: export.c =================================================================== --- export.c (revision 139) +++ export.c (working copy) @@ -38,6 +38,7 @@ #include "inode.h" #include "buffer_head_io.h" +#include "suballoc.h" struct ocfs2_inode_handle { @@ -49,29 +50,89 @@ static struct dentry *ocfs2_get_dentry(s struct ocfs2_inode_handle *handle) { struct inode *inode; + struct ocfs2_super *osb = OCFS2_SB(sb); + u64 blkno = handle->ih_blkno; + int status, set; str...
2008 Oct 17
3
[PATCH 0/3] ocfs2: add security EA and ACL support v3
Hi, These three patches fix the problems in the version two. And them base on the Tao's patches: ocfs2/xattr: xattr improvement The first patch fix some problem in xattr code. The second patch add security EA support. The third patch add ACL support. Best regards, tiger
2009 Feb 24
2
[PATCH 1/3] ocfs2: Optimize inode allocation by remembering last group.
In ocfs2, the inode block search looks for the "emptiest" inode group to allocate from. So if an inode alloc file has many equally (or almost equally) empty groups, new inodes will tend to get spread out amongst them, which in turn can put them all over the disk. This is undesirable because directory operations on conceptually "nearby" inodes force a large number of seeks. So
2009 Mar 05
0
[PATCH 1/1] OCFS2: anti stale inode for nfs (V6.2)
...try_unlock(struct dentry *dentry, int ex); int ocfs2_file_lock(struct file *file, int ex, int trylock); diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c index 2f27b33..e28ff06 100644 --- a/fs/ocfs2/export.c +++ b/fs/ocfs2/export.c @@ -38,6 +38,7 @@ #include "inode.h" #include "buffer_head_io.h" +#include "suballoc.h" struct ocfs2_inode_handle { @@ -49,29 +50,88 @@ static struct dentry *ocfs2_get_dentry(struct super_block *sb, struct ocfs2_inode_handle *handle) { struct inode *inode; + struct ocfs2_super *osb = OCFS2_SB(sb); + u64 blkno = handle->ih_blkno; +...
2009 Mar 06
0
[PATCH 1/1] OCFS2: anti stale inode for nfs (V6.3)
...try_unlock(struct dentry *dentry, int ex); int ocfs2_file_lock(struct file *file, int ex, int trylock); diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c index 2f27b33..e28ff06 100644 --- a/fs/ocfs2/export.c +++ b/fs/ocfs2/export.c @@ -38,6 +38,7 @@ #include "inode.h" #include "buffer_head_io.h" +#include "suballoc.h" struct ocfs2_inode_handle { @@ -49,29 +50,88 @@ static struct dentry *ocfs2_get_dentry(struct super_block *sb, struct ocfs2_inode_handle *handle) { struct inode *inode; + struct ocfs2_super *osb = OCFS2_SB(sb); + u64 blkno = handle->ih_blkno; +...
2009 Feb 27
2
[PATCH 1/1] OCFS2: anti stale inode for nfs (V5)
...struct dentry *dentry, int ex); int ocfs2_file_lock(struct file *file, int ex, int trylock); Index: export.c =================================================================== --- export.c (revision 139) +++ export.c (working copy) @@ -38,6 +38,7 @@ #include "inode.h" #include "buffer_head_io.h" +#include "suballoc.h" struct ocfs2_inode_handle { @@ -49,29 +50,89 @@ static struct dentry *ocfs2_get_dentry(s struct ocfs2_inode_handle *handle) { struct inode *inode; + struct ocfs2_super *osb = OCFS2_SB(sb); + u64 blkno = handle->ih_blkno; + int status, set; str...
2009 Apr 30
42
[PATCH 00/39] ocfs2: Add reflink file support. V3
Hi all, So I have finally finished the v3 of reflink for ocfs2. The biggest change is that we support 64bit cluster offset now(Thank Mark and Joel for it). [View] http://oss.oracle.com/git/?p=tma/linux-2.6.git;a=shortlog;h=refcount [Pull] git://oss.oracle.com/git/tma/linux-2.6.git refcount The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.
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 06
2
[PATCH 1/1] OCFS2: anti stale inode for nfs (for 1.4git)
...try_unlock(struct dentry *dentry, int ex); int ocfs2_file_lock(struct file *file, int ex, int trylock); diff --git a/fs/ocfs2/export.c b/fs/ocfs2/export.c index 649f3c8..e2db2a0 100644 --- a/fs/ocfs2/export.c +++ b/fs/ocfs2/export.c @@ -38,6 +38,8 @@ #include "inode.h" #include "buffer_head_io.h" +#include "sysfile.h" +#include "suballoc.h" struct ocfs2_inode_handle { @@ -49,34 +51,91 @@ static struct dentry *ocfs2_get_dentry(struct super_block *sb, void *vobjp) { struct ocfs2_inode_handle *handle = vobjp; struct inode *inode; + struct ocfs2_super *osb =...
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
2008 Sep 11
4
Some more debug stuff
Added two debugfs entries... one to dump o2hb livenodes and the other to dump osb. $ cat /sys/kernel/debug/ocfs2/BC4F4550BEA74F92BDCC746AAD2EC0BF/fs_state Device => Id: 8,65 Uuid: BC4F4550BEA74F92BDCC746AAD2EC0BF Gen: 0xA02024F2 Label: sunil-xattr Volume => State: 1 Flags: 0x0 Sizes => Block: 4096 Cluster: 4096 Features => Compat: 0x1 Incompat: 0x350 ROcompat: 0x1