Re: [PATCH] fs/ceph: delete unused ceph_file_layout_is_valid function

From: Yaowei Bai
Date: Tue Dec 12 2017 - 20:52:22 EST


On Tue, Dec 12, 2017 at 11:15:05AM +0100, Ilya Dryomov wrote:
> On Tue, Dec 12, 2017 at 2:56 AM, Yaowei Bai
> <baiyaowei@xxxxxxxxxxxxxxxxxxxx> wrote:
> > There's no users of ceph_file_layout_is_valid, remove it.
>
> It'll get a user in the next kernel release -- we'll remove ad-hoc
> checks from ceph_calc_file_object_mapping() which is executed on every
> mapping and call ceph_file_layout_is_valid() once per layout instead.

Maybe we can re-add it when it's used indeed.

>
> Thanks,
>
> Ilya