Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40504
b: refs/heads/master
c: 5f75a4f
h: refs/heads/master
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Oct 31, 2006
1 parent db56734 commit a9f50e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 7d314e346d6081e8013a96206e601a48528d8f60
refs/heads/master: 5f75a4f887a35b99878fc07ed749a90375194b63
12 changes: 6 additions & 6 deletions trunk/arch/um/drivers/ubd_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ static int ubd_file_size(struct ubd *ubd_dev, __u64 *size_out)
return(os_file_size(file, size_out));
}

static void ubd_close(struct ubd *ubd_dev)
static void ubd_close_dev(struct ubd *ubd_dev)
{
os_close_file(ubd_dev->fd);
if(ubd_dev->cow.file == NULL)
Expand Down Expand Up @@ -624,7 +624,7 @@ static int ubd_open_dev(struct ubd *ubd_dev)
return(err);
}

static int ubd_new_disk(int major, u64 size, int unit,
static int ubd_disk_register(int major, u64 size, int unit,
struct gendisk **disk_out)

{
Expand Down Expand Up @@ -676,12 +676,12 @@ static int ubd_add(int n)

ubd_dev->size = ROUND_BLOCK(ubd_dev->size);

err = ubd_new_disk(MAJOR_NR, ubd_dev->size, n, &ubd_gendisk[n]);
err = ubd_disk_register(MAJOR_NR, ubd_dev->size, n, &ubd_gendisk[n]);
if(err)
goto out;

if(fake_major != MAJOR_NR)
ubd_new_disk(fake_major, ubd_dev->size, n,
ubd_disk_register(fake_major, ubd_dev->size, n,
&fake_gendisk[n]);

/* perhaps this should also be under the "if (fake_major)" above */
Expand Down Expand Up @@ -898,7 +898,7 @@ static int ubd_open(struct inode *inode, struct file *filp)
/* This should no more be needed. And it didn't work anyway to exclude
* read-write remounting of filesystems.*/
/*if((filp->f_mode & FMODE_WRITE) && !ubd_dev->openflags.w){
if(--ubd_dev->count == 0) ubd_close(ubd_dev);
if(--ubd_dev->count == 0) ubd_close_dev(ubd_dev);
err = -EROFS;
}*/
out:
Expand All @@ -911,7 +911,7 @@ static int ubd_release(struct inode * inode, struct file * file)
struct ubd *ubd_dev = disk->private_data;

if(--ubd_dev->count == 0)
ubd_close(ubd_dev);
ubd_close_dev(ubd_dev);
return(0);
}

Expand Down

0 comments on commit a9f50e0

Please sign in to comment.