Displaying 2 results from an estimated 2 matches for "fill_inod".
Did you mean:
fill_inode
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...bool ext2_match_entry(const char *name, size_t len,
return !memcmp(name, de->d_name, len);
}
-
/*
* p is at least 6 bytes before the end of page
*/
@@ -144,7 +144,7 @@ ext2_get_inode(struct fs_info *fs, int inr)
(data + block_off * EXT2_SB(fs)->s_inode_size);
}
-static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode)
+static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode, uint32_t inr)
{
inode->mode = IFTODT(e_inode->i_mode);
inode->size = e_inode->i_size;
@@ -156,6 +156,7 @@ static void fill_inode(struct...
2012 Aug 02
2
[PATCH] add additional checks to ext2 loader
...e *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr)
struct inode *inode;
e_inode = ext2_get_inode(fs, inr);
- if (!(inode = alloc_inode(fs, inr, sizeof(struct ext2_pvt_inode))))
+ if (!e_inode || !(inode = alloc_inode(fs, inr, sizeof(struct ext2_pvt_inode))))
return NULL;
fill_inode(inode, e_inode);
--
1.7.5.4