Home
last modified time | relevance | path

Searched refs:old (Results 1 – 25 of 74) sorted by relevance

123

/fs/
Dfs_struct.c49 static inline int replace_path(struct path *p, const struct path *old, const struct path *new) in replace_path() argument
51 if (likely(p->dentry != old->dentry || p->mnt != old->mnt)) in replace_path()
112 struct fs_struct *copy_fs_struct(struct fs_struct *old) in copy_fs_struct() argument
121 fs->umask = old->umask; in copy_fs_struct()
123 spin_lock(&old->lock); in copy_fs_struct()
124 fs->root = old->root; in copy_fs_struct()
126 fs->pwd = old->pwd; in copy_fs_struct()
128 spin_unlock(&old->lock); in copy_fs_struct()
Dinode.c1034 struct inode *old; in iget5_locked() local
1038 old = find_inode(sb, head, test, data); in iget5_locked()
1039 if (!old) { in iget5_locked()
1063 inode = old; in iget5_locked()
1103 struct inode *old; in iget_locked() local
1107 old = find_inode_fast(sb, head, ino); in iget_locked()
1108 if (!old) { in iget_locked()
1130 inode = old; in iget_locked()
1355 struct inode *old = NULL; in insert_inode_locked() local
1357 hlist_for_each_entry(old, head, i_hash) { in insert_inode_locked()
[all …]
Dnamespace.c1018 static struct mount *clone_mnt(struct mount *old, struct dentry *root, in clone_mnt() argument
1021 struct super_block *sb = old->mnt.mnt_sb; in clone_mnt()
1025 mnt = alloc_vfsmnt(old->mnt_devname); in clone_mnt()
1030 mnt->mnt.data = sb->s_op->clone_mnt_data(old->mnt.data); in clone_mnt()
1040 mnt->mnt_group_id = old->mnt_group_id; in clone_mnt()
1048 mnt->mnt.mnt_flags = old->mnt.mnt_flags; in clone_mnt()
1069 (!(flag & CL_EXPIRE) || list_empty(&old->mnt_expire))) in clone_mnt()
1082 ((flag & CL_SHARED_TO_SLAVE) && IS_MNT_SHARED(old))) { in clone_mnt()
1083 list_add(&mnt->mnt_slave, &old->mnt_slave_list); in clone_mnt()
1084 mnt->mnt_master = old; in clone_mnt()
[all …]
Daio.c368 struct page *old, enum migrate_mode mode) in aio_migratepage() argument
394 idx = old->index; in aio_migratepage()
397 if (ctx->ring_pages[idx] != old) in aio_migratepage()
406 BUG_ON(PageWriteback(old)); in aio_migratepage()
409 rc = migrate_page_move_mapping(mapping, new, old, NULL, mode, 1); in aio_migratepage()
420 migrate_page_copy(new, old); in aio_migratepage()
421 BUG_ON(ctx->ring_pages[idx] != old); in aio_migratepage()
426 put_page(old); in aio_migratepage()
559 kiocb_cancel_fn *old, *cancel; in kiocb_cancel() local
571 old = cancel; in kiocb_cancel()
[all …]
Dtimerfd.c436 struct itimerspec *old) in do_timerfd_settime() argument
490 old->it_value = ktime_to_timespec(timerfd_get_remaining(ctx)); in do_timerfd_settime()
491 old->it_interval = ktime_to_timespec(ctx->tintv); in do_timerfd_settime()
539 struct itimerspec new, old; in SYSCALL_DEFINE4() local
544 ret = do_timerfd_settime(ufd, flags, &new, &old); in SYSCALL_DEFINE4()
547 if (otmr && copy_to_user(otmr, &old, sizeof(old))) in SYSCALL_DEFINE4()
567 struct itimerspec new, old; in COMPAT_SYSCALL_DEFINE4() local
572 ret = do_timerfd_settime(ufd, flags, &new, &old); in COMPAT_SYSCALL_DEFINE4()
575 if (otmr && put_compat_itimerspec(otmr, &old)) in COMPAT_SYSCALL_DEFINE4()
Dposix_acl.c61 struct posix_acl *old; in set_cached_acl() local
63 old = *p; in set_cached_acl()
66 if (old != ACL_NOT_CACHED) in set_cached_acl()
67 posix_acl_release(old); in set_cached_acl()
74 struct posix_acl *old; in forget_cached_acl() local
76 old = *p; in forget_cached_acl()
79 if (old != ACL_NOT_CACHED) in forget_cached_acl()
80 posix_acl_release(old); in forget_cached_acl()
Dexec.c1164 struct user_namespace *old, *user_ns; in would_dump() local
1169 user_ns = old = bprm->mm->user_ns; in would_dump()
1174 if (old != user_ns) { in would_dump()
1176 put_user_ns(old); in would_dump()
1748 unsigned long old, new; in set_dumpable() local
1754 old = ACCESS_ONCE(mm->flags); in set_dumpable()
1755 new = (old & ~MMF_DUMPABLE_MASK) | value; in set_dumpable()
1756 } while (cmpxchg(&mm->flags, old, new) != old); in set_dumpable()
/fs/ext4/
Dnamei.c1217 struct dx_entry *old = frame->at, *new = old + 1; in dx_insert_block() local
1221 assert(old < entries + count); in dx_insert_block()
3381 struct ext4_renament old = *ent; in ext4_resetent() local
3389 old.bh = ext4_find_entry(old.dir, &old.dentry->d_name, &old.de, NULL); in ext4_resetent()
3390 if (IS_ERR(old.bh)) in ext4_resetent()
3391 retval = PTR_ERR(old.bh); in ext4_resetent()
3392 if (!old.bh) in ext4_resetent()
3395 ext4_std_error(old.dir->i_sb, retval); in ext4_resetent()
3399 ext4_setent(handle, &old, ino, file_type); in ext4_resetent()
3400 brelse(old.bh); in ext4_resetent()
[all …]
/fs/overlayfs/
Ddir.c478 static int ovl_link(struct dentry *old, struct inode *newdir, in ovl_link() argument
484 err = ovl_want_write(old); in ovl_link()
488 err = ovl_copy_up(old); in ovl_link()
492 upper = ovl_dentry_upper(old); in ovl_link()
496 ovl_drop_write(old); in ovl_link()
678 static int ovl_rename2(struct inode *olddir, struct dentry *old, in ovl_rename2() argument
695 bool is_dir = d_is_dir(old); in ovl_rename2()
706 err = ovl_check_sticky(old); in ovl_rename2()
711 old_type = ovl_path_type(old); in ovl_rename2()
731 if (ovl_dentry_lower(old)->d_inode == in ovl_rename2()
[all …]
Dcopy_up.c23 int ovl_copy_xattr(struct dentry *old, struct dentry *new) in ovl_copy_xattr() argument
30 if (!old->d_inode->i_op->getxattr || in ovl_copy_xattr()
34 list_size = vfs_listxattr(old, NULL, 0); in ovl_copy_xattr()
45 list_size = vfs_listxattr(old, buf, list_size); in ovl_copy_xattr()
64 size = vfs_getxattr(old, name, value, value_size); in ovl_copy_xattr()
66 size = vfs_getxattr(old, name, NULL, 0); in ovl_copy_xattr()
96 static int ovl_copy_up_data(struct path *old, struct path *new, loff_t len) in ovl_copy_up_data() argument
107 old_file = ovl_path_open(old, O_LARGEFILE | O_RDONLY); in ovl_copy_up_data()
/fs/notify/
Dmark.c472 void fsnotify_duplicate_mark(struct fsnotify_mark *new, struct fsnotify_mark *old) in fsnotify_duplicate_mark() argument
474 assert_spin_locked(&old->lock); in fsnotify_duplicate_mark()
475 new->inode = old->inode; in fsnotify_duplicate_mark()
476 new->mnt = old->mnt; in fsnotify_duplicate_mark()
477 if (old->group) in fsnotify_duplicate_mark()
478 fsnotify_get_group(old->group); in fsnotify_duplicate_mark()
479 new->group = old->group; in fsnotify_duplicate_mark()
480 new->mask = old->mask; in fsnotify_duplicate_mark()
481 new->free_mark = old->free_mark; in fsnotify_duplicate_mark()
/fs/notify/inotify/
Dinotify_fsnotify.c42 struct inotify_event_info *old, *new; in event_compare() local
46 old = INOTIFY_E(old_fsn); in event_compare()
50 (old->name_len == new->name_len) && in event_compare()
51 (!old->name_len || !strcmp(old->name, new->name))) in event_compare()
/fs/sdcardfs/
Dsuper.c157 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/
Ddir.c18 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/notify/fanotify/
Dfanotify.c17 struct fanotify_event_info *old, *new; in should_merge() local
20 old = FANOTIFY_E(old_fsn); in should_merge()
23 if (old_fsn->inode == new_fsn->inode && old->tgid == new->tgid && in should_merge()
24 old->path.mnt == new->path.mnt && in should_merge()
25 old->path.dentry == new->path.dentry) in should_merge()
/fs/jffs2/
Dnodelist.c457 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/
Dram_core.c54 int old; in buffer_start_add() local
61 old = atomic_read(&prz->buffer->start); in buffer_start_add()
62 new = old + a; in buffer_start_add()
70 return old; in buffer_start_add()
76 size_t old; in buffer_size_add() local
83 old = atomic_read(&prz->buffer->size); in buffer_size_add()
84 if (old == prz->buffer_size) in buffer_size_add()
87 new = old + a; in buffer_size_add()
/fs/gfs2/
Dlog.c795 static void gfs2_merge_trans(struct gfs2_trans *old, struct gfs2_trans *new) in gfs2_merge_trans() argument
797 WARN_ON_ONCE(old->tr_attached != 1); in gfs2_merge_trans()
799 old->tr_num_buf_new += new->tr_num_buf_new; in gfs2_merge_trans()
800 old->tr_num_databuf_new += new->tr_num_databuf_new; in gfs2_merge_trans()
801 old->tr_num_buf_rm += new->tr_num_buf_rm; in gfs2_merge_trans()
802 old->tr_num_databuf_rm += new->tr_num_databuf_rm; in gfs2_merge_trans()
803 old->tr_num_revoke += new->tr_num_revoke; in gfs2_merge_trans()
804 old->tr_num_revoke_rm += new->tr_num_revoke_rm; in gfs2_merge_trans()
806 list_splice_tail_init(&new->tr_databuf, &old->tr_databuf); in gfs2_merge_trans()
807 list_splice_tail_init(&new->tr_buf, &old->tr_buf); in gfs2_merge_trans()
/fs/coda/
Dupcall.c574 static void coda_block_signals(sigset_t *old) in coda_block_signals() argument
577 *old = current->blocked; in coda_block_signals()
588 static void coda_unblock_signals(sigset_t *old) in coda_unblock_signals() argument
591 current->blocked = *old; in coda_unblock_signals()
612 sigset_t old; in coda_waitfor_upcall() local
615 coda_block_signals(&old); in coda_waitfor_upcall()
632 coda_unblock_signals(&old); in coda_waitfor_upcall()
649 coda_unblock_signals(&old); in coda_waitfor_upcall()
/fs/nfsd/
Dnfs4layouts.c50 struct nfsd4_deviceid_map *map, *old; in nfsd4_alloc_devid_map() local
65 list_for_each_entry(old, &nfsd_devid_hash[i], hash) { in nfsd4_alloc_devid_map()
66 if (old->fsid_type != fh->fh_fsid_type) in nfsd4_alloc_devid_map()
68 if (memcmp(old->fsid, fh->fh_fsid, in nfsd4_alloc_devid_map()
69 key_len(old->fsid_type))) in nfsd4_alloc_devid_map()
72 fhp->fh_export->ex_devid_map = old; in nfsd4_alloc_devid_map()
Dnfs3xdr.c454 char *old, *new; in nfs3svc_decode_symlinkargs() local
474 old = (char*)p; in nfs3svc_decode_symlinkargs()
476 if ((void *)old > vec->iov_base + vec->iov_len) in nfs3svc_decode_symlinkargs()
478 avail = vec->iov_len - (old - (char*)vec->iov_base); in nfs3svc_decode_symlinkargs()
479 while (len && avail && *old) { in nfs3svc_decode_symlinkargs()
480 *new++ = *old++; in nfs3svc_decode_symlinkargs()
487 old = page_address(rqstp->rq_arg.pages[0]); in nfs3svc_decode_symlinkargs()
489 while (len && avail && *old) { in nfs3svc_decode_symlinkargs()
490 *new++ = *old++; in nfs3svc_decode_symlinkargs()
Dexport.c67 struct svc_expkey *old);
276 struct svc_expkey *old) in svc_expkey_update() argument
281 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
339 struct svc_export *old);
789 svc_export_update(struct svc_export *new, struct svc_export *old) in svc_export_update() argument
792 int hash = svc_export_hash(old); in svc_export_update()
794 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()
/fs/sysfs/
Dsymlink.c166 const char *old, const char *new, const void *new_ns) in sysfs_rename_link_ns() argument
181 kn = kernfs_find_and_get_ns(parent, old, old_ns); in sysfs_rename_link_ns()
/fs/9p/
Dcache.c260 struct fscache_cookie *old; in v9fs_cache_inode_reset_cookie() local
265 old = v9inode->fscache; in v9fs_cache_inode_reset_cookie()
275 inode, old, v9inode->fscache); in v9fs_cache_inode_reset_cookie()
/fs/affs/
Dbitmap.c320 u32 old, new; in affs_init_bitmap() local
323 old = be32_to_cpu(((__be32 *)bh->b_data)[offset]); in affs_init_bitmap()
324 new = old & mask; in affs_init_bitmap()

123