summaryrefslogtreecommitdiffstats
path: root/kernel/fs/ext4/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/ext4/ioctl.c')
-rw-r--r--kernel/fs/ext4/ioctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/fs/ext4/ioctl.c b/kernel/fs/ext4/ioctl.c
index 5e872fd40..1fb12f9c9 100644
--- a/kernel/fs/ext4/ioctl.c
+++ b/kernel/fs/ext4/ioctl.c
@@ -629,7 +629,13 @@ resizefs_out:
goto encryption_policy_out;
}
+ err = mnt_want_write_file(filp);
+ if (err)
+ goto encryption_policy_out;
+
err = ext4_process_policy(&policy, inode);
+
+ mnt_drop_write_file(filp);
encryption_policy_out:
return err;
#else