ovl: discard independent cursor in readdir()
authorhujianyang <hujianyang@huawei.com>
Thu, 11 Dec 2014 02:30:18 +0000 (10:30 +0800)
committerMiklos Szeredi <mszeredi@suse.cz>
Fri, 9 Jan 2015 13:55:57 +0000 (14:55 +0100)
Since the ovl_dir_cache is stable during a directory reading, the cursor
of struct ovl_dir_file don't need to be an independent entry in the list
of a merged directory.

This patch changes *cursor* to a pointer which points to the entry in the
ovl_dir_cache. After this, we don't need to check *is_cursor* either.

Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>

No differences found