switch a bunch of places to mnt_want_write_file()

it's both faster (in case when file has been opened for write) and cleaner.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2011-11-23 11:57:51 -05:00
parent f47ec3f283
commit a561be7100
16 changed files with 42 additions and 42 deletions

View File

@@ -55,7 +55,7 @@ long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
break;
}
err = mnt_want_write(filp->f_path.mnt);
err = mnt_want_write_file(filp);
if (err)
break;
@@ -107,7 +107,7 @@ setflags_out:
err = -EPERM;
break;
}
err = mnt_want_write(filp->f_path.mnt);
err = mnt_want_write_file(filp);
if (err)
break;
if (get_user(inode->i_generation, (int __user *)arg)) {