Skip to content

Commit

Permalink
aufs: fixes for linux-6.7.y
Browse files Browse the repository at this point in the history
  • Loading branch information
tombriden committed Jan 17, 2024
1 parent 6a39b5d commit 14277ff
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion fs/aufs/branch.c
Expand Up @@ -1293,7 +1293,7 @@ static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex)
if (hf->f_mode & FMODE_READ)
i_readcount_inc(h_inode);
put_write_access(h_inode);
__mnt_drop_write(hf->f_path.mnt);
mnt_put_write_access(hf->f_path.mnt);
}
}

Expand Down
8 changes: 4 additions & 4 deletions fs/aufs/cpup.c
Expand Up @@ -133,8 +133,8 @@ void au_dtime_store(struct au_dtime *dt, struct dentry *dentry,
dt->dt_dentry = dentry;
dt->dt_h_path = *h_path;
h_inode = d_inode(h_path->dentry);
dt->dt_atime = h_inode->i_atime;
dt->dt_mtime = h_inode->i_mtime;
dt->dt_atime = h_inode->__i_atime;
dt->dt_mtime = h_inode->__i_mtime;
/* smp_mb(); */
}

Expand Down Expand Up @@ -200,8 +200,8 @@ int cpup_iattr(struct dentry *dst, aufs_bindex_t bindex, struct path *h_src,
} else {
ia.ia_uid = h_isrc->i_uid;
ia.ia_gid = h_isrc->i_gid;
ia.ia_atime = h_isrc->i_atime;
ia.ia_mtime = h_isrc->i_mtime;
ia.ia_atime = h_isrc->__i_atime;
ia.ia_mtime = h_isrc->__i_mtime;
if (h_idst->i_mode != h_isrc->i_mode
&& !S_ISLNK(h_idst->i_mode)) {
ia.ia_valid |= ATTR_MODE;
Expand Down
2 changes: 1 addition & 1 deletion fs/aufs/dir.c
Expand Up @@ -145,7 +145,7 @@ static void au_do_dir_ts(void *arg)
au_hn_inode_lock_nested(hdir, AuLsc_I_PARENT);
h_dir = au_h_iptr(dir, btop);
if (h_dir->i_nlink
&& timespec64_compare(&h_dir->i_mtime, &dt.dt_mtime) < 0) {
&& timespec64_compare(&h_dir->__i_mtime, &dt.dt_mtime) < 0) {
dt.dt_h_path = h_path;
au_dtime_revert(&dt);
}
Expand Down
4 changes: 2 additions & 2 deletions fs/aufs/i_op.c
Expand Up @@ -1167,8 +1167,8 @@ static void au_refresh_iattr(struct inode *inode, struct kstat *st,
/* don't i_[ug]id_write() here */
inode->i_uid = st->uid;
inode->i_gid = st->gid;
inode->i_atime = st->atime;
inode->i_mtime = st->mtime;
inode->__i_atime = st->atime;
inode->__i_mtime = st->mtime;
inode_set_ctime_to_ts(inode, st->ctime);

au_cpup_attr_nlink(inode, /*force*/0);
Expand Down
2 changes: 1 addition & 1 deletion fs/aufs/vfsub.h
Expand Up @@ -33,7 +33,7 @@

/* copied from linux/fs/internal.h */
/* todo: BAD approach!! */
extern void __mnt_drop_write(struct vfsmount *);
extern void mnt_put_write_access(struct vfsmount *);
extern struct file *alloc_empty_file(int, const struct cred *);

/* ---------------------------------------------------------------------- */
Expand Down
1 change: 0 additions & 1 deletion fs/namespace.c
Expand Up @@ -489,7 +489,6 @@ void mnt_put_write_access_file(struct file *file)
if (!(file->f_mode & FMODE_WRITER))
mnt_put_write_access(file->f_path.mnt);
}
EXPORT_SYMBOL_GPL(__mnt_drop_write);

void mnt_drop_write_file(struct file *file)
{
Expand Down
2 changes: 1 addition & 1 deletion fs/proc/base.c
Expand Up @@ -2214,7 +2214,7 @@ static int map_files_get_link(struct dentry *dentry, struct path *path)
rc = -ENOENT;
vma = find_exact_vma(mm, vm_start, vm_end);
if (vma && vma->vm_file) {
*path = *file_user_path(vma->vm_file);
*path = vma_pr_or_file(vma)->f_path;
path_get(path);
rc = 0;
}
Expand Down

0 comments on commit 14277ff

Please sign in to comment.