Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101080
b: refs/heads/master
c: f795e14
h: refs/heads/master
v: v3
  • Loading branch information
Li Zefan authored and Theodore Ts'o committed Jul 11, 2008
1 parent e655ca9 commit 2e66664
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ad72ca60b6be3c79f90a81ce5883e12a2c6e667
refs/heads/master: f795e1407343ebe6597653f4a6a7f770676e84c5
19 changes: 10 additions & 9 deletions trunk/fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,16 @@ static struct buffer_head * ext4_dx_find_entry(struct dentry *dentry,
static int ext4_dx_add_entry(handle_t *handle, struct dentry *dentry,
struct inode *inode);

/*
* p is at least 6 bytes before the end of page
*/
static inline struct ext4_dir_entry_2 *
ext4_next_entry(struct ext4_dir_entry_2 *p)
{
return (struct ext4_dir_entry_2 *)((char *)p +
ext4_rec_len_from_disk(p->rec_len));
}

/*
* Future: use high four bits of block for coalesce-on-delete flags
* Mask them off for now.
Expand Down Expand Up @@ -553,15 +563,6 @@ static int ext4_htree_next_block(struct inode *dir, __u32 hash,
}


/*
* p is at least 6 bytes before the end of page
*/
static inline struct ext4_dir_entry_2 *ext4_next_entry(struct ext4_dir_entry_2 *p)
{
return (struct ext4_dir_entry_2 *)((char *)p +
ext4_rec_len_from_disk(p->rec_len));
}

/*
* This function fills a red-black tree with information from a
* directory block. It returns the number directory entries loaded
Expand Down

0 comments on commit 2e66664

Please sign in to comment.