e.g. TypeInodeFile, TypeSegmentMap etc.
Doing so can corrupt other data.
Signed-off-by: NeilBrown <neilb@suse.de>
* i_atime and i_accesstime
*/
int rv;
+ if (LAFSI(ino)->type < TypeBase)
+ return 0;
if (timespec_compare(&ino->i_atime,
&LAFSI(ino)->md.file.i_accesstime) <= 0) {
/* We cannot store negative delta so if i_atime is in the
store_atime_delta(ino);
return;
}
-
set_bit(I_Dirty, &LAFSI(ino)->iflags);
ino->i_sb->s_dirt = 1;
+
+ if (LAFSI(ino)->type < TypeBase)
+ return;
LAFSI(ino)->md.file.i_accesstime = ino->i_atime;
if (LAFSI(ino)->md.file.atime_offset) {
LAFSI(ino)->md.file.atime_offset = 0;