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>
此提交包含在:
Al Viro
2011-11-23 11:57:51 -05:00
父節點 f47ec3f283
當前提交 a561be7100
共有 16 個檔案被更改,包括 42 行新增42 行删除

查看文件

@@ -223,7 +223,7 @@ static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask)
int error;
u32 new_flags, flags;
error = mnt_want_write(filp->f_path.mnt);
error = mnt_want_write_file(filp);
if (error)
return error;