hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/nfs/blocklayout/blocklayout.c
....@@ -476,7 +476,7 @@
476476 err = ext_tree_remove(bl, true, 0, LLONG_MAX);
477477 WARN_ON(err);
478478
479
- kfree(bl);
479
+ kfree_rcu(bl, bl_layout.plh_rcu);
480480 }
481481
482482 static struct pnfs_layout_hdr *__bl_alloc_layout_hdr(struct inode *inode,
....@@ -584,7 +584,7 @@
584584
585585 static struct nfs4_deviceid_node *
586586 bl_find_get_deviceid(struct nfs_server *server,
587
- const struct nfs4_deviceid *id, struct rpc_cred *cred,
587
+ const struct nfs4_deviceid *id, const struct cred *cred,
588588 gfp_t gfp_mask)
589589 {
590590 struct nfs4_deviceid_node *node;
....@@ -753,7 +753,7 @@
753753 case -ENODEV:
754754 /* Our extent block devices are unavailable */
755755 set_bit(NFS_LSEG_UNAVAILABLE, &lseg->pls_flags);
756
- /* Fall through */
756
+ fallthrough;
757757 case 0:
758758 return lseg;
759759 default:
....@@ -896,7 +896,7 @@
896896 end = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
897897 if (end != inode->i_mapping->nrpages) {
898898 rcu_read_lock();
899
- end = page_cache_next_hole(mapping, idx + 1, ULONG_MAX);
899
+ end = page_cache_next_miss(mapping, idx + 1, ULONG_MAX);
900900 rcu_read_unlock();
901901 }
902902