提交 fb6d2526 编写于 作者: A Al Viro 提交者: Mike Marshall

orangefs: generic_file_open() is pointless for character devices

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NMike Marshall <hubcap@omnibond.com>
上级 3e1dd9aa
......@@ -85,9 +85,8 @@ static int orangefs_devreq_open(struct inode *inode, struct file *file)
mutex_lock(&devreq_mutex);
if (open_access_count == 0) {
ret = generic_file_open(inode, file);
if (ret == 0)
open_access_count++;
open_access_count++;
ret = 0;
} else {
DUMP_DEVICE_ERROR();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册