orangefs: generic_file_open() is pointless for character devices
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
Родитель
3e1dd9aa82
Коммит
fb6d2526e9
|
@ -85,9 +85,8 @@ static int orangefs_devreq_open(struct inode *inode, struct file *file)
|
||||||
mutex_lock(&devreq_mutex);
|
mutex_lock(&devreq_mutex);
|
||||||
|
|
||||||
if (open_access_count == 0) {
|
if (open_access_count == 0) {
|
||||||
ret = generic_file_open(inode, file);
|
open_access_count++;
|
||||||
if (ret == 0)
|
ret = 0;
|
||||||
open_access_count++;
|
|
||||||
} else {
|
} else {
|
||||||
DUMP_DEVICE_ERROR();
|
DUMP_DEVICE_ERROR();
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче