]> www.infradead.org Git - nvme.git/commit
ceph: remove the incorrect Fw reference check when dirtying pages
authorXiubo Li <xiubli@redhat.com>
Wed, 4 Sep 2024 22:22:18 +0000 (06:22 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 24 Sep 2024 20:51:33 +0000 (22:51 +0200)
commitc08dfb1b49492c09cf13838c71897493ea3b424e
tree33712eafbf03ad06a1adeb871e21a2c6b4e7d726
parent74249188f31827cf1eeeee8e06474c2fbe2fc1d2
ceph: remove the incorrect Fw reference check when dirtying pages

When doing the direct-io reads it will also try to mark pages dirty,
but for the read path it won't hold the Fw caps and there is case
will it get the Fw reference.

Fixes: 5dda377cf0a6 ("ceph: set i_head_snapc when getting CEPH_CAP_FILE_WR reference")
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c