search for: ocfs2_dir_foreach_blk

Displaying 4 results from an estimated 4 matches for "ocfs2_dir_foreach_blk".

2007 Sep 19
1
[PATCH 05/15] ocfs2: Pass raw u64 to filldir
filldir_t can take this, so don't turn de->inode into a 32 bit value. Right now this doesn't make a difference since no ocfs2 inodes overflow that, but it could be a nasty surprise later on if some kernel code is calling ocfs2_dir_foreach_blk() and expecting real inode numbers back... Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com> --- fs/ocfs2/dir.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/dir.c b/fs/ocfs2/dir.c index d1f92fd..dbfa6f6 100644 --- a/fs/ocfs2/dir.c +++ b/fs/ocfs2/dir.c...
2010 Jun 12
1
Problems building ocfs2-1.4.7 against Centos 5.3 and 2.6.30 kernel
...s.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 [M] /root/src/ocfs2-1.4.7/fs/ocfs2/dlmglue.o CC [M] /root/src/ocfs2-1.4.7/fs/ocfs2/export.o /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?ocfs2_get_dentry?: /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:139: error: implicit declaration of function ?d_alloc...
2007 Sep 19
1
[PATCH 06/15] ocfs2: Remove open coded readdir()
...be called from inside other kernel functions, + * so we fake some arguments. + */ +int ocfs2_dir_foreach(struct inode *inode, loff_t *f_pos, void *priv, + filldir_t filldir) +{ + int ret = 0; + unsigned long version = inode->i_version; + + while (*f_pos < i_size_read(inode)) { + ret = ocfs2_dir_foreach_blk(inode, &version, f_pos, priv, + filldir); + if (ret) + break; + } + + return 0; +} + +/* * ocfs2_readdir() * */ diff --git a/fs/ocfs2/dir.h b/fs/ocfs2/dir.h index 7bf9c0a..075d0e9 100644 --- a/fs/ocfs2/dir.h +++ b/fs/ocfs2/dir.h @@ -62,6 +62,8 @@ int ocfs2_find_files_on_disk(co...
2011 Aug 29
1
with heavy VM IO, clocksource causes random dom0 reboots
...28:53 vm2 kernel: [53400.204226] [<ffffffffa04db58c>] ? ocfs2_read_inode_block_full+0x37/0x51 [ocfs2] Aug 29 06:28:53 vm2 kernel: [53400.204235] [<ffffffffa04d135b>] ? ocfs2_inode_lock_atime+0x73/0x23f [ocfs2] Aug 29 06:28:53 vm2 kernel: [53400.204243] [<ffffffffa04c8564>] ? ocfs2_dir_foreach_blk+0x48/0x435 [ocfs2] Aug 29 06:28:53 vm2 kernel: [53400.204248] [<ffffffff810fc34c>] ? filldir+0x0/0xb7 Aug 29 06:28:53 vm2 kernel: [53400.204257] [<ffffffffa04d13d5>] ? ocfs2_inode_lock_atime+0xed/0x23f [ocfs2] Aug 29 06:28:53 vm2 kernel: [53400.204261] [<ffffffff810fc34c>] ?...