vfs: Export flush_delayed_fput for use by knfsd.
Allow knfsd to flush the delayed fput list so that it can ensure the cached struct file is closed before it is unlinked. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
b72679ee89
commit
7239a40ca8
@ -327,6 +327,7 @@ void flush_delayed_fput(void)
|
|||||||
{
|
{
|
||||||
delayed_fput(NULL);
|
delayed_fput(NULL);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(flush_delayed_fput);
|
||||||
|
|
||||||
static DECLARE_DELAYED_WORK(delayed_fput_work, delayed_fput);
|
static DECLARE_DELAYED_WORK(delayed_fput_work, delayed_fput);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user