Commit c056474c authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] dev_t handling cleanups (5/12)

removed bogus uses of ->i_sb->s_dev in intermezzo (comparizons can and
should simply compare ->i_sb, printks should use ->s_id).
parent 4b7ff05c
......@@ -66,8 +66,8 @@ int presto_i2m(struct inode *inode)
cache = presto_get_cache(inode);
CDEBUG(D_PSDEV, "\n");
if ( !cache ) {
CERROR("PRESTO: BAD: cannot find cache for dev %d, ino %ld\n",
inode->i_sb->s_dev, inode->i_ino);
CERROR("PRESTO: BAD: cannot find cache for dev %s, ino %ld\n",
inode->i_sb->s_id, inode->i_ino);
EXIT;
return -1;
}
......
......@@ -743,7 +743,7 @@ int presto_do_link(struct presto_file_set *fset, struct dentry *old_dentry,
goto exit_lock;
error = -EXDEV;
if (dir->d_inode->i_sb->s_dev != inode->i_sb->s_dev)
if (dir->d_inode->i_sb != inode->i_sb)
goto exit_lock;
/*
......@@ -1800,7 +1800,7 @@ int presto_rename_dir(struct presto_file_set *fset, struct dentry *old_parent,
if (error)
return error;
if (new_dir->i_sb->s_dev != old_dir->i_sb->s_dev)
if (new_dir->i_sb != old_dir->i_sb)
return -EXDEV;
if (!new_dentry->d_inode)
......@@ -1881,7 +1881,7 @@ int presto_rename_other(struct presto_file_set *fset, struct dentry *old_parent,
if (error)
return error;
if (new_dir->i_sb->s_dev != old_dir->i_sb->s_dev)
if (new_dir->i_sb != old_dir->i_sb)
return -EXDEV;
if (!new_dentry->d_inode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment