As we set directory inode starting with inline data, there is no place in inode for ACLs or security extended attributes entries. In this case, we have to reserve xattr block at the begining of mknod.
Signed-off-by: Tiger Yang <[email protected]> --- fs/ocfs2/xattr.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 4ddd788..053ae3d 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -549,6 +549,7 @@ int ocfs2_calc_xattr_init(struct inode *dir, * for them is ok. */ if (dir->i_sb->s_blocksize == OCFS2_MIN_BLOCKSIZE || + (S_ISDIR(mode) && ocfs2_supports_inline_data(osb)) || (s_size + a_size) > OCFS2_XATTR_FREE_IN_IBODY) { ret = ocfs2_reserve_new_metadata_blocks(osb, 1, xattr_ac); if (ret) { -- 1.5.4.1 _______________________________________________ Ocfs2-devel mailing list [email protected] http://oss.oracle.com/mailman/listinfo/ocfs2-devel
