Commit 8cae6f71 authored by Al Viro's avatar Al Viro

ext4: switch EXT4_IOC_RESIZE_FS to mnt_want_write_file()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 11e62a8f
...@@ -390,7 +390,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -390,7 +390,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (err) if (err)
return err; return err;
err = mnt_want_write(filp->f_path.mnt); err = mnt_want_write_file(filp);
if (err) if (err)
goto resizefs_out; goto resizefs_out;
...@@ -402,7 +402,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -402,7 +402,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
} }
if (err == 0) if (err == 0)
err = err2; err = err2;
mnt_drop_write(filp->f_path.mnt); mnt_drop_write_file(filp);
resizefs_out: resizefs_out:
ext4_resize_end(sb); ext4_resize_end(sb);
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment