commit | a561be7100cd610bd2e082f3211c1dfb45835817 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed Nov 23 11:57:51 2011 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Jan 03 22:52:35 2012 -0500 |
tree | a1016a11df967be6f289a4e8ae29597ba39df17e | |
parent | f47ec3f28354795f000c14bf18ed967ec81a3ec3 [diff] [blame] |
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>
diff --git a/fs/fat/file.c b/fs/fat/file.c index c118acf..50746a1 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c
@@ -44,7 +44,7 @@ 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;