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

@ -68,7 +68,7 @@ long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
unsigned int oldflags;
int err;
err = mnt_want_write(filp->f_path.mnt);
err = mnt_want_write_file(filp);
if (err)
return err;