mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-11 04:51:08 +00:00
See Documentation/process/deprecated.rst:217, items[] now preferred over items[0]. Signed-off-by: Andy Grover <agrover@versity.com>
36 lines
971 B
C
36 lines
971 B
C
#ifndef _SCOUTFS_DIR_H_
|
|
#define _SCOUTFS_DIR_H_
|
|
|
|
#include "format.h"
|
|
#include "lock.h"
|
|
|
|
extern const struct file_operations scoutfs_dir_fops;
|
|
extern const struct inode_operations_wrapper scoutfs_dir_iops;
|
|
extern const struct inode_operations scoutfs_symlink_iops;
|
|
|
|
struct scoutfs_link_backref_entry {
|
|
struct list_head head;
|
|
u64 dir_ino;
|
|
u64 dir_pos;
|
|
u16 name_len;
|
|
struct scoutfs_dirent dent;
|
|
/* the full name is allocated and stored in dent.name[] */
|
|
};
|
|
|
|
int scoutfs_dir_get_backref_path(struct super_block *sb, u64 ino, u64 dir_ino,
|
|
u64 dir_pos, struct list_head *list);
|
|
void scoutfs_dir_free_backref_path(struct super_block *sb,
|
|
struct list_head *list);
|
|
|
|
int scoutfs_dir_add_next_linkref(struct super_block *sb, u64 ino,
|
|
u64 dir_ino, u64 dir_pos,
|
|
struct list_head *list);
|
|
|
|
int scoutfs_symlink_drop(struct super_block *sb, u64 ino,
|
|
struct scoutfs_lock *lock, u64 i_size);
|
|
|
|
int scoutfs_dir_init(void);
|
|
void scoutfs_dir_exit(void);
|
|
|
|
#endif
|