Commit fc5023ea authored by J. R. Okajima's avatar J. R. Okajima
Browse files

Merge branch 'aufs5.x-rcN/30stdalone' into aufs5.x-rcN/39public

parents d1c7ba85 10ba7e13
...@@ -354,9 +354,6 @@ void __init au_dy_init(void) ...@@ -354,9 +354,6 @@ void __init au_dy_init(void)
{ {
int i; int i;
/* make sure that 'struct au_dykey *' can be any type */
BUILD_BUG_ON(offsetof(struct au_dyaop, da_key));
for (i = 0; i < AuDyLast; i++) for (i = 0; i < AuDyLast; i++)
INIT_HLIST_BL_HEAD(dynop + i); INIT_HLIST_BL_HEAD(dynop + i);
} }
......
...@@ -57,6 +57,8 @@ struct au_dyaop { ...@@ -57,6 +57,8 @@ struct au_dyaop {
struct au_dykey da_key; struct au_dykey da_key;
struct address_space_operations da_op; /* not const */ struct address_space_operations da_op; /* not const */
}; };
/* make sure that 'struct au_dykey *' can be any type */
static_assert(!offsetof(struct au_dyaop, da_key));
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
......
...@@ -585,7 +585,7 @@ int au_hnotify(struct inode *h_dir, struct au_hnotify *hnotify, u32 mask, ...@@ -585,7 +585,7 @@ int au_hnotify(struct inode *h_dir, struct au_hnotify *hnotify, u32 mask,
flags[AuHn_CHILD] = AuHnJob_ISDIR; flags[AuHn_CHILD] = AuHnJob_ISDIR;
au_fset_hnjob(flags[AuHn_PARENT], DIRENT); au_fset_hnjob(flags[AuHn_PARENT], DIRENT);
au_fset_hnjob(flags[AuHn_CHILD], GEN); au_fset_hnjob(flags[AuHn_CHILD], GEN);
switch (mask & FS_EVENTS_POSS_ON_CHILD) { switch (mask & ALL_FSNOTIFY_DIRENT_EVENTS) {
case FS_MOVED_FROM: case FS_MOVED_FROM:
case FS_MOVED_TO: case FS_MOVED_TO:
au_fset_hnjob(flags[AuHn_CHILD], XINO0); au_fset_hnjob(flags[AuHn_CHILD], XINO0);
......
...@@ -129,7 +129,7 @@ int au_loopback_init(void) ...@@ -129,7 +129,7 @@ int au_loopback_init(void)
int err; int err;
struct super_block *sb __maybe_unused; struct super_block *sb __maybe_unused;
BUILD_BUG_ON(sizeof(sb->s_magic) != sizeof(unsigned long)); BUILD_BUG_ON(sizeof(sb->s_magic) != sizeof(*au_warn_loopback_array));
err = 0; err = 0;
au_warn_loopback_array = kcalloc(au_warn_loopback_step, au_warn_loopback_array = kcalloc(au_warn_loopback_step,
......
...@@ -438,7 +438,7 @@ static inline void dbgaufs_si_null(struct au_sbinfo *sbinfo) ...@@ -438,7 +438,7 @@ static inline void dbgaufs_si_null(struct au_sbinfo *sbinfo)
/* current->atomic_flags */ /* current->atomic_flags */
/* this value should never corrupt the ones defined in linux/sched.h */ /* this value should never corrupt the ones defined in linux/sched.h */
#define PFA_AUFS 7 #define PFA_AUFS 0x10
TASK_PFA_TEST(AUFS, test_aufs) /* task_test_aufs */ TASK_PFA_TEST(AUFS, test_aufs) /* task_test_aufs */
TASK_PFA_SET(AUFS, aufs) /* task_set_aufs */ TASK_PFA_SET(AUFS, aufs) /* task_set_aufs */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment