diff options
author | Christoph Hellwig <hch@sgi.com> | 2005-11-01 18:26:59 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-01 18:26:59 -0500 |
commit | f538d4da8d521746ca5ebf8c1a8105eb49bfb45e (patch) | |
tree | 5516e1d2df01e412709284e379085b348122c501 /fs/xfs/xfs_log.h | |
parent | 739cafd316235fc55463849e80710f2ca308b9ae (diff) |
[XFS] write barrier support Issue all log sync operations as ordered
writes. In addition flush the disk cache on fsync if the sync cached
operation didn't sync the log to disk (this requires some additional
bookeping in the transaction and log code). If the device doesn't claim to
support barriers, the filesystem has an extern log volume or the trial
superblock write with barriers enabled failed we disable barriers and
print a warning. We should probably fail the mount completely, but that
could lead to nasty boot failures for the root filesystem. Not enabled by
default yet, needs more destructive testing first.
SGI-PV: 912426
SGI-Modid: xfs-linux:xfs-kern:198723a
Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log.h')
-rw-r--r-- | fs/xfs/xfs_log.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h index 18961119fc65..dc920f83412d 100644 --- a/fs/xfs/xfs_log.h +++ b/fs/xfs/xfs_log.h | |||
@@ -174,9 +174,12 @@ xfs_lsn_t xfs_log_done(struct xfs_mount *mp, | |||
174 | xfs_log_ticket_t ticket, | 174 | xfs_log_ticket_t ticket, |
175 | void **iclog, | 175 | void **iclog, |
176 | uint flags); | 176 | uint flags); |
177 | int xfs_log_force(struct xfs_mount *mp, | 177 | int _xfs_log_force(struct xfs_mount *mp, |
178 | xfs_lsn_t lsn, | 178 | xfs_lsn_t lsn, |
179 | uint flags); | 179 | uint flags, |
180 | int *log_forced); | ||
181 | #define xfs_log_force(mp, lsn, flags) \ | ||
182 | _xfs_log_force(mp, lsn, flags, NULL); | ||
180 | int xfs_log_mount(struct xfs_mount *mp, | 183 | int xfs_log_mount(struct xfs_mount *mp, |
181 | struct xfs_buftarg *log_target, | 184 | struct xfs_buftarg *log_target, |
182 | xfs_daddr_t start_block, | 185 | xfs_daddr_t start_block, |