Skip to content

Commit 1fc5adb

Browse files
Josef SipekLinus Torvalds
authored andcommitted
[PATCH] struct path: convert reiserfs
Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent a57c4d6 commit 1fc5adb

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎fs/reiserfs/dir.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static int reiserfs_dir_fsync(struct file *filp, struct dentry *dentry,
4545
//
4646
static int reiserfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
4747
{
48-
struct inode *inode = filp->f_dentry->d_inode;
48+
struct inode *inode = filp->f_path.dentry->d_inode;
4949
struct cpu_key pos_key; /* key of current position in the directory (key of directory entry) */
5050
INITIALIZE_PATH(path_to_entry);
5151
struct buffer_head *bh;
@@ -135,7 +135,7 @@ static int reiserfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
135135
/* Ignore the .reiserfs_priv entry */
136136
if (reiserfs_xattrs(inode->i_sb) &&
137137
!old_format_only(inode->i_sb) &&
138-
filp->f_dentry == inode->i_sb->s_root &&
138+
filp->f_path.dentry == inode->i_sb->s_root &&
139139
REISERFS_SB(inode->i_sb)->priv_root &&
140140
REISERFS_SB(inode->i_sb)->priv_root->d_inode
141141
&& deh_objectid(deh) ==

‎fs/reiserfs/file.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ static ssize_t reiserfs_file_write(struct file *file, /* the file we are going t
12881288
loff_t pos; // Current position in the file.
12891289
ssize_t res; // return value of various functions that we call.
12901290
int err = 0;
1291-
struct inode *inode = file->f_dentry->d_inode; // Inode of the file that we are writing to.
1291+
struct inode *inode = file->f_path.dentry->d_inode; // Inode of the file that we are writing to.
12921292
/* To simplify coding at this time, we store
12931293
locked pages in array for now */
12941294
struct page *prepared_pages[REISERFS_WRITE_PAGES_AT_A_TIME];
@@ -1335,7 +1335,7 @@ static ssize_t reiserfs_file_write(struct file *file, /* the file we are going t
13351335
if (count == 0)
13361336
goto out;
13371337

1338-
res = remove_suid(file->f_dentry);
1338+
res = remove_suid(file->f_path.dentry);
13391339
if (res)
13401340
goto out;
13411341

‎fs/reiserfs/ioctl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int reiserfs_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
9999
long reiserfs_compat_ioctl(struct file *file, unsigned int cmd,
100100
unsigned long arg)
101101
{
102-
struct inode *inode = file->f_dentry->d_inode;
102+
struct inode *inode = file->f_path.dentry->d_inode;
103103
int ret;
104104

105105
/* These are just misnamed, they actually get/put from/to user an int */

‎fs/reiserfs/procfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ static int show_oidmap(struct seq_file *m, struct super_block *sb)
295295
}
296296
#if defined( REISERFS_USE_OIDMAPF )
297297
if (sb_info->oidmap.use_file && (sb_info->oidmap.mapf != NULL)) {
298-
loff_t size = sb_info->oidmap.mapf->f_dentry->d_inode->i_size;
298+
loff_t size = sb_info->oidmap.mapf->f_path.dentry->d_inode->i_size;
299299
total_used += size / sizeof(reiserfs_oidinterval_d_t);
300300
}
301301
#endif

‎fs/reiserfs/xattr.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ static struct file *open_xa_file(const struct inode *inode, const char *name,
274274
*/
275275
static int __xattr_readdir(struct file *filp, void *dirent, filldir_t filldir)
276276
{
277-
struct inode *inode = filp->f_dentry->d_inode;
277+
struct inode *inode = filp->f_path.dentry->d_inode;
278278
struct cpu_key pos_key; /* key of current position in the directory (key of directory entry) */
279279
INITIALIZE_PATH(path_to_entry);
280280
struct buffer_head *bh;
@@ -420,7 +420,7 @@ static int __xattr_readdir(struct file *filp, void *dirent, filldir_t filldir)
420420
static
421421
int xattr_readdir(struct file *file, filldir_t filler, void *buf)
422422
{
423-
struct inode *inode = file->f_dentry->d_inode;
423+
struct inode *inode = file->f_path.dentry->d_inode;
424424
int res = -ENOTDIR;
425425
if (!file->f_op || !file->f_op->readdir)
426426
goto out;
@@ -508,7 +508,7 @@ reiserfs_xattr_set(struct inode *inode, const char *name, const void *buffer,
508508
goto out;
509509
}
510510

511-
xinode = fp->f_dentry->d_inode;
511+
xinode = fp->f_path.dentry->d_inode;
512512
REISERFS_I(inode)->i_flags |= i_has_xattr_dir;
513513

514514
/* we need to copy it off.. */
@@ -527,7 +527,7 @@ reiserfs_xattr_set(struct inode *inode, const char *name, const void *buffer,
527527
newattrs.ia_size = buffer_size;
528528
newattrs.ia_valid = ATTR_SIZE | ATTR_CTIME;
529529
mutex_lock(&xinode->i_mutex);
530-
err = notify_change(fp->f_dentry, &newattrs);
530+
err = notify_change(fp->f_path.dentry, &newattrs);
531531
if (err)
532532
goto out_filp;
533533

@@ -626,7 +626,7 @@ reiserfs_xattr_get(const struct inode *inode, const char *name, void *buffer,
626626
goto out;
627627
}
628628

629-
xinode = fp->f_dentry->d_inode;
629+
xinode = fp->f_path.dentry->d_inode;
630630
isize = xinode->i_size;
631631
REISERFS_I(inode)->i_flags |= i_has_xattr_dir;
632632

0 commit comments

Comments
 (0)