Lines Matching refs:HOSTFS_I
38 static inline struct hostfs_inode_info *HOSTFS_I(struct inode *inode) in HOSTFS_I() function
43 #define FILE_HOSTFS_I(file) HOSTFS_I(file_inode(file))
244 if (HOSTFS_I(inode)->fd != -1) { in hostfs_evict_inode()
245 close_file(&HOSTFS_I(inode)->fd); in hostfs_evict_inode()
246 HOSTFS_I(inode)->fd = -1; in hostfs_evict_inode()
247 HOSTFS_I(inode)->dev = 0; in hostfs_evict_inode()
253 kmem_cache_free(hostfs_inode_cache, HOSTFS_I(inode)); in hostfs_free_inode()
317 if ((mode & HOSTFS_I(ino)->mode) == mode) in hostfs_open()
320 mode |= HOSTFS_I(ino)->mode; in hostfs_open()
339 mutex_lock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
341 if ((mode & HOSTFS_I(ino)->mode) == mode) { in hostfs_open()
342 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
346 if ((mode | HOSTFS_I(ino)->mode) != mode) { in hostfs_open()
347 mode |= HOSTFS_I(ino)->mode; in hostfs_open()
348 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
352 if (HOSTFS_I(ino)->fd == -1) { in hostfs_open()
353 HOSTFS_I(ino)->fd = fd; in hostfs_open()
355 err = replace_file(fd, HOSTFS_I(ino)->fd); in hostfs_open()
358 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
362 HOSTFS_I(ino)->mode = mode; in hostfs_open()
363 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
386 ret = fsync_file(HOSTFS_I(inode)->fd, datasync); in hostfs_fsync()
427 err = write_file(HOSTFS_I(inode)->fd, &base, buffer, count); in hostfs_writepage()
567 HOSTFS_I(ino)->dev = dev; in hostfs_inode_set()
578 return inode->i_ino == st->ino && HOSTFS_I(inode)->dev == dev; in hostfs_inode_test()
628 HOSTFS_I(inode)->fd = fd; in hostfs_create()
629 HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; in hostfs_create()
815 int fd = HOSTFS_I(inode)->fd; in hostfs_setattr()