Ocfs2 fixes
PATCH 1/1 Ocfs2 fixes
Please pull from 'upstream-linus' branch ofgit://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git upstream-linus
to receive the following updates:
fs/ocfs2/ocfs2_fs.h | 8 +++++++- fs/ocfs2/xattr.c | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-)
Joel Becker (1):
ocfs2: Add JBD2 compat feature bit.
Tao Ma (1):
ocfs2: Always update xattr search when creating bucket.
fs/ocfs2/ocfs2_fs.h +7 -1
@@ -86,7 +86,8 @@#define OCFS2_CLEAR_INCOMPAT_FEATURE (sb,mask) \ OCFS2_SB(sb)->s_feature_incompat &= ~(mask) -#define OCFS2_FEATURE_COMPAT_SUPP OCFS2_FEATURE_COMPAT_BACKUP_SB +#define OCFS2_FEATURE_COMPAT_SUPP (OCFS2_FEATURE_COMPAT_BACKUP_SB \ + | OCFS2_FEATURE_COMPAT_JBD2_SB)#define OCFS2_FEATURE_INCOMPAT_SUPP (OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT \ | OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC \ | OCFS2_FEATURE_INCOMPAT_INLINE_DATA \
@@ -153,6 +154,11 @@#define OCFS2_FEATURE_COMPAT_BACKUP_SB 0x0001/* +* The filesystem will correctly handle journal feature bits. +*/ +#define OCFS2_FEATURE_COMPAT_JBD2_SB 0x0002 + +/* * Unwritten extents support. */ #define OCFS2_FEATURE_RO_COMPAT_UNWRITTEN 0x0001
fs/ocfs2/xattr.c +2 -2
@@ -2645,9 +2645,9 @@ static int ocfs2_xattr_update_xattr_search(struct inode *inode,return ret; } - i = xs->here - old_xh->xh_entries; - xs->here = &xs->header->xh_entries[i]; } + i = xs->here - old_xh->xh_entries; + xs->here = &xs->header->xh_entries[i]; }return ret;