1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

o Tidy up, removing debugging printk's no longer needed

This commit is contained in:
Steven Whitehouse 2001-10-16 10:38:13 +00:00
parent 60b134b53c
commit dfe0a65d93
3 changed files with 9 additions and 14 deletions

View File

@ -160,8 +160,8 @@ static int is_identifier(const char *str, int len)
static int dmfs_lv_mkdir(struct inode *dir, struct dentry *dentry, int mode)
{
struct inode *inode;
int rv = -ENOSPC;
printk("lv mkdir\n");
if (dentry->d_name.len >= DM_NAME_LEN)
return -EINVAL;
@ -174,14 +174,14 @@ static int dmfs_lv_mkdir(struct inode *dir, struct dentry *dentry, int mode)
if (dentry->d_name.name[0] == '.')
return -EINVAL;
printk("try create new tdir\n");
inode = dmfs_create_tdir(dir->i_sb, mode);
if (!IS_ERR(inode)) {
if (inode) {
d_instantiate(dentry, inode);
dget(dentry);
return 0;
rv = 0;
}
return PTR_ERR(inode);
return rv;
}
/*
@ -271,7 +271,6 @@ struct inode *dmfs_create_lv(struct super_block *sb, int mode, struct dentry *de
return NULL;
}
DMFS_I(inode)->md = md;
printk("created new lv\n");
}
return inode;

View File

@ -42,6 +42,7 @@ static int is_identifier(const char *str, int len)
static int dmfs_root_mkdir(struct inode *dir, struct dentry *dentry, int mode)
{
struct inode *inode;
int rv = -ENOSPC;
if (dentry->d_name.len >= DM_NAME_LEN)
return -EINVAL;
@ -53,12 +54,12 @@ static int dmfs_root_mkdir(struct inode *dir, struct dentry *dentry, int mode)
return -EINVAL;
inode = dmfs_create_lv(dir->i_sb, mode, dentry);
if (!IS_ERR(inode)) {
if (inode) {
d_instantiate(dentry, inode);
dget(dentry);
return 0;
rv = 0;
}
return PTR_ERR(inode);
return rv;
}
/*
@ -98,7 +99,6 @@ static int dmfs_root_rmdir(struct inode *dir, struct dentry *dentry)
if (empty(dentry)) {
struct inode *inode = dentry->d_inode;
ret = dm_deactivate(DMFS_I(inode)->md);
printk("ret=%d\n", ret);
if (ret == 0) {
inode->i_nlink--;
dput(dentry);

View File

@ -46,8 +46,6 @@ static struct dentry *dmfs_tdir_lookup(struct inode *dir, struct dentry *dentry)
struct inode *inode = NULL;
const char *name = dentry->d_name.name;
printk("tdir lookup\n");
switch(dentry->d_name.len) {
case 5:
if (memcmp("table", name, 5) == 0) {
@ -72,8 +70,6 @@ static int dmfs_tdir_readdir(struct file *filp, void *dirent, filldir_t filldir)
int i;
struct dentry *dentry = filp->f_dentry;
printk("tdir readdir\n");
i = filp->f_pos;
switch(i) {
case 0: