diff options
author | Tiger Yang <tiger.yang@oracle.com> | 2009-03-05 03:06:15 (GMT) |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-03-12 23:45:46 (GMT) |
commit | d9ae49d6e2b1ac9166e58ae3c9345135604beaa6 (patch) | |
tree | e6d5bbc8160a8c810534dc699e79f2b2a7792000 /fs/ocfs2/namei.c | |
parent | 6c9fd1dc0a597e575617a7de7086c8a3efa8f524 (diff) | |
download | linux-d9ae49d6e2b1ac9166e58ae3c9345135604beaa6.tar.xz |
ocfs2: tweak to get the maximum inline data size with xattr
Replace max_inline_data with max_inline_data_with_xattr
to ensure it correct when xattr inlined.
Signed-off-by: Tiger Yang <tiger.yang@oracle.com>
Acked-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r-- | fs/ocfs2/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index 084aba8..4b11762 100644 --- a/fs/ocfs2/namei.c +++ b/fs/ocfs2/namei.c @@ -532,7 +532,8 @@ static int ocfs2_mknod_locked(struct ocfs2_super *osb, fe->i_dyn_features = cpu_to_le16(feat | OCFS2_INLINE_DATA_FL); - fe->id2.i_data.id_count = cpu_to_le16(ocfs2_max_inline_data(osb->sb)); + fe->id2.i_data.id_count = cpu_to_le16( + ocfs2_max_inline_data_with_xattr(osb->sb, fe)); } else { fel = &fe->id2.i_list; fel->l_tree_depth = 0; |