mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
o typos
This commit is contained in:
parent
f9e8171a44
commit
1655d99716
@ -49,7 +49,7 @@ static int is_identifier(const char *str, int len)
|
||||
{
|
||||
if (len > DM_NAME_LEN - 1)
|
||||
return 0;
|
||||
|
||||
|
||||
while(len--) {
|
||||
if (!isalnum(*str) && *str != '_')
|
||||
return 0;
|
||||
@ -119,7 +119,7 @@ static struct file *open_error_file(struct file *table)
|
||||
/* Create error file */
|
||||
strcat(name, ".err");
|
||||
f = filp_open(name, O_WRONLY | O_TRUNC | O_CREAT, S_IRUGO);
|
||||
|
||||
|
||||
kfree(buffer);
|
||||
|
||||
if (f)
|
||||
@ -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,
|
||||
};
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user