54 struct inode *inode = filp->
f_path.dentry->d_inode;
75 if (filldir(dirent,
".", 1, 0, inode->
i_ino,
DT_DIR))
80 if (
fd.entrylength >
sizeof(
entry) ||
fd.entrylength < 0) {
96 if (filldir(dirent,
"..", 2, 1,
116 if (
fd.entrylength >
sizeof(
entry) ||
fd.entrylength < 0) {
130 if (filldir(dirent, strbuf, len, filp->
f_pos,
139 if (filldir(dirent, strbuf, len, filp->
f_pos,
163 list_add(&rd->
list, &
HFS_I(inode)->open_dir_list);
171 static int hfs_dir_release(
struct inode *inode,
struct file *
file)
189 static int hfs_create(
struct inode *dir,
struct dentry *dentry,
umode_t mode,
207 mark_inode_dirty(inode);
219 static int hfs_mkdir(
struct inode *dir,
struct dentry *dentry,
umode_t mode)
236 mark_inode_dirty(inode);
251 static int hfs_remove(
struct inode *dir,
struct dentry *dentry)
253 struct inode *inode = dentry->
d_inode;
264 mark_inode_dirty(inode);
279 static int hfs_rename(
struct inode *old_dir,
struct dentry *old_dentry,
280 struct inode *new_dir,
struct dentry *new_dentry)
286 res = hfs_remove(new_dir, new_dentry);
292 old_dir, &old_dentry->
d_name,
293 new_dir, &new_dentry->
d_name);
303 .readdir = hfs_readdir,
305 .release = hfs_dir_release,
309 .create = hfs_create,
310 .lookup = hfs_lookup,
311 .unlink = hfs_remove,
314 .rename = hfs_rename,