Lines Matching refs:i_sb
280 if (namelen > REISERFS_MAX_NAME (dir->i_sb->s_blocksize)) in reiserfs_find_entry()
285 get_third_component (dir->i_sb, name, namelen), TYPE_DIRENTRY, 3); in reiserfs_find_entry()
288 retval = search_by_entry_key (dir->i_sb, &key_to_search, path_to_entry, de); in reiserfs_find_entry()
290 reiserfs_warning (dir->i_sb, "zam-7001: io error in %s\n", __FUNCTION__); in reiserfs_find_entry()
319 if (REISERFS_MAX_NAME (dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup()
326 inode = reiserfs_iget (dir->i_sb, (struct cpu_key *)&(de.de_dir_id)); in reiserfs_lookup()
366 if (namelen > REISERFS_MAX_NAME (dir->i_sb->s_blocksize)) in reiserfs_add_entry()
371 get_third_component (dir->i_sb, name, namelen), TYPE_DIRENTRY, 3); in reiserfs_add_entry()
376 buffer = reiserfs_kmalloc (buflen, GFP_NOFS, dir->i_sb); in reiserfs_add_entry()
408 reiserfs_kfree (buffer, buflen, dir->i_sb); in reiserfs_add_entry()
416 reiserfs_warning (dir->i_sb, "zam-7002:%s: \"reiserfs_find_entry\" has returned" in reiserfs_add_entry()
426 …reiserfs_warning (dir->i_sb, "reiserfs_add_entry: Congratulations! we have got hash function screw… in reiserfs_add_entry()
428 reiserfs_kfree (buffer, buflen, dir->i_sb); in reiserfs_add_entry()
455 if (search_by_entry_key (dir->i_sb, &entry_key, &path, &de) != NAME_NOT_FOUND) { in reiserfs_add_entry()
456 reiserfs_warning (dir->i_sb, "vs-7032: reiserfs_add_entry: " in reiserfs_add_entry()
460 reiserfs_kfree (buffer, buflen, dir->i_sb); in reiserfs_add_entry()
474 reiserfs_kfree (buffer, buflen, dir->i_sb); in reiserfs_add_entry()
531 if (!(inode = new_inode(dir->i_sb))) { in reiserfs_create()
538 journal_begin(&th, dir->i_sb, jbegin_count) ; in reiserfs_create()
554 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_create()
562 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_create()
577 if (!(inode = new_inode(dir->i_sb))) { in reiserfs_mknod()
584 journal_begin(&th, dir->i_sb, jbegin_count) ; in reiserfs_mknod()
604 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_mknod()
610 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_mknod()
626 if (!(inode = new_inode(dir->i_sb))) { in reiserfs_mkdir()
633 journal_begin(&th, dir->i_sb, jbegin_count) ; in reiserfs_mkdir()
645 old_format_only (dir->i_sb) ? in reiserfs_mkdir()
665 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_mkdir()
674 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_mkdir()
709 journal_begin(&th, dir->i_sb, jbegin_count) ; in reiserfs_rmdir()
745 …reiserfs_warning ( inode->i_sb, "reiserfs_rmdir: empty directory has nlink != 2 (%d)\n", inode->i_… in reiserfs_rmdir()
760 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_rmdir()
770 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_rmdir()
792 journal_begin(&th, dir->i_sb, jbegin_count) ; in reiserfs_unlink()
815 reiserfs_warning(inode->i_sb, "reiserfs_unlink: deleting nonexistent file (%s:%lu), %d\n", in reiserfs_unlink()
847 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_unlink()
854 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_unlink()
871 if (!(inode = new_inode(parent_dir->i_sb))) { in reiserfs_symlink()
880 if (item_len > MAX_DIRECT_ITEM_LEN (parent_dir->i_sb->s_blocksize)) { in reiserfs_symlink()
886 name = reiserfs_kmalloc (item_len, GFP_NOFS, parent_dir->i_sb); in reiserfs_symlink()
895 journal_begin(&th, parent_dir->i_sb, jbegin_count) ; in reiserfs_symlink()
899 reiserfs_kfree (name, item_len, parent_dir->i_sb); in reiserfs_symlink()
919 journal_end(&th, parent_dir->i_sb, jbegin_count) ; in reiserfs_symlink()
925 journal_end(&th, parent_dir->i_sb, jbegin_count) ; in reiserfs_symlink()
957 journal_begin(&th, dir->i_sb, jbegin_count) ; in reiserfs_link()
970 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_link()
981 journal_end(&th, dir->i_sb, jbegin_count) ; in reiserfs_link()
1098 journal_begin(&th, old_dir->i_sb, jbegin_count) ; in reiserfs_rename()
1106 reiserfs_panic (old_dir->i_sb, in reiserfs_rename()
1111 journal_end(&th, old_dir->i_sb, jbegin_count) ; in reiserfs_rename()
1128 …if (search_by_entry_key (new_dir->i_sb, &old_de.de_entry_key, &old_entry_path, &old_de) != NAME_FO… in reiserfs_rename()
1133 reiserfs_prepare_for_journal(old_inode->i_sb, old_de.de_bh, 1) ; in reiserfs_rename()
1146 reiserfs_prepare_for_journal(old_inode->i_sb, new_de.de_bh, 1) ; in reiserfs_rename()
1149 …if (search_by_entry_key (new_dir->i_sb, &dot_dot_de.de_entry_key, &dot_dot_entry_path, &dot_dot_de… in reiserfs_rename()
1153 reiserfs_prepare_for_journal(old_inode->i_sb, dot_dot_de.de_bh, 1) ; in reiserfs_rename()
1176 reiserfs_restore_prepared_buffer (old_inode->i_sb, new_de.de_bh); in reiserfs_rename()
1177 reiserfs_restore_prepared_buffer (old_inode->i_sb, old_de.de_bh); in reiserfs_rename()
1179 reiserfs_restore_prepared_buffer (old_inode->i_sb, dot_dot_de.de_bh); in reiserfs_rename()
1185 reiserfs_restore_prepared_buffer (old_inode->i_sb, old_de.de_bh); in reiserfs_rename()
1186 reiserfs_restore_prepared_buffer (old_inode->i_sb, new_de.de_bh); in reiserfs_rename()
1187 reiserfs_restore_prepared_buffer (old_inode->i_sb, dot_dot_de.de_bh); in reiserfs_rename()
1204 journal_mark_dirty (&th, old_dir->i_sb, new_de.de_bh); in reiserfs_rename()
1207 journal_mark_dirty (&th, old_dir->i_sb, old_de.de_bh); in reiserfs_rename()
1226 journal_mark_dirty (&th, new_dir->i_sb, dot_dot_de.de_bh); in reiserfs_rename()
1260 journal_end(&th, old_dir->i_sb, jbegin_count) ; in reiserfs_rename()