xfs: more reserved blocks fixups
authorEric Sandeen <sandeen@sandeen.net>
Fri, 5 Feb 2010 22:59:53 +0000 (22:59 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 8 Feb 2010 23:41:48 +0000 (17:41 -0600)
commitd5db0f97fbbeff11c88dec1aaf1536a975afbaeb
tree3e81db2cb8c5004f3c30ccaa35e54fbf1549897f
parent388f1f0c346b533b06d8bc792f7204ebc3e4b7da
xfs: more reserved blocks fixups

This mangles the reserved blocks counts a little more.

1) add a helper function for the default reserved count
2) add helper functions to save/restore counts on ro/rw
3) save/restore reserved blocks on freeze/thaw
4) disallow changing reserved count while readonly

V2: changed field name to match Dave's changes

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h