aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/mount.c')
-rw-r--r--fs/gfs2/mount.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/gfs2/mount.c b/fs/gfs2/mount.c
index fba502aa8b2d..ee69701a7777 100644
--- a/fs/gfs2/mount.c
+++ b/fs/gfs2/mount.c
@@ -41,6 +41,8 @@ enum {
41 Opt_data_writeback, 41 Opt_data_writeback,
42 Opt_data_ordered, 42 Opt_data_ordered,
43 Opt_meta, 43 Opt_meta,
44 Opt_discard,
45 Opt_nodiscard,
44 Opt_err, 46 Opt_err,
45}; 47};
46 48
@@ -65,6 +67,8 @@ static const match_table_t tokens = {
65 {Opt_data_writeback, "data=writeback"}, 67 {Opt_data_writeback, "data=writeback"},
66 {Opt_data_ordered, "data=ordered"}, 68 {Opt_data_ordered, "data=ordered"},
67 {Opt_meta, "meta"}, 69 {Opt_meta, "meta"},
70 {Opt_discard, "discard"},
71 {Opt_nodiscard, "nodiscard"},
68 {Opt_err, NULL} 72 {Opt_err, NULL}
69}; 73};
70 74
@@ -157,6 +161,12 @@ int gfs2_mount_args(struct gfs2_sbd *sdp, struct gfs2_args *args, char *options)
157 case Opt_meta: 161 case Opt_meta:
158 args->ar_meta = 1; 162 args->ar_meta = 1;
159 break; 163 break;
164 case Opt_discard:
165 args->ar_discard = 1;
166 break;
167 case Opt_nodiscard:
168 args->ar_discard = 0;
169 break;
160 case Opt_err: 170 case Opt_err:
161 default: 171 default:
162 fs_info(sdp, "invalid mount option: %s\n", o); 172 fs_info(sdp, "invalid mount option: %s\n", o);