1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00
This commit is contained in:
Joe Thornber 2001-09-26 17:07:10 +00:00
parent f9e8171a44
commit 1655d99716
2 changed files with 4 additions and 5 deletions

View File

@ -477,7 +477,6 @@ static struct address_space_operations dm_aops = {
static struct file_operations dm_file_operations = {
read: generic_file_read,
write: generic_file_write,
mmap: generic_file_mmap,
fsync: dmfs_sync_file,
release: dmfs_release,
};

View File

@ -172,7 +172,7 @@ static inline int check_space(struct dm_table *t)
/*
* convert a device path to a kdev_t.
*/
int lookup_device(const char *path, kdev_t dev)
int lookup_device(const char *path, kdev_t *dev)
{
int r;
struct nameidata nd;
@ -195,7 +195,7 @@ int lookup_device(const char *path, kdev_t dev)
goto bad;
}
dev = inode->i_bdev->bd_dev;
*dev = inode->i_bdev->bd_dev;
bad:
path_release(&nd);