fs/dirty_pages: add last read check in seq_read_dirty()
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8JUUC?from=project-issue -------------------------------- When we call seq_read_dirty() for the last read, m->count is the same value as m->from, and we need to return 0 instead of an error. Fixes: 5d93db93 ("fs/dirty_pages: fix some errors in seq_read_dirty()") Signed-off-by:Zizhi Wo <wozizhi@huawei.com>
Loading
Please sign in to comment