Skip to content

Commit 33445d6

Browse files
committed
libfs: export find_next_child()
Export find_next_child() so it can be used by efivarfs. Keep it internal for now. There's no reason to advertise this kernel-wide. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent 6e5af8e commit 33445d6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

fs/internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,4 @@ static inline bool path_mounted(const struct path *path)
343343
void file_f_owner_release(struct file *file);
344344
bool file_seek_cur_needs_f_lock(struct file *file);
345345
int statmount_mnt_idmap(struct mnt_idmap *idmap, struct seq_file *seq, bool uid_map);
346+
struct dentry *find_next_child(struct dentry *parent, struct dentry *prev);

fs/libfs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ const struct file_operations simple_offset_dir_operations = {
583583
.fsync = noop_fsync,
584584
};
585585

586-
static struct dentry *find_next_child(struct dentry *parent, struct dentry *prev)
586+
struct dentry *find_next_child(struct dentry *parent, struct dentry *prev)
587587
{
588588
struct dentry *child = NULL, *d;
589589

@@ -603,6 +603,7 @@ static struct dentry *find_next_child(struct dentry *parent, struct dentry *prev
603603
dput(prev);
604604
return child;
605605
}
606+
EXPORT_SYMBOL(find_next_child);
606607

607608
void simple_recursive_removal(struct dentry *dentry,
608609
void (*callback)(struct dentry *))

0 commit comments

Comments
 (0)