diff options
author | jh <jh@FreeBSD.org> | 2010-01-13 14:17:21 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2010-01-13 14:17:21 +0000 |
commit | 37c0c9cce16364c5c895fb291167789592a6af87 (patch) | |
tree | 9cefcd12d57c45a2ad4078270ee3300cacefacdd /sys/fs/tmpfs/tmpfs_vfsops.c | |
parent | 028e43e0f75e457b7b5a88b9c7024a9c1898b990 (diff) | |
download | FreeBSD-src-37c0c9cce16364c5c895fb291167789592a6af87.zip FreeBSD-src-37c0c9cce16364c5c895fb291167789592a6af87.tar.gz |
- Fix some style bugs in tmpfs_mount(). [1]
- Remove a stale comment about tmpfs_mem_info() 'total' argument.
Reported by: bde [1]
Diffstat (limited to 'sys/fs/tmpfs/tmpfs_vfsops.c')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vfsops.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index d18bccd..e80e5af 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -185,15 +185,15 @@ tmpfs_mount(struct mount *mp) ino_t nodes; int error; /* Size counters. */ - ino_t nodes_max; - u_quad_t size_max; + ino_t nodes_max; + u_quad_t size_max; /* Root node attributes. */ - uid_t root_uid; - gid_t root_gid; - mode_t root_mode; + uid_t root_uid; + gid_t root_gid; + mode_t root_mode; - struct vattr va; + struct vattr va; if (vfs_filteropt(mp->mnt_optnew, tmpfs_opts)) return (EINVAL); @@ -239,7 +239,7 @@ tmpfs_mount(struct mount *mp) * allowed to use, based on the maximum size the user passed in * the mount structure. A value of zero is treated as if the * maximum available space was requested. */ - if (size_max < PAGE_SIZE || size_max > (SIZE_MAX - PAGE_SIZE)) + if (size_max < PAGE_SIZE || size_max > SIZE_MAX - PAGE_SIZE) pages = SIZE_MAX; else pages = howmany(size_max, PAGE_SIZE); |