Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Aufs5 Standalone
Commits
d3087443
Commit
d3087443
authored
Mar 06, 2021
by
J. R. Okajima
Browse files
5.11 20210308
Signed-off-by:
J. R. Okajima
<
hooanon05g@gmail.com
>
parent
fd138fdb
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/uapi/linux/aufs_type.h
View file @
d3087443
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
#include <limits.h>
#include <limits.h>
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
#define AUFS_VERSION "5.11-20210
222
"
#define AUFS_VERSION "5.11-20210
308
"
/* todo? move this to linux-2.6.19/include/magic.h */
/* todo? move this to linux-2.6.19/include/magic.h */
#define AUFS_SUPER_MAGIC ('a' << 24 | 'u' << 16 | 'f' << 8 | 's')
#define AUFS_SUPER_MAGIC ('a' << 24 | 'u' << 16 | 'f' << 8 | 's')
...
...
tmpfs-idr.patch
View file @
d3087443
...
@@ -21,7 +21,7 @@ index d82b6f396588..ff9c7acfedc8 100644
...
@@ -21,7 +21,7 @@ index d82b6f396588..ff9c7acfedc8 100644
umode_t mode; /* Mount mode for root directory */
umode_t mode; /* Mount mode for root directory */
unsigned char huge; /* Whether to try for hugepages */
unsigned char huge; /* Whether to try for hugepages */
diff --git a/mm/shmem.c b/mm/shmem.c
diff --git a/mm/shmem.c b/mm/shmem.c
index 7c6b6d8f6c39..
889d4a603217
100644
index 7c6b6d8f6c39..
2990e627cf6c
100644
--- a/mm/shmem.c
--- a/mm/shmem.c
+++ b/mm/shmem.c
+++ b/mm/shmem.c
@@ -109,7 +109,7 @@
struct shmem_falloc {
@@ -109,7 +109,7 @@
struct shmem_falloc {
...
@@ -203,11 +203,10 @@ index 7c6b6d8f6c39..889d4a603217 100644
...
@@ -203,11 +203,10 @@ index 7c6b6d8f6c39..889d4a603217 100644
sbinfo->max_blocks = ctx->blocks;
sbinfo->max_blocks = ctx->blocks;
sbinfo->free_inodes = sbinfo->max_inodes = ctx->inodes;
sbinfo->free_inodes = sbinfo->max_inodes = ctx->inodes;
if (sb->s_flags & SB_KERNMOUNT) {
if (sb->s_flags & SB_KERNMOUNT) {
@@ -3860,
7
+3871,1
6
@@
static void shmem_destroy_inodecache(void)
@@ -3860,
6
+3871,1
5
@@
static void shmem_destroy_inodecache(void)
kmem_cache_destroy(shmem_inode_cachep);
kmem_cache_destroy(shmem_inode_cachep);
}
}
-const struct address_space_operations shmem_aops = {
+static __init void shmem_no_idr(struct super_block *sb)
+static __init void shmem_no_idr(struct super_block *sb)
+{
+{
+ struct shmem_sb_info *sbinfo;
+ struct shmem_sb_info *sbinfo;
...
@@ -217,10 +216,9 @@ index 7c6b6d8f6c39..889d4a603217 100644
...
@@ -217,10 +216,9 @@ index 7c6b6d8f6c39..889d4a603217 100644
+ idr_destroy(&sbinfo->idr);
+ idr_destroy(&sbinfo->idr);
+}
+}
+
+
+static
const struct address_space_operations shmem_aops = {
const struct address_space_operations shmem_aops = {
.writepage = shmem_writepage,
.writepage = shmem_writepage,
.set_page_dirty = __set_page_dirty_no_writeback,
.set_page_dirty = __set_page_dirty_no_writeback,
#ifdef CONFIG_TMPFS
@@ -4001,6 +4021,7 @@
int __init shmem_init(void)
@@ -4001,6 +4021,7 @@
int __init shmem_init(void)
pr_err("Could not kern_mount tmpfs\n");
pr_err("Could not kern_mount tmpfs\n");
goto out1;
goto out1;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment