projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d08afa1
)
fs/fat/inode.c: fix sb_rdonly() change
author
OGAWA Hirofumi
<
[email protected]
>
Thu, 30 Nov 2017 00:11:19 +0000
(16:11 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 30 Nov 2017 02:40:43 +0000
(18:40 -0800)
Commit
bc98a42c1f7d
("VFS: Convert sb->s_flags & MS_RDONLY to
sb_rdonly(sb)") converted fat_remount():new_rdonly from a bool to an
int.
However fat_remount() depends upon the compiler's conversion of a
non-zero integer into boolean `true'.
Fix it by switching `new_rdonly' back into a bool.
Link:
http://lkml.kernel.org/r/
[email protected]
Fixes: bc98a42c1f7d0f8 ("VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb)")
Signed-off-by: OGAWA Hirofumi <
[email protected]
>
Cc: Joe Perches <
[email protected]
>
Cc: David Howells <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/fat/inode.c
patch
|
blob
|
history
diff --git
a/fs/fat/inode.c
b/fs/fat/inode.c
index 016c46b5e44c9770ff55ba432f5bc2fe19133440..20a0a89eaca589de58d70d89c9625ca9a30d0143 100644
(file)
--- a/
fs/fat/inode.c
+++ b/
fs/fat/inode.c
@@
-779,7
+779,7
@@
static void __exit fat_destroy_inodecache(void)
static int fat_remount(struct super_block *sb, int *flags, char *data)
{
-
int
new_rdonly;
+
bool
new_rdonly;
struct msdos_sb_info *sbi = MSDOS_SB(sb);
*flags |= SB_NODIRATIME | (sbi->options.isvfat ? 0 : SB_NOATIME);