Lines Matching refs:dentry
80 extern int hmdfs_remote_getattr(struct hmdfs_peer *conn, struct dentry *dentry,
114 struct dentry *dentry);
117 int hmdfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode);
118 int hmdfs_rmdir(struct inode *dir, struct dentry *dentry);
119 int hmdfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
121 int hmdfs_unlink(struct inode *dir, struct dentry *dentry);
122 int hmdfs_remote_unlink(struct hmdfs_peer *conn, struct dentry *dentry);
123 int hmdfs_rename(struct inode *old_dir, struct dentry *old_dentry,
124 struct inode *new_dir, struct dentry *new_dentry,
135 struct dentry *hmdfs_lookup(struct inode *parent_inode,
136 struct dentry *child_dentry, unsigned int flags);
137 struct dentry *hmdfs_lookup_local(struct inode *parent_inode,
138 struct dentry *child_dentry,
140 struct dentry *hmdfs_lookup_remote(struct inode *parent_inode,
141 struct dentry *child_dentry,
143 int hmdfs_symlink_local(struct inode *dir, struct dentry *dentry,
147 int hmdfs_symlink(struct inode *dir, struct dentry *dentry,
155 static inline struct hmdfs_dentry_info *hmdfs_d(struct dentry *dentry) in hmdfs_d() argument
157 return dentry->d_fsdata; in hmdfs_d()
179 struct dentry *dentry,
181 void hmdfs_set_time(struct dentry *dentry, unsigned long time);
189 struct dentry *dentry,
195 char *hmdfs_get_dentry_relative_path(struct dentry *dentry);
196 char *hmdfs_merge_get_dentry_relative_path(struct dentry *dentry);
201 static inline void hmdfs_get_lower_path(struct dentry *dent, struct path *pname) in hmdfs_get_lower_path()
204 pname->dentry = hmdfs_d(dent)->lower_path.dentry; in hmdfs_get_lower_path()
215 static inline void hmdfs_put_reset_lower_path(struct dentry *dent) in hmdfs_put_reset_lower_path()
220 if (hmdfs_d(dent)->lower_path.dentry) { in hmdfs_put_reset_lower_path()
221 pname.dentry = hmdfs_d(dent)->lower_path.dentry; in hmdfs_put_reset_lower_path()
223 hmdfs_d(dent)->lower_path.dentry = NULL; in hmdfs_put_reset_lower_path()
232 static inline void hmdfs_set_lower_path(struct dentry *dent, struct path *pname) in hmdfs_set_lower_path()
235 hmdfs_d(dent)->lower_path.dentry = pname->dentry; in hmdfs_set_lower_path()
241 static inline bool hmdfs_support_xattr(struct dentry *dentry) in hmdfs_support_xattr() argument
243 struct inode *inode = d_inode(dentry); in hmdfs_support_xattr()
245 struct hmdfs_dentry_info *gdi = hmdfs_d(dentry); in hmdfs_support_xattr()
262 int init_hmdfs_dentry_info(struct hmdfs_sb_info *sbi, struct dentry *dentry,