diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-06-04 14:50:03 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-06-26 20:14:14 -0400 |
commit | 421d3c0faa28890dbfb7d2a67f067f07c1123556 (patch) | |
tree | 1a0e069cbf81d9b12964c24088638edc732e4c5e /fs/adfs | |
parent | 5ed70bb47767d1f57a5e85e585a327917ded0373 (diff) | |
download | linux-421d3c0faa28890dbfb7d2a67f067f07c1123556.tar.gz linux-421d3c0faa28890dbfb7d2a67f067f07c1123556.tar.bz2 linux-421d3c0faa28890dbfb7d2a67f067f07c1123556.zip |
fs/adfs: super: correct superblock flags
We don't support atime updates of any kind, and we ought to set the
read-only bit if we are compiled without write support.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/adfs')
-rw-r--r-- | fs/adfs/super.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/adfs/super.c b/fs/adfs/super.c index 4e913124fc2d..b393905abe13 100644 --- a/fs/adfs/super.c +++ b/fs/adfs/super.c @@ -19,6 +19,8 @@ #include "dir_f.h" #include "dir_fplus.h" +#define ADFS_SB_FLAGS SB_NOATIME + #define ADFS_DEFAULT_OWNER_MASK S_IRWXU #define ADFS_DEFAULT_OTHER_MASK (S_IRWXG | S_IRWXO) @@ -227,7 +229,7 @@ static int parse_options(struct super_block *sb, char *options) static int adfs_remount(struct super_block *sb, int *flags, char *data) { sync_filesystem(sb); - *flags |= SB_NODIRATIME; + *flags |= ADFS_SB_FLAGS; return parse_options(sb, data); } @@ -371,7 +373,7 @@ static int adfs_fill_super(struct super_block *sb, void *data, int silent) struct inode *root; int ret = -EINVAL; - sb->s_flags |= SB_NODIRATIME; + sb->s_flags |= ADFS_SB_FLAGS; asb = kzalloc(sizeof(*asb), GFP_KERNEL); if (!asb) |