• Home
  • Raw
  • Download

Lines Matching refs:tid

66 	tid_t tid;		/* transaction id */  in jfs_create()  local
98 tid = txBegin(dip->i_sb, 0); in jfs_create()
103 rc = jfs_init_acl(tid, ip, dip); in jfs_create()
107 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create()
109 txAbort(tid, 0); in jfs_create()
115 txAbort(tid, 0); in jfs_create()
119 tblk = tid_to_tblock(tid); in jfs_create()
130 xtInitRoot(tid, ip); in jfs_create()
137 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create()
140 txAbort(tid, 1); /* Marks Filesystem dirty */ in jfs_create()
142 txAbort(tid, 0); /* Filesystem full */ in jfs_create()
156 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_create()
159 txEnd(tid); in jfs_create()
198 tid_t tid; /* transaction id */ in jfs_mkdir() local
230 tid = txBegin(dip->i_sb, 0); in jfs_mkdir()
235 rc = jfs_init_acl(tid, ip, dip); in jfs_mkdir()
239 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_mkdir()
241 txAbort(tid, 0); in jfs_mkdir()
247 txAbort(tid, 0); in jfs_mkdir()
251 tblk = tid_to_tblock(tid); in jfs_mkdir()
262 dtInitRoot(tid, ip, dip->i_ino); in jfs_mkdir()
269 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_mkdir()
272 txAbort(tid, 1); /* Marks Filesystem dirty */ in jfs_mkdir()
274 txAbort(tid, 0); /* Filesystem full */ in jfs_mkdir()
289 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_mkdir()
292 txEnd(tid); in jfs_mkdir()
335 tid_t tid; /* transaction id */ in jfs_rmdir() local
362 tid = txBegin(dip->i_sb, 0); in jfs_rmdir()
370 tblk = tid_to_tblock(tid); in jfs_rmdir()
378 if ((rc = dtDelete(tid, dip, &dname, &ino, JFS_REMOVE))) { in jfs_rmdir()
381 txAbort(tid, 1); in jfs_rmdir()
382 txEnd(tid); in jfs_rmdir()
401 txEA(tid, ip, &JFS_IP(ip)->ea, NULL); in jfs_rmdir()
408 txEA(tid, ip, &JFS_IP(ip)->acl, NULL); in jfs_rmdir()
416 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_rmdir()
418 txEnd(tid); in jfs_rmdir()
465 tid_t tid; /* transaction id */ in jfs_unlink() local
489 tid = txBegin(dip->i_sb, 0); in jfs_unlink()
501 if ((rc = dtDelete(tid, dip, &dname, &ino, JFS_REMOVE))) { in jfs_unlink()
504 txAbort(tid, 1); /* Marks FS Dirty */ in jfs_unlink()
505 txEnd(tid); in jfs_unlink()
526 if ((new_size = commitZeroLink(tid, ip)) < 0) { in jfs_unlink()
527 txAbort(tid, 1); /* Marks FS Dirty */ in jfs_unlink()
528 txEnd(tid); in jfs_unlink()
535 tblk = tid_to_tblock(tid); in jfs_unlink()
554 rc = txCommit(tid, 2, &iplist[0], commit_flag); in jfs_unlink()
556 txEnd(tid); in jfs_unlink()
562 tid = txBegin(dip->i_sb, 0); in jfs_unlink()
564 new_size = xtTruncate_pmap(tid, ip, new_size); in jfs_unlink()
566 txAbort(tid, 1); /* Marks FS Dirty */ in jfs_unlink()
569 rc = txCommit(tid, 2, &iplist[0], COMMIT_SYNC); in jfs_unlink()
570 txEnd(tid); in jfs_unlink()
621 static s64 commitZeroLink(tid_t tid, struct inode *ip) in commitZeroLink() argument
626 jfs_info("commitZeroLink: tid = %d, ip = 0x%p", tid, ip); in commitZeroLink()
647 tblk = tid_to_tblock(tid); in commitZeroLink()
655 txEA(tid, ip, &JFS_IP(ip)->ea, NULL); in commitZeroLink()
662 txEA(tid, ip, &JFS_IP(ip)->acl, NULL); in commitZeroLink()
671 return xtTruncate_pmap(tid, ip, 0); in commitZeroLink()
788 tid_t tid; in jfs_link() local
806 tid = txBegin(ip->i_sb, 0); in jfs_link()
824 if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack))) in jfs_link()
836 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_link()
848 txEnd(tid); in jfs_link()
880 tid_t tid; in jfs_symlink() local
921 tid = txBegin(dip->i_sb, 0); in jfs_symlink()
926 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_symlink()
930 tblk = tid_to_tblock(tid); in jfs_symlink()
944 xtInitRoot(tid, ip); in jfs_symlink()
987 if ((rc = xtInsert(tid, ip, 0, 0, xlen, &xaddr, 0))) { in jfs_symlink()
988 txAbort(tid, 0); in jfs_symlink()
999 xtTruncate(tid, ip, 0, COMMIT_PWMAP); in jfs_symlink()
1001 txAbort(tid, 0); in jfs_symlink()
1018 rc = dtInsert(tid, dip, &dname, &ino, &btstack); in jfs_symlink()
1022 xtTruncate(tid, ip, 0, COMMIT_PWMAP); in jfs_symlink()
1023 txAbort(tid, 0); in jfs_symlink()
1038 rc = txCommit(tid, 2, &iplist[0], 0); in jfs_symlink()
1041 txEnd(tid); in jfs_symlink()
1077 tid_t tid; in jfs_rename() local
1152 tid = txBegin(new_dir->i_sb, 0); in jfs_rename()
1173 rc = dtModify(tid, new_dir, &new_dname, &ino, in jfs_rename()
1192 tblk = tid_to_tblock(tid); in jfs_rename()
1198 if ((new_size = commitZeroLink(tid, new_ip)) < 0) { in jfs_rename()
1199 txAbort(tid, 1); /* Marks FS Dirty */ in jfs_rename()
1203 tblk = tid_to_tblock(tid); in jfs_rename()
1223 rc = dtInsert(tid, new_dir, &new_dname, &ino, &btstack); in jfs_rename()
1237 rc = dtDelete(tid, old_dir, &old_dname, &ino, JFS_REMOVE); in jfs_rename()
1241 txAbort(tid, 1); /* Marks Filesystem dirty */ in jfs_rename()
1255 tlck = txLock(tid, old_ip, in jfs_rename()
1299 rc = txCommit(tid, ipcount, iplist, commit_flag); in jfs_rename()
1302 txEnd(tid); in jfs_rename()
1311 tid = txBegin(new_ip->i_sb, 0); in jfs_rename()
1313 new_size = xtTruncate_pmap(tid, new_ip, new_size); in jfs_rename()
1315 txAbort(tid, 1); in jfs_rename()
1318 rc = txCommit(tid, 1, &new_ip, COMMIT_SYNC); in jfs_rename()
1319 txEnd(tid); in jfs_rename()
1362 tid_t tid; in jfs_mknod() local
1381 tid = txBegin(dir->i_sb, 0); in jfs_mknod()
1386 rc = jfs_init_acl(tid, ip, dir); in jfs_mknod()
1390 rc = jfs_init_security(tid, ip, dir, &dentry->d_name); in jfs_mknod()
1392 txAbort(tid, 0); in jfs_mknod()
1397 txAbort(tid, 0); in jfs_mknod()
1401 tblk = tid_to_tblock(tid); in jfs_mknod()
1407 if ((rc = dtInsert(tid, dir, &dname, &ino, &btstack))) { in jfs_mknod()
1408 txAbort(tid, 0); in jfs_mknod()
1424 rc = txCommit(tid, 2, iplist, 0); in jfs_mknod()
1427 txEnd(tid); in jfs_mknod()