Skip to content

Commit 8cae6f7

Browse files
author
Al Viro
committed
ext4: switch EXT4_IOC_RESIZE_FS to mnt_want_write_file()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 11e62a8 commit 8cae6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/ext4/ioctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
390390
if (err)
391391
return err;
392392

393-
err = mnt_want_write(filp->f_path.mnt);
393+
err = mnt_want_write_file(filp);
394394
if (err)
395395
goto resizefs_out;
396396

@@ -402,7 +402,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
402402
}
403403
if (err == 0)
404404
err = err2;
405-
mnt_drop_write(filp->f_path.mnt);
405+
mnt_drop_write_file(filp);
406406
resizefs_out:
407407
ext4_resize_end(sb);
408408
return err;

0 commit comments

Comments
 (0)