Skip to content

Commit

Permalink
ocfs2: Fix comparison in ocfs2_size_fits_inline_data()
Browse files Browse the repository at this point in the history
This was causing us to prematurely push out inline data by one byte.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Mark Fasheh committed Nov 28, 2007
1 parent bccb9da commit 0d8a4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size)
{
struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data;

if (new_size < le16_to_cpu(di->id2.i_data.id_count))
if (new_size <= le16_to_cpu(di->id2.i_data.id_count))
return 1;
return 0;
}
Expand Down

0 comments on commit 0d8a4e0

Please sign in to comment.