summaryrefslogtreecommitdiff
path: root/ext2fs/getblk.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-14 19:25:34 +0000
committerMiles Bader <miles@gnu.org>1996-01-14 19:25:34 +0000
commite5748014b015d772de34e8b0ab60349ec8b1c7d0 (patch)
tree23e4447b64831cd33f144945d9e28b077d2f52b4 /ext2fs/getblk.c
parentc7cdbc0a894d3c4f9703a95b3bdd5ae0f85b3c84 (diff)
(inode_getblk, block_getblk): Set dn_set_mtime too.
Diffstat (limited to 'ext2fs/getblk.c')
-rw-r--r--ext2fs/getblk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext2fs/getblk.c b/ext2fs/getblk.c
index 73e68e0f..0d06065b 100644
--- a/ext2fs/getblk.c
+++ b/ext2fs/getblk.c
@@ -160,7 +160,7 @@ inode_getblk (struct node *node, int nr, int create, int zero,
node->dn->info.i_next_alloc_block = new_block;
node->dn->info.i_next_alloc_goal = *result;
- node->dn_set_ctime = 1;
+ node->dn_set_ctime = node->dn_set_mtime = 1;
node->dn_stat.st_blocks += 1 << log2_stat_blocks_per_fs_block;
node->dn_stat_dirty = 1;
@@ -212,9 +212,9 @@ block_getblk (struct node *node, block_t block, int nr, int create, int zero,
else
record_indir_poke (node, bh);
- node->dn_set_ctime = 1;
node->dn->info.i_next_alloc_block = new_block;
node->dn->info.i_next_alloc_goal = *result;
+ node->dn_set_ctime = node->dn_set_mtime = 1;
node->dn_stat.st_blocks += 1 << log2_stat_blocks_per_fs_block;
node->dn_stat_dirty = 1;