提交 c2a8b6e1 编写于 作者: C Chris Mason

Btrfs: Force f_pos to the max when a readdir hits the end of the directory.

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 bea495e5
......@@ -1430,7 +1430,7 @@ static int btrfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
di = (struct btrfs_dir_item *)((char *)di + di_len);
}
}
filp->f_pos++;
filp->f_pos = INT_LIMIT(typeof(filp->f_pos));
nopos:
ret = 0;
err:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册