search for: d_alloc_anon

Displaying 6 results from an estimated 6 matches for "d_alloc_anon".

2010 Jun 12
1
Problems building ocfs2-1.4.7 against Centos 5.3 and 2.6.30 kernel
...ach_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_anon? /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:139: warning: assignment makes pointer from integer without a cast /root/src/ocfs2-1.4.7/fs/ocfs2/export.c: In function ?ocfs2_get_parent?: /root/src/ocfs2-1.4.7/fs/ocfs2/export.c:189: warning: assignment makes pointer from integer without a cast /root/src/o...
2008 Sep 22
0
[PATCH 1/1] OCFS2: add validation in ocfs2_get_dentry()
...(-ESTALE); } + oi = OCFS2_I(inode); + + spin_lock(&oi->ip_lock); + if ((OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) + || !inode->i_nlink) { + spin_unlock(&oi->ip_lock); + iput(inode); + return ERR_PTR(-ESTALE); + } + spin_unlock(&oi->ip_lock); + result = d_alloc_anon(inode); if (!result) {
2003 Aug 06
2
Re: ext3 badness in 2.6.0-test2
...xb0 Aug 6 15:22:05 adams kernel: [<c01a6bcf>] ext3_prepare_write+0x5f/0x110 Aug 6 15:22:05 adams kernel: [<c01a65b0>] ext3_get_block+0x0/0xb0 Aug 6 15:22:05 adams kernel: [<c013f0e2>] generic_file_aio_write_nolock+0x412/0xbd0 Aug 6 15:22:05 adams kernel: [<c017c0ed>] d_alloc_anon+0x2d/0x240 Aug 6 15:22:05 adams kernel: [<c034bf0f>] sock_alloc_send_skb+0x2f/0x40 Aug 6 15:22:05 adams kernel: [<c0366ceb>] ip_append_data+0x6db/0x780 Aug 6 15:22:05 adams kernel: [<c013f91e>] generic_file_write_nolock+0x7e/0xa0 Aug 6 15:22:05 adams kernel: [<c038867a&...
2009 Mar 06
2
[PATCH 1/1] OCFS2: anti stale inode for nfs (for 1.4git)
...goto bail; + } + +check_gen: if (handle->ih_generation != inode->i_generation) { iput(inode); - return ERR_PTR(-ESTALE); + mlog(0, "stale inode ino: %llu generation: %u\n", blkno, + handle->ih_generation); + result = ERR_PTR(-ESTALE); + goto bail; } result = d_alloc_anon(inode); - if (!result) { iput(inode); - mlog_errno(-ENOMEM); - return ERR_PTR(-ENOMEM); + result = ERR_PTR(-ENOMEM); + goto bail; } + result->d_op = &ocfs2_dentry_ops; +bail: mlog_exit_ptr(result); return result; } diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c index ee...
2009 Feb 17
1
[PATCH 1/1] OCFS2: anti stale inode for nfs (V3)
...goto bail; + } + +check_gen: if (handle->ih_generation != inode->i_generation) { iput(inode); - return ERR_PTR(-ESTALE); + mlog(0, "stale inode ino: %llu generation: %u\n", blkno, + handle->ih_generation); + result = ERR_PTR(-ESTALE); + goto bail; } result = d_alloc_anon(inode); if (!result) { iput(inode); - mlog_errno(-ENOMEM); - return ERR_PTR(-ENOMEM); + result = ERR_PTR(-ENOMEM); + goto bail; } result->d_op = &ocfs2_dentry_ops; +bail: mlog_exit_ptr(result); return result; } Index: fs/ocfs2/inode.c ===================================...
2008 Jul 20
26
[PATCH] NFS support for btrfs - v2
...KEY); + key.offset = 0; + + root = btrfs_lookup_fs_root(btrfs_sb(sb)->fs_info, root_objectid); + inode = btrfs_iget(sb, &key, root, NULL); + if (IS_ERR(inode)) + return (void *)inode; + + if(generation != inode->i_generation) { + iput(inode); + return ERR_PTR(-ESTALE); + } + + result = d_alloc_anon(inode); + if(!result) { + iput(inode); + return ERR_PTR(-ENOMEM); + } + + return result; +} + +static struct dentry *btrfs_fh_to_parent(struct super_block *sb, + struct fid *fh, int fh_len, int fh_type) +{ + struct btrfs_fid *fid = (struct btrfs_fid *) fh; + u64 objectid, root_objectid; + u32 ge...