From: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
To: linux-ext4@vger.kernel.org
Cc: tytso@mit.edu, lyx1209@gmail.com,
Harshad Shirwadkar <harshadshirwadkar@gmail.com>,
Andreas Dilger <adilger@dilger.ca>
Subject: [PATCH 1/9] ext4: add handling for extended mount options
Date: Wed, 19 Aug 2020 00:30:56 -0700 [thread overview]
Message-ID: <20200819073104.1141705-2-harshadshirwadkar@gmail.com> (raw)
In-Reply-To: <20200819073104.1141705-1-harshadshirwadkar@gmail.com>
We are running out of mount option bits. Add handling for using
s_mount_opt2. This patch was originally submitted as a part of fast
commit patch series. Resending it here with this patch series too.
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
---
fs/ext4/super.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 51e91a220ea9..98aa12602b68 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1733,6 +1733,7 @@ static int clear_qf_name(struct super_block *sb, int qtype)
#define MOPT_EXT4_ONLY (MOPT_NO_EXT2 | MOPT_NO_EXT3)
#define MOPT_STRING 0x0400
#define MOPT_SKIP 0x0800
+#define MOPT_2 0x1000
static const struct mount_opts {
int token;
@@ -2202,10 +2203,17 @@ static int handle_mount_opt(struct super_block *sb, char *opt, int token,
WARN_ON(1);
return -1;
}
- if (arg != 0)
- sbi->s_mount_opt |= m->mount_opt;
- else
- sbi->s_mount_opt &= ~m->mount_opt;
+ if (m->flags & MOPT_2) {
+ if (arg != 0)
+ sbi->s_mount_opt2 |= m->mount_opt;
+ else
+ sbi->s_mount_opt2 &= ~m->mount_opt;
+ } else {
+ if (arg != 0)
+ sbi->s_mount_opt |= m->mount_opt;
+ else
+ sbi->s_mount_opt &= ~m->mount_opt;
+ }
}
return 1;
}
--
2.28.0.220.ged08abb693-goog
next prev parent reply other threads:[~2020-08-19 7:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-19 7:30 [PATCH 0/9] ext4: add free-space extent based allocator Harshad Shirwadkar
2020-08-19 7:30 ` Harshad Shirwadkar [this message]
2020-08-19 7:30 ` [PATCH 2/9] ext4: rename ext4_mb_load_buddy to ext4_mb_load_allocator Harshad Shirwadkar
2020-08-19 7:30 ` [PATCH 3/9] ext4: add freespace tree allocator Harshad Shirwadkar
2020-09-03 13:45 ` Благодаренко Артём
2020-08-19 7:30 ` [PATCH 4/9] ext4: add prefetching support for freespace trees Harshad Shirwadkar
2020-08-19 7:31 ` [PATCH 5/9] ext4: add freespace tree optimizations Harshad Shirwadkar
2020-08-19 7:31 ` [PATCH 6/9] ext4: add memory usage tracker for freespace trees Harshad Shirwadkar
2020-08-28 13:57 ` Благодаренко Артём
2020-08-28 15:22 ` harshad shirwadkar
2020-08-19 7:31 ` [PATCH 7/9] ext4: add LRU eviction for free space trees Harshad Shirwadkar
2020-08-19 7:31 ` [PATCH 8/9] ext4: add tracepoints " Harshad Shirwadkar
2020-08-19 7:31 ` [PATCH 9/9] ext4: add freespace trees documentation in code Harshad Shirwadkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200819073104.1141705-2-harshadshirwadkar@gmail.com \
--to=harshadshirwadkar@gmail.com \
--cc=adilger@dilger.ca \
--cc=linux-ext4@vger.kernel.org \
--cc=lyx1209@gmail.com \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).