* the datablock from the inode.
* If an update has to wait for the next phase, lock_dblock
* (e.g. in setattr) will do that.
+ *
+ * We also use this opportunity to update the filesystem modify time.
*/
+ struct timespec now;
+ struct inode *filesys;
set_bit(I_Dirty, &LAFSI(ino)->iflags);
ino->i_sb->s_dirt = 1;
+
+ now = current_fs_time(ino->i_sb);
+ filesys = ino_from_sb(ino->i_sb);
+ if (!timespec_equal(&filesys->i_mtime, &now)) {
+ filesys->i_mtime = now;
+ set_bit(I_Dirty, &LAFSI(filesys)->iflags);
+ }
}
int lafs_sync_inode(struct inode *ino, int wait)