Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112966
b: refs/heads/master
c: 00dc417
h: refs/heads/master
v: v3
  • Loading branch information
Mark Fasheh authored and Theodore Ts'o committed Oct 3, 2008
1 parent ff37b02 commit e53ab7e
Show file tree
Hide file tree
Showing 6 changed files with 307 additions and 63 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: c4b929b85bdb64afacbbf6453b1f2bf7e14c9e89
refs/heads/master: 00dc417fa3e763345b34ccb6034d72de76eea0a1
9 changes: 0 additions & 9 deletions trunk/fs/ocfs2/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,15 +989,6 @@ static int ocfs2_grow_tree(struct inode *inode, handle_t *handle,
return ret;
}

/*
* This is only valid for leaf nodes, which are the only ones that can
* have empty extents anyway.
*/
static inline int ocfs2_is_empty_extent(struct ocfs2_extent_rec *rec)
{
return !rec->e_leaf_clusters;
}

/*
* This function will discard the rightmost extent record.
*/
Expand Down
9 changes: 9 additions & 0 deletions trunk/fs/ocfs2/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,13 @@ static inline unsigned int ocfs2_rec_clusters(struct ocfs2_extent_list *el,
return le16_to_cpu(rec->e_leaf_clusters);
}

/*
* This is only valid for leaf nodes, which are the only ones that can
* have empty extents anyway.
*/
static inline int ocfs2_is_empty_extent(struct ocfs2_extent_rec *rec)
{
return !rec->e_leaf_clusters;
}

#endif /* OCFS2_ALLOC_H */
Loading

0 comments on commit e53ab7e

Please sign in to comment.