mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
ocfs2 endianness fixes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
f6c2fb5ccf
commit
9d8df6aa9b
1 changed files with 2 additions and 2 deletions
|
@ -2788,7 +2788,7 @@ static int ocfs2_merge_rec_right(struct inode *inode,
|
||||||
BUG_ON(index >= le16_to_cpu(el->l_next_free_rec));
|
BUG_ON(index >= le16_to_cpu(el->l_next_free_rec));
|
||||||
left_rec = &el->l_recs[index];
|
left_rec = &el->l_recs[index];
|
||||||
|
|
||||||
if (index == le16_to_cpu(el->l_next_free_rec - 1) &&
|
if (index == le16_to_cpu(el->l_next_free_rec) - 1 &&
|
||||||
le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) {
|
le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) {
|
||||||
/* we meet with a cross extent block merge. */
|
/* we meet with a cross extent block merge. */
|
||||||
ret = ocfs2_get_right_path(inode, left_path, &right_path);
|
ret = ocfs2_get_right_path(inode, left_path, &right_path);
|
||||||
|
@ -2802,7 +2802,7 @@ static int ocfs2_merge_rec_right(struct inode *inode,
|
||||||
BUG_ON(next_free <= 0);
|
BUG_ON(next_free <= 0);
|
||||||
right_rec = &right_el->l_recs[0];
|
right_rec = &right_el->l_recs[0];
|
||||||
if (ocfs2_is_empty_extent(right_rec)) {
|
if (ocfs2_is_empty_extent(right_rec)) {
|
||||||
BUG_ON(le16_to_cpu(next_free) <= 1);
|
BUG_ON(next_free <= 1);
|
||||||
right_rec = &right_el->l_recs[1];
|
right_rec = &right_el->l_recs[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue