Lines Matching refs:fi
31 struct fuse_inode *fi = get_fuse_inode(dir); in fuse_advise_use_readdirplus() local
33 set_bit(FUSE_I_ADVISE_RDPLUS, &fi->state); in fuse_advise_use_readdirplus()
181 static bool backing_data_changed(struct fuse_inode *fi, struct dentry *entry, in backing_data_changed() argument
190 if (!entry || !fi->backing_inode) { in backing_data_changed()
196 new_backing_inode = fi->backing_inode; in backing_data_changed()
208 ret = (bpf != fi->bpf || fi->backing_inode != new_backing_inode || in backing_data_changed()
237 struct fuse_inode *fi; in fuse_dentry_revalidate() local
303 fi = get_fuse_inode(inode); in fuse_dentry_revalidate()
307 backing_data_changed(fi, entry, &bpf_arg)) || in fuse_dentry_revalidate()
314 spin_lock(&fi->lock); in fuse_dentry_revalidate()
315 fi->nlookup++; in fuse_dentry_revalidate()
316 spin_unlock(&fi->lock); in fuse_dentry_revalidate()
331 fi = get_fuse_inode(inode); in fuse_dentry_revalidate()
333 if (test_bit(FUSE_I_INIT_RDPLUS, &fi->state)) in fuse_dentry_revalidate()
335 } else if (test_and_clear_bit(FUSE_I_INIT_RDPLUS, &fi->state)) { in fuse_dentry_revalidate()
728 struct fuse_inode *fi; in fuse_create_open() local
829 fi = get_fuse_inode(inode); in fuse_create_open()
830 fuse_sync_release(fi, ff, flags); in fuse_create_open()
1147 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_unlink() local
1149 spin_lock(&fi->lock); in fuse_unlink()
1150 fi->attr_version = atomic64_inc_return(&fm->fc->attr_version); in fuse_unlink()
1159 spin_unlock(&fi->lock); in fuse_unlink()
1354 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_link() local
1356 spin_lock(&fi->lock); in fuse_link()
1357 fi->attr_version = atomic64_inc_return(&fm->fc->attr_version); in fuse_link()
1360 spin_unlock(&fi->lock); in fuse_link()
1448 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_update_get_attr() local
1467 else if (request_mask & READ_ONCE(fi->inval_mask)) in fuse_update_get_attr()
1470 sync = time_before64(fi->i_time, get_jiffies_64()); in fuse_update_get_attr()
1477 stat->mode = fi->orig_i_mode; in fuse_update_get_attr()
1478 stat->ino = fi->orig_ino; in fuse_update_get_attr()
1654 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_permission() local
1680 if (perm_mask & READ_ONCE(fi->inval_mask) || in fuse_permission()
1681 time_before64(fi->i_time, get_jiffies_64())) { in fuse_permission()
1889 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_set_nowrite() local
1893 spin_lock(&fi->lock); in fuse_set_nowrite()
1894 BUG_ON(fi->writectr < 0); in fuse_set_nowrite()
1895 fi->writectr += FUSE_NOWRITE; in fuse_set_nowrite()
1896 spin_unlock(&fi->lock); in fuse_set_nowrite()
1897 wait_event(fi->page_waitq, fi->writectr == FUSE_NOWRITE); in fuse_set_nowrite()
1908 struct fuse_inode *fi = get_fuse_inode(inode); in __fuse_release_nowrite() local
1910 BUG_ON(fi->writectr != FUSE_NOWRITE); in __fuse_release_nowrite()
1911 fi->writectr = 0; in __fuse_release_nowrite()
1917 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_release_nowrite() local
1919 spin_lock(&fi->lock); in fuse_release_nowrite()
1921 spin_unlock(&fi->lock); in fuse_release_nowrite()
1983 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_do_setattr() local
2060 set_bit(FUSE_I_SIZE_UNSTABLE, &fi->state); in fuse_do_setattr()
2103 spin_lock(&fi->lock); in fuse_do_setattr()
2124 spin_unlock(&fi->lock); in fuse_do_setattr()
2136 clear_bit(FUSE_I_SIZE_UNSTABLE, &fi->state); in fuse_do_setattr()
2147 clear_bit(FUSE_I_SIZE_UNSTABLE, &fi->state); in fuse_do_setattr()
2313 struct fuse_inode *fi = get_fuse_inode(inode); in fuse_init_dir() local
2318 spin_lock_init(&fi->rdc.lock); in fuse_init_dir()
2319 fi->rdc.cached = false; in fuse_init_dir()
2320 fi->rdc.size = 0; in fuse_init_dir()
2321 fi->rdc.pos = 0; in fuse_init_dir()
2322 fi->rdc.version = 0; in fuse_init_dir()