If we can tell the a subset-filesystem is too new to
match what we find in the write-cluster, we can skip it
quickly.
Signed-off-by: NeilBrown <neilb@suse.de>
ino_from_sb(ino->i_sb)->i_ino != fsnum) {
if (ino)
iput(ino);
+ if (fsnum) {
+ struct inode *fsino =
+ lafs_iget_fs(fs, 0, fsnum, ASYNC);
+ if (IS_ERR(fsino))
+ ino = fsino;
+ else if (LAFSI(fsino)->md.fs.creation_age > tc->seq) {
+ /* skip this inode as filesystem
+ * is newer
+ */
+ iput(fsino);
+ ino = NULL;
+ goto skip_inode;
+ }
+ }
ino = lafs_iget_fs(fs, fsnum, inum, ASYNC);
}
if (!IS_ERR(ino)) {