Skip to content

Commit

Permalink
vfs: Export flush_delayed_fput for use by knfsd.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
  • Loading branch information
trondmypd authored and J. Bruce Fields committed Aug 19, 2019
1 parent b72679e commit 7239a40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/file_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ void flush_delayed_fput(void)
{
delayed_fput(NULL);
}
EXPORT_SYMBOL_GPL(flush_delayed_fput);

static DECLARE_DELAYED_WORK(delayed_fput_work, delayed_fput);

Expand Down

0 comments on commit 7239a40

Please sign in to comment.