/fs/notify/inotify/ |
D | inotify_fsnotify.c | 40 static bool event_compare(struct fsnotify_event *old, struct fsnotify_event *new) in event_compare() argument 42 if ((old->mask == new->mask) && in event_compare() 43 (old->to_tell == new->to_tell) && in event_compare() 44 (old->data_type == new->data_type) && in event_compare() 45 (old->name_len == new->name_len)) { in event_compare() 46 switch (old->data_type) { in event_compare() 51 if (!old->name_len || in event_compare() 52 !strcmp(old->file_name, new->file_name)) in event_compare() 56 if ((old->path.mnt == new->path.mnt) && in event_compare() 57 (old->path.dentry == new->path.dentry)) in event_compare() [all …]
|
/fs/nfs/blocklayout/ |
D | extents.c | 311 struct pnfs_block_short_extent *old, *save; in add_to_commitlist() local 321 list_for_each_entry_safe(old, save, clist, bse_node) { in add_to_commitlist() 322 if (new->bse_f_offset < old->bse_f_offset) in add_to_commitlist() 324 if (end <= old->bse_f_offset + old->bse_length) { in add_to_commitlist() 330 old->bse_f_offset + old->bse_length) { in add_to_commitlist() 332 if (new->bse_mdev == old->bse_mdev) { in add_to_commitlist() 335 old->bse_f_offset; in add_to_commitlist() 336 new->bse_f_offset = old->bse_f_offset; in add_to_commitlist() 337 list_del(&old->bse_node); in add_to_commitlist() 339 kfree(old); in add_to_commitlist() [all …]
|
/fs/ |
D | fs_struct.c | 48 static inline int replace_path(struct path *p, const struct path *old, const struct path *new) in replace_path() argument 50 if (likely(p->dentry != old->dentry || p->mnt != old->mnt)) in replace_path() 110 struct fs_struct *copy_fs_struct(struct fs_struct *old) in copy_fs_struct() argument 119 fs->umask = old->umask; in copy_fs_struct() 121 spin_lock(&old->lock); in copy_fs_struct() 122 fs->root = old->root; in copy_fs_struct() 124 fs->pwd = old->pwd; in copy_fs_struct() 126 spin_unlock(&old->lock); in copy_fs_struct()
|
D | inode.c | 1055 struct inode *old; in iget5_locked() local 1059 old = find_inode(sb, head, test, data); in iget5_locked() 1060 if (!old) { in iget5_locked() 1084 inode = old; in iget5_locked() 1124 struct inode *old; in iget_locked() local 1128 old = find_inode_fast(sb, head, ino); in iget_locked() 1129 if (!old) { in iget_locked() 1151 inode = old; in iget_locked() 1326 struct inode *old = NULL; in insert_inode_locked() local 1328 hlist_for_each_entry(old, head, i_hash) { in insert_inode_locked() [all …]
|
D | namespace.c | 817 static struct mount *clone_mnt(struct mount *old, struct dentry *root, in clone_mnt() argument 820 struct super_block *sb = old->mnt.mnt_sb; in clone_mnt() 824 mnt = alloc_vfsmnt(old->mnt_devname); in clone_mnt() 829 mnt->mnt.data = sb->s_op->clone_mnt_data(old->mnt.data); in clone_mnt() 839 mnt->mnt_group_id = old->mnt_group_id; in clone_mnt() 847 mnt->mnt.mnt_flags = old->mnt.mnt_flags & ~(MNT_WRITE_HOLD|MNT_MARKED); in clone_mnt() 862 ((flag & CL_SHARED_TO_SLAVE) && IS_MNT_SHARED(old))) { in clone_mnt() 863 list_add(&mnt->mnt_slave, &old->mnt_slave_list); in clone_mnt() 864 mnt->mnt_master = old; in clone_mnt() 867 if ((flag & CL_MAKE_SHARED) || IS_MNT_SHARED(old)) in clone_mnt() [all …]
|
D | timerfd.c | 362 struct itimerspec *old) in do_timerfd_settime() argument 411 old->it_value = ktime_to_timespec(timerfd_get_remaining(ctx)); in do_timerfd_settime() 412 old->it_interval = ktime_to_timespec(ctx->tintv); in do_timerfd_settime() 460 struct itimerspec new, old; in SYSCALL_DEFINE4() local 465 ret = do_timerfd_settime(ufd, flags, &new, &old); in SYSCALL_DEFINE4() 468 if (otmr && copy_to_user(otmr, &old, sizeof(old))) in SYSCALL_DEFINE4() 488 struct itimerspec new, old; in COMPAT_SYSCALL_DEFINE4() local 493 ret = do_timerfd_settime(ufd, flags, &new, &old); in COMPAT_SYSCALL_DEFINE4() 496 if (otmr && put_compat_itimerspec(otmr, &old)) in COMPAT_SYSCALL_DEFINE4()
|
D | super.c | 450 struct super_block *old; in sget() local 456 hlist_for_each_entry(old, &type->fs_supers, s_instances) { in sget() 457 if (!test(old, data)) in sget() 459 if (!grab_super(old)) in sget() 466 down_write(&old->s_umount); in sget() 467 if (unlikely(!(old->s_flags & MS_BORN))) { in sget() 468 deactivate_locked_super(old); in sget() 471 return old; in sget()
|
/fs/notify/fanotify/ |
D | fanotify.c | 12 static bool should_merge(struct fsnotify_event *old, struct fsnotify_event *new) in should_merge() argument 14 pr_debug("%s: old=%p new=%p\n", __func__, old, new); in should_merge() 16 if (old->to_tell == new->to_tell && in should_merge() 17 old->data_type == new->data_type && in should_merge() 18 old->tgid == new->tgid) { in should_merge() 19 switch (old->data_type) { in should_merge() 23 if ((old->mask & FAN_ALL_PERM_EVENTS) && in should_merge() 27 if ((old->path.mnt == new->path.mnt) && in should_merge() 28 (old->path.dentry == new->path.dentry)) in should_merge()
|
/fs/notify/ |
D | mark.c | 322 void fsnotify_duplicate_mark(struct fsnotify_mark *new, struct fsnotify_mark *old) in fsnotify_duplicate_mark() argument 324 assert_spin_locked(&old->lock); in fsnotify_duplicate_mark() 325 new->i.inode = old->i.inode; in fsnotify_duplicate_mark() 326 new->m.mnt = old->m.mnt; in fsnotify_duplicate_mark() 327 if (old->group) in fsnotify_duplicate_mark() 328 fsnotify_get_group(old->group); in fsnotify_duplicate_mark() 329 new->group = old->group; in fsnotify_duplicate_mark() 330 new->mask = old->mask; in fsnotify_duplicate_mark() 331 new->free_mark = old->free_mark; in fsnotify_duplicate_mark()
|
/fs/ext4/ |
D | namei.c | 1206 struct dx_entry *old = frame->at, *new = old + 1; in dx_insert_block() local 1210 assert(old < entries + count); in dx_insert_block() 3457 struct ext4_renament old = { in ext4_rename() local 3473 dquot_initialize(old.dir); in ext4_rename() 3481 old.bh = ext4_find_entry(old.dir, &old.dentry->d_name, &old.de, NULL); in ext4_rename() 3482 if (IS_ERR(old.bh)) in ext4_rename() 3483 return PTR_ERR(old.bh); in ext4_rename() 3491 if (!old.bh || le32_to_cpu(old.de->inode) != old.inode->i_ino) in ext4_rename() 3494 if ((old.dir != new.dir) && in ext4_rename() 3497 old.inode)) { in ext4_rename() [all …]
|
/fs/pstore/ |
D | ram_core.c | 52 int old; in buffer_start_add() local 56 old = atomic_read(&prz->buffer->start); in buffer_start_add() 57 new = old + a; in buffer_start_add() 60 } while (atomic_cmpxchg(&prz->buffer->start, old, new) != old); in buffer_start_add() 62 return old; in buffer_start_add() 68 size_t old; in buffer_size_add() local 75 old = atomic_read(&prz->buffer->size); in buffer_size_add() 76 new = old + a; in buffer_size_add() 79 } while (atomic_cmpxchg(&prz->buffer->size, old, new) != old); in buffer_size_add()
|
/fs/sdcardfs/ |
D | super.c | 157 struct sdcardfs_vfsmount_options *old = data; in sdcardfs_clone_mnt_data() local 161 opt->gid = old->gid; in sdcardfs_clone_mnt_data() 162 opt->mask = old->mask; in sdcardfs_clone_mnt_data() 168 struct sdcardfs_vfsmount_options *old = data; in sdcardfs_copy_mnt_data() local 171 old->gid = new->gid; in sdcardfs_copy_mnt_data() 172 old->mask = new->mask; in sdcardfs_copy_mnt_data()
|
/fs/isofs/ |
D | dir.c | 18 char * old = de->name; in isofs_name_translate() local 23 unsigned char c = old[i]; in isofs_name_translate() 31 if (c == '.' && i == len - 3 && old[i + 1] == ';' && old[i + 2] == '1') in isofs_name_translate() 35 if (c == ';' && i == len - 2 && old[i + 1] == '1') in isofs_name_translate()
|
/fs/btrfs/ |
D | ulist.c | 207 void *old = NULL; in ulist_add_merge() local 214 old = ulist->nodes; in ulist_add_merge() 216 new_nodes = krealloc(old, sizeof(*new_nodes) * new_alloced, in ulist_add_merge() 221 if (!old) in ulist_add_merge()
|
D | inode.c | 1964 struct old_sa_defrag_extent *old; member 2060 struct old_sa_defrag_extent *old = ctx; in record_one_backref() local 2061 struct new_sa_defrag_extent *new = old->new; in record_one_backref() 2135 if (btrfs_file_extent_disk_bytenr(leaf, extent) != old->bytenr) in record_one_backref() 2143 if (extent_offset >= old->extent_offset + old->offset + in record_one_backref() 2144 old->len || extent_offset + num_bytes <= in record_one_backref() 2145 old->extent_offset + old->offset) in record_one_backref() 2163 backref->old = old; in record_one_backref() 2165 old->count++; in record_one_backref() 2176 struct old_sa_defrag_extent *old, *tmp; in record_extent_backrefs() local [all …]
|
D | transaction.c | 1066 struct extent_buffer *old; in create_pending_snapshot() local 1184 old = btrfs_lock_root_node(root); in create_pending_snapshot() 1185 ret = btrfs_cow_block(trans, root, old, NULL, 0, &old); in create_pending_snapshot() 1187 btrfs_tree_unlock(old); in create_pending_snapshot() 1188 free_extent_buffer(old); in create_pending_snapshot() 1193 btrfs_set_lock_blocking(old); in create_pending_snapshot() 1195 ret = btrfs_copy_root(trans, root, old, &tmp, objectid); in create_pending_snapshot() 1197 btrfs_tree_unlock(old); in create_pending_snapshot() 1198 free_extent_buffer(old); in create_pending_snapshot()
|
/fs/xfs/ |
D | xfs_log_cil.c | 190 struct xfs_log_vec *old = lv->lv_item->li_lv; in xfs_cil_prepare_item() local 192 if (old) { in xfs_cil_prepare_item() 195 ASSERT(old->lv_buf && old->lv_buf_len && old->lv_niovecs); in xfs_cil_prepare_item() 197 *len += lv->lv_buf_len - old->lv_buf_len; in xfs_cil_prepare_item() 198 *diff_iovecs += lv->lv_niovecs - old->lv_niovecs; in xfs_cil_prepare_item() 199 kmem_free(old->lv_buf); in xfs_cil_prepare_item() 200 kmem_free(old); in xfs_cil_prepare_item()
|
/fs/jffs2/ |
D | nodelist.c | 457 void jffs2_del_ino_cache(struct jffs2_sb_info *c, struct jffs2_inode_cache *old) in jffs2_del_ino_cache() argument 462 BUG_ON(old->xref); in jffs2_del_ino_cache() 464 dbg_inocache("del %p (ino #%u)\n", old, old->ino); in jffs2_del_ino_cache() 467 prev = &c->inocache_list[old->ino % c->inocache_hashsize]; in jffs2_del_ino_cache() 469 while ((*prev) && (*prev)->ino < old->ino) { in jffs2_del_ino_cache() 472 if ((*prev) == old) { in jffs2_del_ino_cache() 473 *prev = old->next; in jffs2_del_ino_cache() 481 if (old->state != INO_STATE_READING && old->state != INO_STATE_CLEARING) in jffs2_del_ino_cache() 482 jffs2_free_inode_cache(old); in jffs2_del_ino_cache()
|
/fs/coda/ |
D | upcall.c | 575 static void coda_block_signals(sigset_t *old) in coda_block_signals() argument 578 *old = current->blocked; in coda_block_signals() 589 static void coda_unblock_signals(sigset_t *old) in coda_unblock_signals() argument 592 current->blocked = *old; in coda_unblock_signals() 613 sigset_t old; in coda_waitfor_upcall() local 616 coda_block_signals(&old); in coda_waitfor_upcall() 633 coda_unblock_signals(&old); in coda_waitfor_upcall() 650 coda_unblock_signals(&old); in coda_waitfor_upcall()
|
/fs/9p/ |
D | cache.c | 261 struct fscache_cookie *old; in v9fs_cache_inode_reset_cookie() local 266 old = v9inode->fscache; in v9fs_cache_inode_reset_cookie() 276 inode, old, v9inode->fscache); in v9fs_cache_inode_reset_cookie()
|
/fs/nfsd/ |
D | nfs3xdr.c | 452 char *old, *new; in nfs3svc_decode_symlinkargs() local 472 old = (char*)p; in nfs3svc_decode_symlinkargs() 474 avail = vec->iov_len - (old - (char*)vec->iov_base); in nfs3svc_decode_symlinkargs() 475 while (len && avail && *old) { in nfs3svc_decode_symlinkargs() 476 *new++ = *old++; in nfs3svc_decode_symlinkargs() 485 old = page_address(rqstp->rq_arg.pages[0]); in nfs3svc_decode_symlinkargs() 487 while (len && avail && *old) { in nfs3svc_decode_symlinkargs() 488 *new++ = *old++; in nfs3svc_decode_symlinkargs()
|
D | export.c | 71 struct svc_expkey *old); 280 struct svc_expkey *old) in svc_expkey_update() argument 285 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update() 337 struct svc_export *old); 744 svc_export_update(struct svc_export *new, struct svc_export *old) in svc_export_update() argument 747 int hash = svc_export_hash(old); in svc_export_update() 749 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()
|
D | nfs4idmap.c | 283 idtoname_update(struct cache_detail *cd, struct ent *new, struct ent *old) in idtoname_update() argument 285 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in idtoname_update() 441 nametoid_update(struct cache_detail *cd, struct ent *new, struct ent *old) in nametoid_update() argument 443 struct cache_head *ch = sunrpc_cache_update(cd, &new->h, &old->h, in nametoid_update()
|
/fs/affs/ |
D | bitmap.c | 322 u32 old, new; in affs_init_bitmap() local 325 old = be32_to_cpu(((__be32 *)bh->b_data)[offset]); in affs_init_bitmap() 326 new = old & mask; in affs_init_bitmap()
|
/fs/cifs/ |
D | fscache.c | 113 struct fscache_cookie *old = cifsi->fscache; in cifs_fscache_reset_inode_cookie() local 124 __func__, cifsi->fscache, old); in cifs_fscache_reset_inode_cookie()
|