/fs/afs/ |
D | server_list.c | 102 struct afs_server_list *old) in afs_annotate_server_list() argument 107 if (old->nr_servers != new->nr_servers) in afs_annotate_server_list() 110 for (i = 0; i < old->nr_servers; i++) in afs_annotate_server_list() 111 if (old->servers[i].server != new->servers[i].server) in afs_annotate_server_list() 118 cur = old->servers[old->preferred].server; in afs_annotate_server_list() 131 while (i < old->nr_servers && j < new->nr_servers) { in afs_annotate_server_list() 132 if (new->servers[j].server == old->servers[i].server) { in afs_annotate_server_list() 133 struct afs_cb_interest *cbi = old->servers[i].cb_interest; in afs_annotate_server_list() 143 if (new->servers[j].server < old->servers[i].server) { in afs_annotate_server_list()
|
D | dir_silly.c | 19 struct dentry *old, struct dentry *new, in afs_do_silly_rename() argument 26 _enter("%pd,%pd", old, new); in afs_do_silly_rename() 38 afs_fs_rename(&fc, old->d_name.name, in afs_do_silly_rename() 49 spin_lock(&old->d_lock); in afs_do_silly_rename() 50 old->d_flags |= DCACHE_NFSFS_RENAMED; in afs_do_silly_rename() 51 spin_unlock(&old->d_lock); in afs_do_silly_rename() 58 afs_edit_dir_remove(dvnode, &old->d_name, in afs_do_silly_rename()
|
D | callback.c | 93 struct afs_cb_interest *cbi, *vcbi, *new, *old; in afs_register_server_cb_interest() local 117 old = rcu_dereference_protected(vnode->cb_interest, in afs_register_server_cb_interest() 121 afs_put_cb_interest(afs_v2net(vnode), old); in afs_register_server_cb_interest() 164 old = rcu_dereference_protected(vnode->cb_interest, in afs_register_server_cb_interest() 172 afs_put_cb_interest(afs_v2net(vnode), old); in afs_register_server_cb_interest()
|
D | volume.c | 222 struct afs_server_list *new, *old, *discard; in afs_update_volume_status() local 259 old = volume->servers; in afs_update_volume_status() 260 if (afs_annotate_server_list(new, old)) { in afs_update_volume_status() 265 discard = old; in afs_update_volume_status()
|
/fs/overlayfs/ |
D | dir.c | 666 static int ovl_link(struct dentry *old, struct inode *newdir, in ovl_link() argument 672 err = ovl_want_write(old); in ovl_link() 676 err = ovl_copy_up(old); in ovl_link() 684 if (ovl_is_metacopy_dentry(old)) { in ovl_link() 685 err = ovl_set_link_redirect(old); in ovl_link() 690 err = ovl_nlink_start(old); in ovl_link() 694 inode = d_inode(old); in ovl_link() 698 &(struct ovl_cattr) {.hardlink = ovl_dentry_upper(old)}, in ovl_link() 699 ovl_type_origin(old)); in ovl_link() 703 ovl_nlink_end(old); in ovl_link() [all …]
|
D | copy_up.c | 39 int ovl_copy_xattr(struct dentry *old, struct dentry *new) in ovl_copy_xattr() argument 46 if (!(old->d_inode->i_opflags & IOP_XATTR) || in ovl_copy_xattr() 50 list_size = vfs_listxattr(old, NULL, 0); in ovl_copy_xattr() 61 list_size = vfs_listxattr(old, buf, list_size); in ovl_copy_xattr() 80 size = vfs_getxattr(old, name, value, value_size); in ovl_copy_xattr() 82 size = vfs_getxattr(old, name, NULL, 0); in ovl_copy_xattr() 119 static int ovl_copy_up_data(struct path *old, struct path *new, loff_t len) in ovl_copy_up_data() argument 131 old_file = ovl_path_open(old, O_LARGEFILE | O_RDONLY); in ovl_copy_up_data() 496 const struct cred *old; member 504 cc->old = cc->new = NULL; in ovl_prep_cu_creds() [all …]
|
/fs/ |
D | fs_struct.c | 51 static inline int replace_path(struct path *p, const struct path *old, const struct path *new) in replace_path() argument 53 if (likely(p->dentry != old->dentry || p->mnt != old->mnt)) in replace_path() 114 struct fs_struct *copy_fs_struct(struct fs_struct *old) in copy_fs_struct() argument 123 fs->umask = old->umask; in copy_fs_struct() 125 spin_lock(&old->lock); in copy_fs_struct() 126 fs->root = old->root; in copy_fs_struct() 128 fs->pwd = old->pwd; in copy_fs_struct() 130 spin_unlock(&old->lock); in copy_fs_struct()
|
D | inode.c | 1075 struct inode *old; in inode_insert5() local 1080 old = find_inode(inode->i_sb, head, test, data); in inode_insert5() 1081 if (unlikely(old)) { in inode_insert5() 1087 if (IS_ERR(old)) in inode_insert5() 1089 wait_on_inode(old); in inode_insert5() 1090 if (unlikely(inode_unhashed(old))) { in inode_insert5() 1091 iput(old); in inode_insert5() 1094 return old; in inode_insert5() 1193 struct inode *old; in iget_locked() local 1197 old = find_inode_fast(sb, head, ino); in iget_locked() [all …]
|
D | namespace.c | 1030 static struct mount *clone_mnt(struct mount *old, struct dentry *root, in clone_mnt() argument 1033 struct super_block *sb = old->mnt.mnt_sb; in clone_mnt() 1037 mnt = alloc_vfsmnt(old->mnt_devname); in clone_mnt() 1042 mnt->mnt.data = sb->s_op->clone_mnt_data(old->mnt.data); in clone_mnt() 1052 mnt->mnt_group_id = old->mnt_group_id; in clone_mnt() 1060 mnt->mnt.mnt_flags = old->mnt.mnt_flags; in clone_mnt() 1073 ((flag & CL_SHARED_TO_SLAVE) && IS_MNT_SHARED(old))) { in clone_mnt() 1074 list_add(&mnt->mnt_slave, &old->mnt_slave_list); in clone_mnt() 1075 mnt->mnt_master = old; in clone_mnt() 1078 if ((flag & CL_MAKE_SHARED) || IS_MNT_SHARED(old)) in clone_mnt() [all …]
|
D | timerfd.c | 437 struct itimerspec64 *old) in do_timerfd_settime() argument 494 old->it_value = ktime_to_timespec64(timerfd_get_remaining(ctx)); in do_timerfd_settime() 495 old->it_interval = ktime_to_timespec64(ctx->tintv); in do_timerfd_settime() 543 struct itimerspec64 new, old; in SYSCALL_DEFINE4() local 548 ret = do_timerfd_settime(ufd, flags, &new, &old); in SYSCALL_DEFINE4() 551 if (otmr && put_itimerspec64(&old, otmr)) in SYSCALL_DEFINE4() 571 struct itimerspec64 new, old; in SYSCALL_DEFINE4() local 576 ret = do_timerfd_settime(ufd, flags, &new, &old); in SYSCALL_DEFINE4() 579 if (otmr && put_old_itimerspec32(&old, otmr)) in SYSCALL_DEFINE4()
|
D | aio.c | 377 struct page *old, enum migrate_mode mode) in aio_migratepage() argument 411 idx = old->index; in aio_migratepage() 414 if (ctx->ring_pages[idx] != old) in aio_migratepage() 423 BUG_ON(PageWriteback(old)); in aio_migratepage() 426 rc = migrate_page_move_mapping(mapping, new, old, 1); in aio_migratepage() 437 migrate_page_copy(new, old); in aio_migratepage() 438 BUG_ON(ctx->ring_pages[idx] != old); in aio_migratepage() 443 put_page(old); in aio_migratepage() 636 struct kioctx_table *table, *old; in ioctx_add_table() local 671 old = rcu_dereference_raw(mm->ioctx_table); in ioctx_add_table() [all …]
|
D | posix_acl.c | 66 struct posix_acl *old; in set_cached_acl() local 68 old = xchg(p, posix_acl_dup(acl)); in set_cached_acl() 69 if (!is_uncached_acl(old)) in set_cached_acl() 70 posix_acl_release(old); in set_cached_acl() 76 struct posix_acl *old; in __forget_cached_acl() local 78 old = xchg(p, ACL_NOT_CACHED); in __forget_cached_acl() 79 if (!is_uncached_acl(old)) in __forget_cached_acl() 80 posix_acl_release(old); in __forget_cached_acl()
|
D | super.c | 516 struct super_block *old; in sget_fc() local 523 hlist_for_each_entry(old, &fc->fs_type->fs_supers, s_instances) { in sget_fc() 524 if (test(old, fc)) in sget_fc() 556 if (user_ns != old->s_user_ns) { in sget_fc() 561 if (!grab_super(old)) in sget_fc() 564 return old; in sget_fc() 584 struct super_block *old; in sget() local 597 hlist_for_each_entry(old, &type->fs_supers, s_instances) { in sget() 598 if (!test(old, data)) in sget() 600 if (user_ns != old->s_user_ns) { in sget() [all …]
|
/fs/notify/inotify/ |
D | inotify_fsnotify.c | 35 struct inotify_event_info *old, *new; in event_compare() local 37 old = INOTIFY_E(old_fsn); in event_compare() 39 if (old->mask & FS_IN_IGNORED) in event_compare() 41 if ((old->mask == new->mask) && in event_compare() 43 (old->name_len == new->name_len) && in event_compare() 44 (!old->name_len || !strcmp(old->name, new->name))) in event_compare()
|
/fs/notify/fanotify/ |
D | fanotify.c | 23 struct fanotify_event *old, *new; in should_merge() local 26 old = FANOTIFY_E(old_fsn); in should_merge() 29 if (old_fsn->inode != new_fsn->inode || old->pid != new->pid || in should_merge() 30 old->fh_type != new->fh_type || old->fh_len != new->fh_len) in should_merge() 33 if (fanotify_event_has_path(old)) { in should_merge() 34 return old->path.mnt == new->path.mnt && in should_merge() 35 old->path.dentry == new->path.dentry; in should_merge() 36 } else if (fanotify_event_has_fid(old)) { in should_merge() 45 return (old->mask & FS_ISDIR) == (new->mask & FS_ISDIR) && in should_merge() 46 fanotify_fid_equal(&old->fid, &new->fid, old->fh_len); in should_merge()
|
/fs/ext4/ |
D | namei.c | 1262 struct dx_entry *old = frame->at, *new = old + 1; in dx_insert_block() local 1266 assert(old < entries + count); in dx_insert_block() 3638 struct ext4_renament old = { in ext4_rename() local 3665 retval = dquot_initialize(old.dir); in ext4_rename() 3680 old.bh = ext4_find_entry(old.dir, &old.dentry->d_name, &old.de, NULL); in ext4_rename() 3681 if (IS_ERR(old.bh)) in ext4_rename() 3682 return PTR_ERR(old.bh); in ext4_rename() 3690 if (!old.bh || le32_to_cpu(old.de->inode) != old.inode->i_ino) in ext4_rename() 3707 ext4_alloc_da_blocks(old.inode); in ext4_rename() 3709 credits = (2 * EXT4_DATA_TRANS_BLOCKS(old.dir->i_sb) + in ext4_rename() [all …]
|
/fs/sdcardfs/ |
D | super.c | 111 struct sdcardfs_vfsmount_options *old = data; in sdcardfs_clone_mnt_data() local 115 opt->gid = old->gid; in sdcardfs_clone_mnt_data() 116 opt->mask = old->mask; in sdcardfs_clone_mnt_data() 122 struct sdcardfs_vfsmount_options *old = data; in sdcardfs_copy_mnt_data() local 125 old->gid = new->gid; in sdcardfs_copy_mnt_data() 126 old->mask = new->mask; in sdcardfs_copy_mnt_data()
|
/fs/isofs/ |
D | dir.c | 19 char * old = de->name; in isofs_name_translate() local 24 unsigned char c = old[i]; in isofs_name_translate() 32 if (c == '.' && i == len - 3 && old[i + 1] == ';' && old[i + 2] == '1') in isofs_name_translate() 36 if (c == ';' && i == len - 2 && old[i + 1] == '1') in isofs_name_translate()
|
/fs/nfs/ |
D | sysfs.c | 100 const char *old; in nfs_netns_identifier_store() local 110 old = xchg(&c->identifier, p); in nfs_netns_identifier_store() 111 if (old) { in nfs_netns_identifier_store() 113 kfree(old); in nfs_netns_identifier_store()
|
/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/pstore/ |
D | ram_core.c | 55 int old; in buffer_start_add() local 62 old = atomic_read(&prz->buffer->start); in buffer_start_add() 63 new = old + a; in buffer_start_add() 71 return old; in buffer_start_add() 77 size_t old; in buffer_size_add() local 84 old = atomic_read(&prz->buffer->size); in buffer_size_add() 85 if (old == prz->buffer_size) in buffer_size_add() 88 new = old + a; in buffer_size_add()
|
/fs/gfs2/ |
D | log.c | 884 static void gfs2_merge_trans(struct gfs2_trans *old, struct gfs2_trans *new) in gfs2_merge_trans() argument 886 WARN_ON_ONCE(!test_bit(TR_ATTACHED, &old->tr_flags)); in gfs2_merge_trans() 888 old->tr_num_buf_new += new->tr_num_buf_new; in gfs2_merge_trans() 889 old->tr_num_databuf_new += new->tr_num_databuf_new; in gfs2_merge_trans() 890 old->tr_num_buf_rm += new->tr_num_buf_rm; in gfs2_merge_trans() 891 old->tr_num_databuf_rm += new->tr_num_databuf_rm; in gfs2_merge_trans() 892 old->tr_num_revoke += new->tr_num_revoke; in gfs2_merge_trans() 894 list_splice_tail_init(&new->tr_databuf, &old->tr_databuf); in gfs2_merge_trans() 895 list_splice_tail_init(&new->tr_buf, &old->tr_buf); in gfs2_merge_trans()
|
/fs/coda/ |
D | upcall.c | 616 static void coda_block_signals(sigset_t *old) in coda_block_signals() argument 619 *old = current->blocked; in coda_block_signals() 630 static void coda_unblock_signals(sigset_t *old) in coda_unblock_signals() argument 633 current->blocked = *old; in coda_unblock_signals() 656 sigset_t old; in coda_waitfor_upcall() local 659 coda_block_signals(&old); in coda_waitfor_upcall() 676 coda_unblock_signals(&old); in coda_waitfor_upcall() 693 coda_unblock_signals(&old); in coda_waitfor_upcall()
|
/fs/xfs/ |
D | kmem.c | 98 kmem_realloc(const void *old, size_t newsize, xfs_km_flags_t flags) in kmem_realloc() argument 107 ptr = krealloc(old, newsize, lflags); in kmem_realloc()
|
/fs/sysfs/ |
D | symlink.c | 167 const char *old, const char *new, const void *new_ns) in sysfs_rename_link_ns() argument 182 kn = kernfs_find_and_get_ns(parent, old, old_ns); in sysfs_rename_link_ns()
|