filecache.c (555dbf1a9aac6d3150c8b52fa35f768a692f4eeb) | filecache.c (3988a57885eeac05ef89f0ab4d7e47b52fbcf630) |
---|---|
1/* 2 * Open file cache. 3 * 4 * (c) 2015 - Jeff Layton <jeff.layton@primarydata.com> 5 */ 6 7#include <linux/hash.h> 8#include <linux/slab.h> --- 229 unchanged lines hidden (view full) --- 238static void 239nfsd_file_do_unhash(struct nfsd_file *nf) 240{ 241 lockdep_assert_held(&nfsd_file_hashtbl[nf->nf_hashval].nfb_lock); 242 243 trace_nfsd_file_unhash(nf); 244 245 if (nfsd_file_check_write_error(nf)) | 1/* 2 * Open file cache. 3 * 4 * (c) 2015 - Jeff Layton <jeff.layton@primarydata.com> 5 */ 6 7#include <linux/hash.h> 8#include <linux/slab.h> --- 229 unchanged lines hidden (view full) --- 238static void 239nfsd_file_do_unhash(struct nfsd_file *nf) 240{ 241 lockdep_assert_held(&nfsd_file_hashtbl[nf->nf_hashval].nfb_lock); 242 243 trace_nfsd_file_unhash(nf); 244 245 if (nfsd_file_check_write_error(nf)) |
246 nfsd_reset_boot_verifier(net_generic(nf->nf_net, nfsd_net_id)); | 246 nfsd_reset_write_verifier(net_generic(nf->nf_net, nfsd_net_id)); |
247 --nfsd_file_hashtbl[nf->nf_hashval].nfb_count; 248 hlist_del_rcu(&nf->nf_node); 249 atomic_long_dec(&nfsd_filecache_count); 250} 251 252static bool 253nfsd_file_unhash(struct nfsd_file *nf) 254{ --- 796 unchanged lines hidden --- | 247 --nfsd_file_hashtbl[nf->nf_hashval].nfb_count; 248 hlist_del_rcu(&nf->nf_node); 249 atomic_long_dec(&nfsd_filecache_count); 250} 251 252static bool 253nfsd_file_unhash(struct nfsd_file *nf) 254{ --- 796 unchanged lines hidden --- |