patch-2.1.51 linux/fs/affs/namei.c
Next file: linux/fs/autofs/inode.c
Previous file: linux/fs/affs/inode.c
Back to the patch index
Back to the overall index
- Lines: 121
- Date:
Fri Aug 15 12:51:03 1997
- Orig file:
v2.1.50/linux/fs/affs/namei.c
- Orig date:
Thu Jul 17 10:06:06 1997
diff -u --recursive --new-file v2.1.50/linux/fs/affs/namei.c linux/fs/affs/namei.c
@@ -205,10 +205,10 @@
goto unlink_done;
inode->i_nlink=0;
- inode->i_dirt=1;
+ mark_inode_dirty(inode);
inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME;
dir->i_version = ++event;
- dir->i_dirt=1;
+ mark_inode_dirty(dir);
unlink_done:
affs_brelse(bh);
iput(inode);
@@ -244,7 +244,7 @@
if (error) {
iput(dir);
inode->i_nlink = 0;
- inode->i_dirt = 1;
+ mark_inode_dirty(inode);
iput(inode);
return -ENOSPC;
}
@@ -286,7 +286,7 @@
if (error) {
iput(dir);
inode->i_nlink = 0;
- inode->i_dirt = 1;
+ mark_inode_dirty(inode);
iput(inode);
return error;
}
@@ -356,10 +356,10 @@
goto rmdir_done;
inode->i_nlink=0;
- inode->i_dirt=1;
+ mark_inode_dirty(inode);
inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME;
dir->i_version = ++event;
- dir->i_dirt=1;
+ mark_inode_dirty(dir);
rmdir_done:
iput(dir);
iput(inode);
@@ -392,7 +392,7 @@
if (!bh) {
iput(dir);
inode->i_nlink = 0;
- inode->i_dirt = 1;
+ mark_inode_dirty(inode);
iput(inode);
return -EIO;
}
@@ -426,7 +426,7 @@
*p = 0;
mark_buffer_dirty(bh,1);
affs_brelse(bh);
- inode->i_dirt = 1;
+ mark_inode_dirty(inode);
bh = affs_find_entry(dir,name,len,&tmp);
if (bh) {
inode->i_nlink = 0;
@@ -438,7 +438,7 @@
i = affs_add_entry(dir,NULL,inode,name,len,ST_SOFTLINK);
if (i) {
inode->i_nlink = 0;
- inode->i_dirt = 1;
+ mark_inode_dirty(inode);
iput(inode);
affs_brelse(bh);
iput(dir);
@@ -497,7 +497,7 @@
error = affs_add_entry(dir,oldinode,inode,name,len,ST_LINKFILE);
if (error) {
inode->i_nlink = 0;
- inode->i_dirt = 1;
+ mark_inode_dirty(inode);
}
iput(dir);
iput(inode);
@@ -616,9 +616,9 @@
goto retry;
mark_buffer_dirty(new_bh,1);
new_dir->i_version = ++event;
- new_dir->i_dirt = 1;
+ mark_inode_dirty(new_dir);
new_inode->i_nlink = 0;
- new_inode->i_dirt = 1;
+ mark_inode_dirty(new_inode);
}
retval = affs_fix_hash_pred(old_dir,affs_hash_name(old_name,old_len,AFFS_I2FSTYPE(old_dir),
AFFS_I2HSIZE(old_dir)) + 6,old_ino,
@@ -632,8 +632,8 @@
new_dir->i_ctime = new_dir->i_mtime = old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME;
new_dir->i_version = ++event;
old_dir->i_version = ++event;
- new_dir->i_dirt = 1;
- old_dir->i_dirt = 1;
+ mark_inode_dirty(new_dir);
+ mark_inode_dirty(old_dir);
mark_buffer_dirty(old_bh,1);
end_rename:
@@ -704,7 +704,7 @@
ofinode->i_size = inode->i_size;
ofinode->i_uid = inode->i_uid;
ofinode->i_gid = inode->i_gid;
- ofinode->i_dirt = 1;
+ mark_inode_dirty(ofinode);
link_key = ofinode->i_ino;
/* Let all remaining links point to the new file */
@@ -722,7 +722,7 @@
"Inode %d in link chain is not a link",
key);
ofinode->u.affs_i.i_original = link_key;
- ofinode->i_dirt = 1;
+ mark_inode_dirty(ofinode);
FILE_END(nbh->b_data,inode)->original = htonl(link_key);
} else
affs_error(inode->i_sb,"fixup","Cannot read block %d",key);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov