aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorDong Fang <yp.fangdong@gmail.com>2013-07-30 22:50:01 -0400
committerMiklos Szeredi <mszeredi@suse.cz>2013-09-04 11:42:42 -0400
commit05726acabef10faffcbc400c109ddb6c9d7560e4 (patch)
tree2fa77ccfa9095c26e53dfb33b62db700e7c36bc7 /fs/fuse/dev.c
parentefeb9e60d48f7778fdcad4a0f3ad9ea9b19e5dfd (diff)
fuse: use list_for_each_entry() for list traversing
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 1d55f9465400..ef74ad5fd362 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -1765,11 +1765,9 @@ static int fuse_notify(struct fuse_conn *fc, enum fuse_notify_code code,
1765/* Look up request on processing list by unique ID */ 1765/* Look up request on processing list by unique ID */
1766static struct fuse_req *request_find(struct fuse_conn *fc, u64 unique) 1766static struct fuse_req *request_find(struct fuse_conn *fc, u64 unique)
1767{ 1767{
1768 struct list_head *entry; 1768 struct fuse_req *req;
1769 1769
1770 list_for_each(entry, &fc->processing) { 1770 list_for_each_entry(req, &fc->processing, list) {
1771 struct fuse_req *req;
1772 req = list_entry(entry, struct fuse_req, list);
1773 if (req->in.h.unique == unique || req->intr_unique == unique) 1771 if (req->in.h.unique == unique || req->intr_unique == unique)
1774 return req; 1772 return req;
1775 } 1773 }