Commit c649bb9c authored by Josef Sipek's avatar Josef Sipek Committed by Linus Torvalds

[PATCH] struct path: convert md

Signed-off-by: default avatarJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 225a719f
...@@ -212,8 +212,8 @@ char *file_path(struct file *file, char *buf, int count) ...@@ -212,8 +212,8 @@ char *file_path(struct file *file, char *buf, int count)
if (!buf) if (!buf)
return NULL; return NULL;
d = file->f_dentry; d = file->f_path.dentry;
v = file->f_vfsmnt; v = file->f_path.mnt;
buf = d_path(d, v, buf, count); buf = d_path(d, v, buf, count);
...@@ -349,7 +349,7 @@ static struct page *read_page(struct file *file, unsigned long index, ...@@ -349,7 +349,7 @@ static struct page *read_page(struct file *file, unsigned long index,
unsigned long count) unsigned long count)
{ {
struct page *page = NULL; struct page *page = NULL;
struct inode *inode = file->f_dentry->d_inode; struct inode *inode = file->f_path.dentry->d_inode;
struct buffer_head *bh; struct buffer_head *bh;
sector_t block; sector_t block;
...@@ -662,7 +662,7 @@ static void bitmap_file_put(struct bitmap *bitmap) ...@@ -662,7 +662,7 @@ static void bitmap_file_put(struct bitmap *bitmap)
bitmap_file_unmap(bitmap); bitmap_file_unmap(bitmap);
if (file) { if (file) {
struct inode *inode = file->f_dentry->d_inode; struct inode *inode = file->f_path.dentry->d_inode;
invalidate_inode_pages(inode->i_mapping); invalidate_inode_pages(inode->i_mapping);
fput(file); fput(file);
} }
......
...@@ -108,7 +108,7 @@ static int linear_ioctl(struct dm_target *ti, struct inode *inode, ...@@ -108,7 +108,7 @@ static int linear_ioctl(struct dm_target *ti, struct inode *inode,
struct dentry fake_dentry = {}; struct dentry fake_dentry = {};
fake_file.f_mode = lc->dev->mode; fake_file.f_mode = lc->dev->mode;
fake_file.f_dentry = &fake_dentry; fake_file.f_path.dentry = &fake_dentry;
fake_dentry.d_inode = bdev->bd_inode; fake_dentry.d_inode = bdev->bd_inode;
return blkdev_driver_ioctl(bdev->bd_inode, &fake_file, bdev->bd_disk, cmd, arg); return blkdev_driver_ioctl(bdev->bd_inode, &fake_file, bdev->bd_disk, cmd, arg);
......
...@@ -1272,7 +1272,7 @@ static int multipath_ioctl(struct dm_target *ti, struct inode *inode, ...@@ -1272,7 +1272,7 @@ static int multipath_ioctl(struct dm_target *ti, struct inode *inode,
struct dentry fake_dentry = {}; struct dentry fake_dentry = {};
int r = 0; int r = 0;
fake_file.f_dentry = &fake_dentry; fake_file.f_path.dentry = &fake_dentry;
spin_lock_irqsave(&m->lock, flags); spin_lock_irqsave(&m->lock, flags);
......
...@@ -4846,8 +4846,8 @@ static int md_seq_show(struct seq_file *seq, void *v) ...@@ -4846,8 +4846,8 @@ static int md_seq_show(struct seq_file *seq, void *v)
chunk_kb ? "KB" : "B"); chunk_kb ? "KB" : "B");
if (bitmap->file) { if (bitmap->file) {
seq_printf(seq, ", file: "); seq_printf(seq, ", file: ");
seq_path(seq, bitmap->file->f_vfsmnt, seq_path(seq, bitmap->file->f_path.mnt,
bitmap->file->f_dentry," \t\n"); bitmap->file->f_path.dentry," \t\n");
} }
seq_printf(seq, "\n"); seq_printf(seq, "\n");
......
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