diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-06-10 05:30:17 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-06-10 05:30:17 -0300 |
commit | d635711daa98be86d4c7fd01499c34f566b54ccb (patch) | |
tree | aa5cc3760a27c3d57146498cb82fa549547de06c /fs/aufs/cpup.c | |
parent | c91265cd0efb83778f015b4d4b1129bd2cfd075e (diff) |
Linux-libre 4.6.2-gnu
Diffstat (limited to 'fs/aufs/cpup.c')
-rw-r--r-- | fs/aufs/cpup.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/fs/aufs/cpup.c b/fs/aufs/cpup.c index 9ff0963ad..dbf96fd60 100644 --- a/fs/aufs/cpup.c +++ b/fs/aufs/cpup.c @@ -27,7 +27,7 @@ void au_cpup_attr_timesizes(struct inode *inode) { struct inode *h_inode; - h_inode = au_h_iptr(inode, au_ibstart(inode)); + h_inode = au_h_iptr(inode, au_ibtop(inode)); fsstack_copy_attr_times(inode, h_inode); fsstack_copy_inode_size(inode, h_inode); } @@ -36,10 +36,10 @@ void au_cpup_attr_nlink(struct inode *inode, int force) { struct inode *h_inode; struct super_block *sb; - aufs_bindex_t bindex, bend; + aufs_bindex_t bindex, bbot; sb = inode->i_sb; - bindex = au_ibstart(inode); + bindex = au_ibtop(inode); h_inode = au_h_iptr(inode, bindex); if (!force && !S_ISDIR(h_inode->i_mode) @@ -62,8 +62,8 @@ void au_cpup_attr_nlink(struct inode *inode, int force) * it may includes whplink directory. */ if (S_ISDIR(h_inode->i_mode)) { - bend = au_ibend(inode); - for (bindex++; bindex <= bend; bindex++) { + bbot = au_ibbot(inode); + for (bindex++; bindex <= bbot; bindex++) { h_inode = au_h_iptr(inode, bindex); if (h_inode) au_add_nlink(inode, h_inode); @@ -75,7 +75,7 @@ void au_cpup_attr_changeable(struct inode *inode) { struct inode *h_inode; - h_inode = au_h_iptr(inode, au_ibstart(inode)); + h_inode = au_h_iptr(inode, au_ibtop(inode)); inode->i_mode = h_inode->i_mode; inode->i_uid = h_inode->i_uid; inode->i_gid = h_inode->i_gid; @@ -97,7 +97,7 @@ void au_cpup_attr_all(struct inode *inode, int force) { struct inode *h_inode; - h_inode = au_h_iptr(inode, au_ibstart(inode)); + h_inode = au_h_iptr(inode, au_ibtop(inode)); au_cpup_attr_changeable(inode); if (inode->i_nlink > 0) au_cpup_attr_nlink(inode, force); @@ -554,7 +554,7 @@ static int au_do_cpup_dir(struct au_cp_generic *cpg, struct dentry *dst_parent, * particularry setattr case */ dir = d_inode(dst_parent); - if (au_ibstart(dir) == cpg->bdst) + if (au_ibtop(dir) == cpg->bdst) au_cpup_attr_nlink(dir, /*force*/1); inode = d_inode(cpg->dentry); au_cpup_attr_nlink(inode, /*force*/1); @@ -715,7 +715,7 @@ out: static int au_cpup_single(struct au_cp_generic *cpg, struct dentry *dst_parent) { int err, rerr; - aufs_bindex_t old_ibstart; + aufs_bindex_t old_ibtop; unsigned char isdir, plink; struct dentry *h_src, *h_dst, *h_parent; struct inode *dst_inode, *h_dir, *inode, *delegated, *src_inode; @@ -803,7 +803,7 @@ static int au_cpup_single(struct au_cp_generic *cpg, struct dentry *dst_parent) } isdir = S_ISDIR(inode->i_mode); - old_ibstart = au_ibstart(inode); + old_ibtop = au_ibtop(inode); err = cpup_entry(cpg, dst_parent, &a->h_src_attr); if (unlikely(err)) goto out_rev; @@ -820,7 +820,7 @@ static int au_cpup_single(struct au_cp_generic *cpg, struct dentry *dst_parent) goto out_rev; } - if (cpg->bdst < old_ibstart) { + if (cpg->bdst < old_ibtop) { if (S_ISREG(inode->i_mode)) { err = au_dy_iaop(inode, cpg->bdst, dst_inode); if (unlikely(err)) { @@ -830,9 +830,9 @@ static int au_cpup_single(struct au_cp_generic *cpg, struct dentry *dst_parent) goto out_rev; } } - au_set_ibstart(inode, cpg->bdst); + au_set_ibtop(inode, cpg->bdst); } else - au_set_ibend(inode, cpg->bdst); + au_set_ibbot(inode, cpg->bdst); au_set_h_iptr(inode, cpg->bdst, au_igrab(dst_inode), au_hi_flags(inode, isdir)); @@ -988,7 +988,7 @@ static int au_cpup_simple(struct au_cp_generic *cpg) /* revert */ au_set_h_dptr(dentry, cpg->bdst, NULL); - au_set_dbstart(dentry, cpg->bsrc); + au_set_dbtop(dentry, cpg->bsrc); } return err; @@ -1050,20 +1050,20 @@ out: int au_sio_cpup_simple(struct au_cp_generic *cpg) { - aufs_bindex_t bsrc, bend; + aufs_bindex_t bsrc, bbot; struct dentry *dentry, *h_dentry; if (cpg->bsrc < 0) { dentry = cpg->dentry; - bend = au_dbend(dentry); - for (bsrc = cpg->bdst + 1; bsrc <= bend; bsrc++) { + bbot = au_dbbot(dentry); + for (bsrc = cpg->bdst + 1; bsrc <= bbot; bsrc++) { h_dentry = au_h_dptr(dentry, bsrc); if (h_dentry) { AuDebugOn(d_is_negative(h_dentry)); break; } } - AuDebugOn(bsrc > bend); + AuDebugOn(bsrc > bbot); cpg->bsrc = bsrc; } AuDebugOn(cpg->bsrc <= cpg->bdst); @@ -1095,10 +1095,10 @@ static int au_do_cpup_wh(struct au_cp_generic *cpg, struct dentry *wh_dentry, AuRwMustWriteLock(&dinfo->di_rwsem); bsrc_orig = cpg->bsrc; - cpg->bsrc = dinfo->di_bstart; + cpg->bsrc = dinfo->di_btop; hdp = dinfo->di_hdentry; h_d_dst = hdp[0 + cpg->bdst].hd_dentry; - dinfo->di_bstart = cpg->bdst; + dinfo->di_btop = cpg->bdst; hdp[0 + cpg->bdst].hd_dentry = wh_dentry; h_d_start = NULL; if (file) { @@ -1115,7 +1115,7 @@ static int au_do_cpup_wh(struct au_cp_generic *cpg, struct dentry *wh_dentry, hdp[0 + cpg->bsrc].hd_dentry = h_d_start; } hdp[0 + cpg->bdst].hd_dentry = h_d_dst; - dinfo->di_bstart = cpg->bsrc; + dinfo->di_btop = cpg->bsrc; cpg->bsrc = bsrc_orig; return err; @@ -1299,7 +1299,7 @@ int au_cp_dirs(struct dentry *dentry, aufs_bindex_t bdst, h_dentry = au_h_dptr(d, bdst); if (!h_dentry || d_is_negative(h_dentry)) { if (h_dentry) - au_update_dbstart(d); + au_update_dbtop(d); au_pin_set_dentry(&pin, d); err = au_do_pin(&pin); |