filecache.c (942baad211336efefb93a8369478888ab845c450) filecache.c (19598141f40dff728dd50799e510805261f48850)
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>

--- 528 unchanged lines hidden (view full) ---

537 LIST_HEAD(dispose);
538
539 __nfsd_file_close_inode(inode, hashval, &dispose);
540 trace_nfsd_file_close_inode_sync(inode, hashval, !list_empty(&dispose));
541 nfsd_file_dispose_list_sync(&dispose);
542}
543
544/**
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>

--- 528 unchanged lines hidden (view full) ---

537 LIST_HEAD(dispose);
538
539 __nfsd_file_close_inode(inode, hashval, &dispose);
540 trace_nfsd_file_close_inode_sync(inode, hashval, !list_empty(&dispose));
541 nfsd_file_dispose_list_sync(&dispose);
542}
543
544/**
545 * nfsd_file_close_inode_sync - attempt to forcibly close a nfsd_file
545 * nfsd_file_close_inode - attempt a delayed close of a nfsd_file
546 * @inode: inode of the file to attempt to remove
547 *
548 * Walk the whole hash bucket, looking for any files that correspond to "inode".
549 * If any do, then unhash them and put the hashtable reference to them and
550 * destroy any that had their last reference put.
551 */
552static void
553nfsd_file_close_inode(struct inode *inode)

--- 541 unchanged lines hidden ---
546 * @inode: inode of the file to attempt to remove
547 *
548 * Walk the whole hash bucket, looking for any files that correspond to "inode".
549 * If any do, then unhash them and put the hashtable reference to them and
550 * destroy any that had their last reference put.
551 */
552static void
553nfsd_file_close_inode(struct inode *inode)

--- 541 unchanged lines hidden ---