提交 7233c774 编写于 作者: A Al Viro

lpfc: switch to fixed_size_llseek()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 7b2296af
......@@ -1165,22 +1165,8 @@ lpfc_debugfs_nodelist_open(struct inode *inode, struct file *file)
static loff_t
lpfc_debugfs_lseek(struct file *file, loff_t off, int whence)
{
struct lpfc_debug *debug;
loff_t pos = -1;
debug = file->private_data;
switch (whence) {
case 0:
pos = off;
break;
case 1:
pos = file->f_pos + off;
break;
case 2:
pos = debug->len + off;
}
return (pos < 0 || pos > debug->len) ? -EINVAL : (file->f_pos = pos);
struct lpfc_debug *debug = file->private_data;
return fixed_size_llseek(file, off, whence, debug->len);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册