summaryrefslogtreecommitdiffstats
path: root/fs/ufs/ufs_fs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-06-17 21:44:06 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-06-17 23:22:42 +0200
commit77e9ce327d9b607cd6e57c0f4524a654dc59c4b1 (patch)
treecb2bc18c6c0e09e2af7f5bbc3ad007acc77c8ebf /fs/ufs/ufs_fs.h
parentufs_iget(): fail with -ESTALE on deleted inode (diff)
downloadlinux-77e9ce327d9b607cd6e57c0f4524a654dc59c4b1.tar.xz
linux-77e9ce327d9b607cd6e57c0f4524a654dc59c4b1.zip
ufs: fix the logics for tail relocation
* original hysteresis loop got broken by typo back in 2002; now it never switches out of OPTTIME state. Fixed. * critical levels for switching from OPTTIME to OPTSPACE and back ought to be calculated once, at mount time. * we should use mul_u64_u32_div() for those calculations, now that ->s_dsize is 64bit. * to quote Kirk McKusick (in 1995 FreeBSD commit message): The threshold for switching from time-space and space-time is too small when minfree is 5%...so make it stay at space in this case. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r--fs/ufs/ufs_fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ufs/ufs_fs.h b/fs/ufs/ufs_fs.h
index 823d55a37586..150eef6f1233 100644
--- a/fs/ufs/ufs_fs.h
+++ b/fs/ufs/ufs_fs.h
@@ -792,6 +792,8 @@ struct ufs_sb_private_info {
__s32 fs_magic; /* filesystem magic */
unsigned int s_dirblksize;
__u64 s_root_blocks;
+ __u64 s_time_to_space;
+ __u64 s_space_to_time;
};
/*