summaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2017-02-05 19:47:14 -0500
committerTheodore Ts'o <tytso@mit.edu>2017-02-05 19:47:14 -0500
commit783d948544993f55bdacc78b127532e8b6e2fc9f (patch)
tree9aa172542294f1d75dc033d10f8756c5832ee1e8 /fs/ext4/super.c
parent0db1ff222d40f1601c961f0edb86d10426992595 (diff)
downloadblackbird-op-linux-783d948544993f55bdacc78b127532e8b6e2fc9f.tar.gz
blackbird-op-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) {
OpenPOWER on IntegriCloud