Skip to content

Commit 7239a40

Browse files
trondmypdJ. Bruce Fields
authored andcommitted
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>
1 parent b72679e commit 7239a40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/file_table.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ void flush_delayed_fput(void)
327327
{
328328
delayed_fput(NULL);
329329
}
330+
EXPORT_SYMBOL_GPL(flush_delayed_fput);
330331

331332
static DECLARE_DELAYED_WORK(delayed_fput_work, delayed_fput);
332333

0 commit comments

Comments
 (0)