fs/fat/inode.c: fix sb_rdonly() change
authorOGAWA Hirofumi <[email protected]>
Thu, 30 Nov 2017 00:11:19 +0000 (16:11 -0800)
committerLinus Torvalds <[email protected]>
Thu, 30 Nov 2017 02:40:43 +0000 (18:40 -0800)
commitb6e8e12c0aeb5fbf1bf46c84d58cc93aedede385
tree94df70c7c3048ce0028d5e3a4ec2f1402ac612ae
parentd08afa149acfd00871484ada6dabc3880524cd1c
fs/fat/inode.c: fix sb_rdonly() change

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