aboutsummaryrefslogtreecommitdiff
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorGravatar Theodore Ts'o <tytso@mit.edu> 2017-02-05 19:47:14 -0500
committerGravatar Theodore Ts'o <tytso@mit.edu> 2017-02-05 19:47:14 -0500
commit783d948544993f55bdacc78b127532e8b6e2fc9f (patch)
tree9aa172542294f1d75dc033d10f8756c5832ee1e8 /fs/ext4/super.c
parentext4: add shutdown bit and check for it (diff)
downloadlinux-783d948544993f55bdacc78b127532e8b6e2fc9f.tar.gz
linux-783d948544993f55bdacc78b127532e8b6e2fc9f.tar.bz2
linux-783d948544993f55bdacc78b127532e8b6e2fc9f.zip
ext4: add EXT4_IOC_GOINGDOWN ioctl
This ioctl is modeled after the xfs's XFS_IOC_GOINGDOWN ioctl. (In fact, it uses the same code points.) Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index cfa4ce5a1f80..3db5b6491513 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4821,7 +4821,7 @@ out:
*/
static int ext4_unfreeze(struct super_block *sb)
{
- if (sb->s_flags & MS_RDONLY)
+ if ((sb->s_flags & MS_RDONLY) || ext4_forced_shutdown(EXT4_SB(sb)))
return 0;
if (EXT4_SB(sb)->s_journal) {