summaryrefslogtreecommitdiff
path: root/fs/aufs/hnotify.c
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-06-10 05:30:17 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-06-10 05:30:17 -0300
commitd635711daa98be86d4c7fd01499c34f566b54ccb (patch)
treeaa5cc3760a27c3d57146498cb82fa549547de06c /fs/aufs/hnotify.c
parentc91265cd0efb83778f015b4d4b1129bd2cfd075e (diff)
Linux-libre 4.6.2-gnu
Diffstat (limited to 'fs/aufs/hnotify.c')
-rw-r--r--fs/aufs/hnotify.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/aufs/hnotify.c b/fs/aufs/hnotify.c
index 92e432b6a..3016c5e73 100644
--- a/fs/aufs/hnotify.c
+++ b/fs/aufs/hnotify.c
@@ -60,12 +60,12 @@ void au_hn_ctl(struct au_hinode *hinode, int do_set)
void au_hn_reset(struct inode *inode, unsigned int flags)
{
- aufs_bindex_t bindex, bend;
+ aufs_bindex_t bindex, bbot;
struct inode *hi;
struct dentry *iwhdentry;
- bend = au_ibend(inode);
- for (bindex = au_ibstart(inode); bindex <= bend; bindex++) {
+ bbot = au_ibbot(inode);
+ for (bindex = au_ibtop(inode); bindex <= bbot; bindex++) {
hi = au_h_iptr(inode, bindex);
if (!hi)
continue;
@@ -89,7 +89,7 @@ void au_hn_reset(struct inode *inode, unsigned int flags)
static int hn_xino(struct inode *inode, struct inode *h_inode)
{
int err;
- aufs_bindex_t bindex, bend, bfound, bstart;
+ aufs_bindex_t bindex, bbot, bfound, btop;
struct inode *h_i;
err = 0;
@@ -99,15 +99,15 @@ static int hn_xino(struct inode *inode, struct inode *h_inode)
}
bfound = -1;
- bend = au_ibend(inode);
- bstart = au_ibstart(inode);
+ bbot = au_ibbot(inode);
+ btop = au_ibtop(inode);
#if 0 /* reserved for future use */
- if (bindex == bend) {
+ if (bindex == bbot) {
/* keep this ino in rename case */
goto out;
}
#endif
- for (bindex = bstart; bindex <= bend; bindex++)
+ for (bindex = btop; bindex <= bbot; bindex++)
if (au_h_iptr(inode, bindex) == h_inode) {
bfound = bindex;
break;
@@ -115,7 +115,7 @@ static int hn_xino(struct inode *inode, struct inode *h_inode)
if (bfound < 0)
goto out;
- for (bindex = bstart; bindex <= bend; bindex++) {
+ for (bindex = btop; bindex <= bbot; bindex++) {
h_i = au_h_iptr(inode, bindex);
if (!h_i)
continue;
@@ -420,7 +420,7 @@ static void au_hn_bh(void *_args)
{
struct au_hnotify_args *a = _args;
struct super_block *sb;
- aufs_bindex_t bindex, bend, bfound;
+ aufs_bindex_t bindex, bbot, bfound;
unsigned char xino, try_iput;
int err;
struct inode *inode;
@@ -451,8 +451,8 @@ static void au_hn_bh(void *_args)
ii_read_lock_parent(a->dir);
bfound = -1;
- bend = au_ibend(a->dir);
- for (bindex = au_ibstart(a->dir); bindex <= bend; bindex++)
+ bbot = au_ibbot(a->dir);
+ for (bindex = au_ibtop(a->dir); bindex <= bbot; bindex++)
if (au_h_iptr(a->dir, bindex) == a->h_dir) {
bfound = bindex;
break;