Commit 874f5132 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

fsnotify: Rename desc_ops to inotify_desc_ops

fanotify will have own descriptor so to avoid
confusion rename it.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e73f9930
...@@ -249,7 +249,7 @@ static int open_inotify_fd(struct file_desc *d) ...@@ -249,7 +249,7 @@ static int open_inotify_fd(struct file_desc *d)
return tmp; return tmp;
} }
static struct file_desc_ops desc_ops = { static struct file_desc_ops inotify_desc_ops = {
.type = FD_TYPES__INOTIFY, .type = FD_TYPES__INOTIFY,
.open = open_inotify_fd, .open = open_inotify_fd,
}; };
...@@ -277,7 +277,7 @@ static int collect_one_ify(void *o, ProtobufCMessage *msg) ...@@ -277,7 +277,7 @@ static int collect_one_ify(void *o, ProtobufCMessage *msg)
info->ife = pb_msg(msg, InotifyFileEntry); info->ife = pb_msg(msg, InotifyFileEntry);
INIT_LIST_HEAD(&info->marks); INIT_LIST_HEAD(&info->marks);
list_add(&info->list, &info_head); list_add(&info->list, &info_head);
file_desc_add(&info->d, info->ife->id, &desc_ops); file_desc_add(&info->d, info->ife->id, &inotify_desc_ops);
pr_info("Collected id 0x%08x flags 0x%08x\n", info->ife->id, info->ife->flags); pr_info("Collected id 0x%08x flags 0x%08x\n", info->ife->id, info->ife->flags);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment