Skip to content

Commit

Permalink
ext4: switch EXT4_IOC_RESIZE_FS to mnt_want_write_file()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jul 22, 2012
1 parent 11e62a8 commit 8cae6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/ext4/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (err)
return err;

err = mnt_want_write(filp->f_path.mnt);
err = mnt_want_write_file(filp);
if (err)
goto resizefs_out;

Expand All @@ -402,7 +402,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
}
if (err == 0)
err = err2;
mnt_drop_write(filp->f_path.mnt);
mnt_drop_write_file(filp);
resizefs_out:
ext4_resize_end(sb);
return err;
Expand Down

0 comments on commit 8cae6f7

Please sign in to comment.