Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17562
b: refs/heads/master
c: 9cf6f4b
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Jan 10, 2006
1 parent 24b30ef commit 71855ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 870f481793b585323fbda3e87c54efc116f46351
refs/heads/master: 9cf6f4b3a3d24d8a41515b509b8fb6448f9201e9
18 changes: 9 additions & 9 deletions trunk/fs/autofs4/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int autofs4_root_readdir(struct file *file, void *dirent,

/* Update usage from here to top of tree, so that scan of
top-level directories will give a useful result */
static void autofs4_update_usage(struct dentry *dentry)
static void autofs4_update_usage(struct vfsmount *mnt, struct dentry *dentry)
{
struct dentry *top = dentry->d_sb->s_root;

Expand All @@ -95,7 +95,7 @@ static void autofs4_update_usage(struct dentry *dentry)
struct autofs_info *ino = autofs4_dentry_ino(dentry);

if (ino) {
update_atime(dentry->d_inode);
touch_atime(mnt, dentry);
ino->last_used = jiffies;
}
}
Expand Down Expand Up @@ -289,10 +289,10 @@ static int autofs4_dir_readdir(struct file *file, void *dirent, filldir_t filldi
return autofs4_dcache_readdir(file, dirent, filldir);
}

static int try_to_fill_dentry(struct dentry *dentry,
struct super_block *sb,
struct autofs_sb_info *sbi, int flags)
static int try_to_fill_dentry(struct vfsmount *mnt, struct dentry *dentry, int flags)
{
struct super_block *sb = mnt->mnt_sb;
struct autofs_sb_info *sbi = autofs4_sbi(sb);
struct autofs_info *de_info = autofs4_dentry_ino(dentry);
int status = 0;

Expand Down Expand Up @@ -367,7 +367,7 @@ static int try_to_fill_dentry(struct dentry *dentry,
/* We don't update the usages for the autofs daemon itself, this
is necessary for recursive autofs mounts */
if (!autofs4_oz_mode(sbi))
autofs4_update_usage(dentry);
autofs4_update_usage(mnt, dentry);

spin_lock(&dentry->d_lock);
dentry->d_flags &= ~DCACHE_AUTOFS_PENDING;
Expand All @@ -392,7 +392,7 @@ static int autofs4_revalidate(struct dentry * dentry, struct nameidata *nd)
/* Pending dentry */
if (autofs4_ispending(dentry)) {
if (!oz_mode)
status = try_to_fill_dentry(dentry, dir->i_sb, sbi, flags);
status = try_to_fill_dentry(nd->mnt, dentry, flags);
return status;
}

Expand All @@ -409,14 +409,14 @@ static int autofs4_revalidate(struct dentry * dentry, struct nameidata *nd)
dentry, dentry->d_name.len, dentry->d_name.name);
spin_unlock(&dcache_lock);
if (!oz_mode)
status = try_to_fill_dentry(dentry, dir->i_sb, sbi, flags);
status = try_to_fill_dentry(nd->mnt, dentry, flags);
return status;
}
spin_unlock(&dcache_lock);

/* Update the usage list */
if (!oz_mode)
autofs4_update_usage(dentry);
autofs4_update_usage(nd->mnt, dentry);

return 1;
}
Expand Down

0 comments on commit 71855ad

Please sign in to comment.