Skip to content

Commit 0bc77ec

Browse files
committed
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2
* 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2: ocfs2: Add JBD2 compat feature bit. ocfs2: Always update xattr search when creating bucket.
2 parents 3797455 + a977218 commit 0bc77ec

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

fs/ocfs2/ocfs2_fs.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@
8686
#define OCFS2_CLEAR_INCOMPAT_FEATURE(sb,mask) \
8787
OCFS2_SB(sb)->s_feature_incompat &= ~(mask)
8888

89-
#define OCFS2_FEATURE_COMPAT_SUPP OCFS2_FEATURE_COMPAT_BACKUP_SB
89+
#define OCFS2_FEATURE_COMPAT_SUPP (OCFS2_FEATURE_COMPAT_BACKUP_SB \
90+
| OCFS2_FEATURE_COMPAT_JBD2_SB)
9091
#define OCFS2_FEATURE_INCOMPAT_SUPP (OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT \
9192
| OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC \
9293
| OCFS2_FEATURE_INCOMPAT_INLINE_DATA \
@@ -152,6 +153,11 @@
152153
*/
153154
#define OCFS2_FEATURE_COMPAT_BACKUP_SB 0x0001
154155

156+
/*
157+
* The filesystem will correctly handle journal feature bits.
158+
*/
159+
#define OCFS2_FEATURE_COMPAT_JBD2_SB 0x0002
160+
155161
/*
156162
* Unwritten extents support.
157163
*/

fs/ocfs2/xattr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,9 +2645,9 @@ static int ocfs2_xattr_update_xattr_search(struct inode *inode,
26452645
return ret;
26462646
}
26472647

2648-
i = xs->here - old_xh->xh_entries;
2649-
xs->here = &xs->header->xh_entries[i];
26502648
}
2649+
i = xs->here - old_xh->xh_entries;
2650+
xs->here = &xs->header->xh_entries[i];
26512651
}
26522652

26532653
return ret;

0 commit comments

Comments
 (0)