/* * Limit the time that the list_lru_one lock is held during * an LRU scan.
*/ #define NFSD_FILE_GC_BATCH (16UL)
/* * This is the fsnotify_mark container that nfsd attaches to the files that it * is holding open. Note that we have a separate refcount here aside from the * one in the fsnotify_mark. We only want a single fsnotify_mark attached to * the inode, and for each nfsd_file to hold a reference to it. * * The fsnotify_mark is itself refcounted, but that's not sufficient to tell us * how to put that reference. If there are still outstanding nfsd_files that * reference the mark, then we would want to call fsnotify_put_mark on it. * If there were not, then we'd need to call fsnotify_destroy_mark. Since we * can't really tell the difference, we use the nfm_mark to keep track of how * many nfsd_files hold references to the mark. When that counter goes to zero * then we know to call fsnotify_destroy_mark on it.
*/ struct nfsd_file_mark { struct fsnotify_mark nfm_mark;
refcount_t nfm_ref;
};
/* * A representation of a file that has been opened by knfsd. These are hashed * in the hashtable by inode pointer value. Note that this object doesn't * hold a reference to the inode by itself, so the nf_inode pointer should * never be dereferenced, only used for comparison.
*/ struct nfsd_file { struct rhlist_head nf_rlist; void *nf_inode; struct file *nf_file; conststruct cred *nf_cred; struct net *nf_net; #define NFSD_FILE_HASHED (0) #define NFSD_FILE_PENDING (1) #define NFSD_FILE_REFERENCED (2) #define NFSD_FILE_GC (3) #define NFSD_FILE_RECENT (4) unsignedlong nf_flags;
refcount_t nf_ref; unsignedchar nf_may;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.