diff options
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r-- | sys/ufs/ffs/ffs_snapshot.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c index 2b5bf1c..0c011ea 100644 --- a/sys/ufs/ffs/ffs_snapshot.c +++ b/sys/ufs/ffs/ffs_snapshot.c @@ -292,9 +292,10 @@ restart: ip->i_size = lblktosize(fs, (off_t)numblks); DIP_SET(ip, i_size, ip->i_size); ip->i_flag |= IN_CHANGE | IN_UPDATE; - if ((error = readblock(vp, bp, numblks - 1)) != 0) - goto out; + error = readblock(vp, bp, numblks - 1); bawrite(bp); + if (error != 0) + goto out; /* * Preallocate critical data structures so that we can copy * them in without further allocation after we suspend all |