diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-12-26 16:00:37 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-12-26 16:00:37 -0300 |
commit | 35acfa0fc609f2a2cd95cef4a6a9c3a5c38f1778 (patch) | |
tree | 281fc9db2a40c54ee94dc88fc2bf8c119cfafc15 /fs/aufs/super.c | |
parent | f3a16ba6a1152b8966dcadc668af4cf00623c7b1 (diff) |
Add support for the exFAT file system, fix hangs on older intel hardware and update AUFSpck-4.3.3-gnu
Diffstat (limited to 'fs/aufs/super.c')
-rw-r--r-- | fs/aufs/super.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/fs/aufs/super.c b/fs/aufs/super.c index 3fe10d35d..98cfd64dd 100644 --- a/fs/aufs/super.c +++ b/fs/aufs/super.c @@ -456,16 +456,6 @@ static void aufs_put_super(struct super_block *sb) /* ---------------------------------------------------------------------- */ -void au_array_free(void *array) -{ - if (array) { - if (!is_vmalloc_addr(array)) - kfree(array); - else - vfree(array); - } -} - void *au_array_alloc(unsigned long long *hint, au_arraycb_t cb, struct super_block *sb, void *arg) { @@ -542,7 +532,7 @@ void au_iarray_free(struct inode **a, unsigned long long max) for (ull = 0; ull < max; ull++) iput(a[ull]); - au_array_free(a); + kvfree(a); } /* ---------------------------------------------------------------------- */ @@ -767,7 +757,9 @@ static int aufs_remount_fs(struct super_block *sb, int *flags, char *data) { int err, do_dx; unsigned int mntflags; - struct au_opts opts; + struct au_opts opts = { + .opt = NULL + }; struct dentry *root; struct inode *inode; struct au_sbinfo *sbinfo; @@ -785,7 +777,6 @@ static int aufs_remount_fs(struct super_block *sb, int *flags, char *data) } err = -ENOMEM; - memset(&opts, 0, sizeof(opts)); opts.opt = (void *)__get_free_page(GFP_NOFS); if (unlikely(!opts.opt)) goto out; @@ -886,7 +877,9 @@ static int aufs_fill_super(struct super_block *sb, void *raw_data, int silent __maybe_unused) { int err; - struct au_opts opts; + struct au_opts opts = { + .opt = NULL + }; struct au_sbinfo *sbinfo; struct dentry *root; struct inode *inode; @@ -899,7 +892,6 @@ static int aufs_fill_super(struct super_block *sb, void *raw_data, } err = -ENOMEM; - memset(&opts, 0, sizeof(opts)); opts.opt = (void *)__get_free_page(GFP_NOFS); if (unlikely(!opts.opt)) goto out; |