Lines Matching refs:dir
52 struct inode *dir = mapping->host; in dir_commit_chunk() local
56 if (pos+len > dir->i_size) { in dir_commit_chunk()
57 i_size_write(dir, pos+len); in dir_commit_chunk()
58 mark_inode_dirty(dir); in dir_commit_chunk()
63 static int minix_handle_dirsync(struct inode *dir) in minix_handle_dirsync() argument
67 err = filemap_write_and_wait(dir->i_mapping); in minix_handle_dirsync()
69 err = sync_inode_metadata(dir, 1); in minix_handle_dirsync()
73 static struct page * dir_get_page(struct inode *dir, unsigned long n) in dir_get_page() argument
75 struct address_space *mapping = dir->i_mapping; in dir_get_page()
161 struct inode * dir = d_inode(dentry->d_parent); in minix_find_entry() local
162 struct super_block * sb = dir->i_sb; in minix_find_entry()
165 unsigned long npages = dir_pages(dir); in minix_find_entry()
176 page = dir_get_page(dir, n); in minix_find_entry()
181 limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize; in minix_find_entry()
208 struct inode *dir = d_inode(dentry->d_parent); in minix_add_link() local
211 struct super_block * sb = dir->i_sb; in minix_add_link()
214 unsigned long npages = dir_pages(dir); in minix_add_link()
232 page = dir_get_page(dir, n); in minix_add_link()
238 dir_end = kaddr + minix_last_byte(dir, n); in minix_add_link()
284 dir->i_mtime = inode_set_ctime_current(dir); in minix_add_link()
285 mark_inode_dirty(dir); in minix_add_link()
286 err = minix_handle_dirsync(dir); in minix_add_link()
321 int minix_make_empty(struct inode *inode, struct inode *dir) in minix_make_empty() argument
345 de3->inode = dir->i_ino; in minix_make_empty()
353 de->inode = dir->i_ino; in minix_make_empty()
422 struct inode *dir = page->mapping->host; in minix_set_link() local
423 struct minix_sb_info *sbi = minix_sb(dir->i_sb); in minix_set_link()
439 dir->i_mtime = inode_set_ctime_current(dir); in minix_set_link()
440 mark_inode_dirty(dir); in minix_set_link()
441 return minix_handle_dirsync(dir); in minix_set_link()
444 struct minix_dir_entry * minix_dotdot (struct inode *dir, struct page **p) in minix_dotdot() argument
446 struct page *page = dir_get_page(dir, 0); in minix_dotdot()
447 struct minix_sb_info *sbi = minix_sb(dir->i_sb); in minix_dotdot()