diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-17 18:01:23 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-17 18:01:23 -0500 |
| commit | 0bc77ecbe4f69ff8ead1d2abfe84ca9ba2a7bca4 (patch) | |
| tree | a9d2f83e9ee9b20720cd83432ce7bfeb44690b3d | |
| parent | 3797455fd269f6ae0bc228d5206b502830af03f4 (diff) | |
| parent | a97721894a6dc0f9ebfe1dbaa4bb112eaf399273 (diff) | |
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.
| -rw-r--r-- | fs/ocfs2/ocfs2_fs.h | 8 | ||||
| -rw-r--r-- | fs/ocfs2/xattr.c | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h index 5f180cf7abbd..5e0c0d0aef7d 100644 --- a/fs/ocfs2/ocfs2_fs.h +++ b/fs/ocfs2/ocfs2_fs.h | |||
| @@ -86,7 +86,8 @@ | |||
| 86 | #define OCFS2_CLEAR_INCOMPAT_FEATURE(sb,mask) \ | 86 | #define OCFS2_CLEAR_INCOMPAT_FEATURE(sb,mask) \ |
| 87 | OCFS2_SB(sb)->s_feature_incompat &= ~(mask) | 87 | OCFS2_SB(sb)->s_feature_incompat &= ~(mask) |
| 88 | 88 | ||
| 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) | ||
| 90 | #define OCFS2_FEATURE_INCOMPAT_SUPP (OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT \ | 91 | #define OCFS2_FEATURE_INCOMPAT_SUPP (OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT \ |
| 91 | | OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC \ | 92 | | OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC \ |
| 92 | | OCFS2_FEATURE_INCOMPAT_INLINE_DATA \ | 93 | | OCFS2_FEATURE_INCOMPAT_INLINE_DATA \ |
| @@ -153,6 +154,11 @@ | |||
| 153 | #define OCFS2_FEATURE_COMPAT_BACKUP_SB 0x0001 | 154 | #define OCFS2_FEATURE_COMPAT_BACKUP_SB 0x0001 |
| 154 | 155 | ||
| 155 | /* | 156 | /* |
| 157 | * The filesystem will correctly handle journal feature bits. | ||
| 158 | */ | ||
| 159 | #define OCFS2_FEATURE_COMPAT_JBD2_SB 0x0002 | ||
| 160 | |||
| 161 | /* | ||
| 156 | * Unwritten extents support. | 162 | * Unwritten extents support. |
| 157 | */ | 163 | */ |
| 158 | #define OCFS2_FEATURE_RO_COMPAT_UNWRITTEN 0x0001 | 164 | #define OCFS2_FEATURE_RO_COMPAT_UNWRITTEN 0x0001 |
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 054e2efb0b7e..74d7367ade13 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c | |||
| @@ -2645,9 +2645,9 @@ static int ocfs2_xattr_update_xattr_search(struct inode *inode, | |||
| 2645 | return ret; | 2645 | return ret; |
| 2646 | } | 2646 | } |
| 2647 | 2647 | ||
| 2648 | i = xs->here - old_xh->xh_entries; | ||
| 2649 | xs->here = &xs->header->xh_entries[i]; | ||
| 2650 | } | 2648 | } |
| 2649 | i = xs->here - old_xh->xh_entries; | ||
| 2650 | xs->here = &xs->header->xh_entries[i]; | ||
| 2651 | } | 2651 | } |
| 2652 | 2652 | ||
| 2653 | return ret; | 2653 | return ret; |
