summaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-02-05 05:09:46 +0000
committerLinus Torvalds <torvalds@linux-foundation.org>2020-02-05 05:09:46 +0000
commit72f582ff8569900ccc4439b26bbe5e2fff509f08 (patch)
treecc84085b70b78d1329a0f9ed6045221e736d5912 /include/linux/fs.h
parentbddea11b1b9385f713006820f16a9fbe5efe6b47 (diff)
parenta3d1e7eb5abe3aa1095bc75d1a6760d3809bd672 (diff)
downloadlinux-stable-72f582ff8569900ccc4439b26bbe5e2fff509f08.tar.gz
linux-stable-72f582ff8569900ccc4439b26bbe5e2fff509f08.tar.bz2
linux-stable-72f582ff8569900ccc4439b26bbe5e2fff509f08.zip
Merge branch 'work.recursive_removal' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs recursive removal updates from Al Viro: "We have quite a few places where synthetic filesystems do an equivalent of 'rm -rf', with varying amounts of code duplication, wrong locking, etc. That really ought to be a library helper. Only debugfs (and very similar tracefs) are converted here - I have more conversions, but they'd never been in -next, so they'll have to wait" * 'work.recursive_removal' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: simple_recursive_removal(): kernel-side rm -rf for ramfs-style filesystems
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 9407fa1bee9b..6eae91c0668f 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -3318,6 +3318,8 @@ extern int simple_unlink(struct inode *, struct dentry *);
extern int simple_rmdir(struct inode *, struct dentry *);
extern int simple_rename(struct inode *, struct dentry *,
struct inode *, struct dentry *, unsigned int);
+extern void simple_recursive_removal(struct dentry *,
+ void (*callback)(struct dentry *));
extern int noop_fsync(struct file *, loff_t, loff_t, int);
extern int noop_set_page_dirty(struct page *page);
extern void noop_invalidatepage(struct page *page, unsigned int offset,