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 <[email protected]>
This commit is contained in:
Al Viro 2011-11-23 11:57:51 -05:00
commit a561be7100
16 changed files with 42 additions and 42 deletions

View file

@ -44,7 +44,7 @@ static int fat_ioctl_set_attributes(struct file *file, u32 __user *user_attr)
goto out;
mutex_lock(&inode->i_mutex);
err = mnt_want_write(file->f_path.mnt);
err = mnt_want_write_file(file);
if (err)
goto out_unlock_inode;