Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19635
b: refs/heads/master
c: e295cfc
h: refs/heads/master
i:
  19633: 3e14799
  19631: eb19ce3
v: v3
  • Loading branch information
Evgeniy Dushistov authored and Linus Torvalds committed Feb 3, 2006
1 parent e747591 commit f575cc1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19dfe31c29e0ebb88cf1cd2211da3e2ff2a26d52
refs/heads/master: e295cfcb2907ae4c5df57f5d4ada1ce6f3ae4657
10 changes: 6 additions & 4 deletions trunk/fs/ufs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ static int ufs_parse_options (char * options, unsigned * mount_options)
/*
* Read on-disk structures associated with cylinder groups
*/
static int ufs_read_cylinder_structures (struct super_block *sb) {
static int ufs_read_cylinder_structures (struct super_block *sb)
{
struct ufs_sb_info * sbi = UFS_SB(sb);
struct ufs_sb_private_info * uspi;
struct ufs_super_block *usb;
Expand All @@ -415,6 +416,7 @@ static int ufs_read_cylinder_structures (struct super_block *sb) {
base = space = kmalloc(size, GFP_KERNEL);
if (!base)
goto failed;
sbi->s_csp = (struct ufs_csum *)space;
for (i = 0; i < blks; i += uspi->s_fpb) {
size = uspi->s_bsize;
if (i + uspi->s_fpb > blks)
Expand All @@ -430,7 +432,6 @@ static int ufs_read_cylinder_structures (struct super_block *sb) {
goto failed;

ubh_ubhcpymem (space, ubh, size);
sbi->s_csp[ufs_fragstoblks(i)]=(struct ufs_csum *)space;

space += size;
ubh_brelse (ubh);
Expand Down Expand Up @@ -486,7 +487,8 @@ static int ufs_read_cylinder_structures (struct super_block *sb) {
* Put on-disk structures associated with cylinder groups and
* write them back to disk
*/
static void ufs_put_cylinder_structures (struct super_block *sb) {
static void ufs_put_cylinder_structures (struct super_block *sb)
{
struct ufs_sb_info * sbi = UFS_SB(sb);
struct ufs_sb_private_info * uspi;
struct ufs_buffer_head * ubh;
Expand All @@ -499,7 +501,7 @@ static void ufs_put_cylinder_structures (struct super_block *sb) {

size = uspi->s_cssize;
blks = (size + uspi->s_fsize - 1) >> uspi->s_fshift;
base = space = (char*) sbi->s_csp[0];
base = space = (char*) sbi->s_csp;
for (i = 0; i < blks; i += uspi->s_fpb) {
size = uspi->s_bsize;
if (i + uspi->s_fpb > blks)
Expand Down
3 changes: 1 addition & 2 deletions trunk/include/linux/ufs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,7 @@ struct ufs_super_block {
/*
* Convert cylinder group to base address of its global summary info.
*/
#define fs_cs(indx) \
s_csp[(indx) >> uspi->s_csshift][(indx) & ~uspi->s_csmask]
#define fs_cs(indx) s_csp[(indx)]

/*
* Cylinder group block for a file system.
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/ufs_fs_sb.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct ufs_csum;

struct ufs_sb_info {
struct ufs_sb_private_info * s_uspi;
struct ufs_csum * s_csp[UFS_MAXCSBUFS];
struct ufs_csum * s_csp;
unsigned s_bytesex;
unsigned s_flags;
struct buffer_head ** s_ucg;
Expand Down

0 comments on commit f575cc1

Please sign in to comment.