projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bccb9da
)
ocfs2: Fix comparison in ocfs2_size_fits_inline_data()
author
Mark Fasheh
<mark.fasheh@oracle.com>
Tue, 20 Nov 2007 19:48:41 +0000
(11:48 -0800)
committer
Mark Fasheh
<mark.fasheh@oracle.com>
Wed, 28 Nov 2007 00:47:03 +0000
(16:47 -0800)
This was causing us to prematurely push out inline data by one byte.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/aops.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/aops.c
b/fs/ocfs2/aops.c
index 556e34ccb005f06fb52b611066a0c4db6e10a071..56f7790cad46d6bb0ca7c7805e62df8561d7dbb0 100644
(file)
--- 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;
}