Thread (8 messages) 8 messages, 2 authors, 2021-12-06

Re: [PATCH 1/2] ceph: conversion to new fscache API

From: Jeff Layton <jlayton@kernel.org>
Date: 2021-12-01 11:32:00
Also in: ceph-devel, lkml

On Mon, 2021-11-29 at 16:46 +0000, David Howells wrote:
Jeff Layton [off-list ref] wrote:
quoted
+void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info* ci)
 {
-	return fscache_register_netfs(&ceph_cache_netfs);
+	struct fscache_cookie* cookie = xchg(&ci->fscache, NULL);
+
+	fscache_relinquish_cookie(cookie, false);
 }
xchg() should be excessive there.  This is only called from
ceph_evict_inode().  Also, if you're going to reset the pointer, it might be
worth poisoning it rather than nulling it.
Ok, makes sense. I'll make that change soon.
-- 
Jeff Layton [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help