Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/zfs/zfs.c
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | zfs_open(const char *upath, struct open_file *f) | ||||
return (rc); | return (rc); | ||||
} | } | ||||
static int | static int | ||||
zfs_close(struct open_file *f) | zfs_close(struct open_file *f) | ||||
{ | { | ||||
struct file *fp = (struct file *)f->f_fsdata; | struct file *fp = (struct file *)f->f_fsdata; | ||||
dnode_cache_obj = 0; | dnode_cache_obj = NULL; | ||||
f->f_fsdata = (void *)0; | f->f_fsdata = (void *)0; | ||||
if (fp == (struct file *)0) | if (fp == (struct file *)0) | ||||
return (0); | return (0); | ||||
free(fp); | free(fp); | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 775 Lines • Show Last 20 Lines |