aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-11-20 11:48:41 -0800
committerMark Fasheh <mark.fasheh@oracle.com>2007-11-27 16:47:03 -0800
commit0d8a4e0cd688ad0de6430ce3425c7849cfec1c2d (patch)
treef959aba36b640232ae9f885b8765fe0e463fde67 /fs/ocfs2
parentbccb9dad8949cd0df1d3d2188a1fdb4b1936d537 (diff)
downloadkernel_samsung_smdk4412-0d8a4e0cd688ad0de6430ce3425c7849cfec1c2d.zip
kernel_samsung_smdk4412-0d8a4e0cd688ad0de6430ce3425c7849cfec1c2d.tar.gz
kernel_samsung_smdk4412-0d8a4e0cd688ad0de6430ce3425c7849cfec1c2d.tar.bz2
ocfs2: Fix comparison in ocfs2_size_fits_inline_data()
This was causing us to prematurely push out inline data by one byte. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r--fs/ocfs2/aops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
index 556e34c..56f7790 100644
--- a/fs/ocfs2/aops.c
+++ b/fs/ocfs2/aops.c
@@ -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;
}