Lines Matching refs:HOSTFS_I

30 static inline struct hostfs_inode_info *HOSTFS_I(struct inode *inode)  in HOSTFS_I()  function
35 #define FILE_HOSTFS_I(file) HOSTFS_I(file_inode(file))
239 if (HOSTFS_I(inode)->fd != -1) { in hostfs_evict_inode()
240 close_file(&HOSTFS_I(inode)->fd); in hostfs_evict_inode()
241 HOSTFS_I(inode)->fd = -1; in hostfs_evict_inode()
247 kmem_cache_free(hostfs_inode_cache, HOSTFS_I(inode)); in hostfs_free_inode()
306 if ((mode & HOSTFS_I(ino)->mode) == mode) in hostfs_open()
309 mode |= HOSTFS_I(ino)->mode; in hostfs_open()
328 mutex_lock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
330 if ((mode & HOSTFS_I(ino)->mode) == mode) { in hostfs_open()
331 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
335 if ((mode | HOSTFS_I(ino)->mode) != mode) { in hostfs_open()
336 mode |= HOSTFS_I(ino)->mode; in hostfs_open()
337 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
341 if (HOSTFS_I(ino)->fd == -1) { in hostfs_open()
342 HOSTFS_I(ino)->fd = fd; in hostfs_open()
344 err = replace_file(fd, HOSTFS_I(ino)->fd); in hostfs_open()
347 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
351 HOSTFS_I(ino)->mode = mode; in hostfs_open()
352 mutex_unlock(&HOSTFS_I(ino)->open_mutex); in hostfs_open()
375 ret = fsync_file(HOSTFS_I(inode)->fd, datasync); in hostfs_fsync()
416 err = write_file(HOSTFS_I(inode)->fd, &base, buffer, count); in hostfs_writepage()
588 HOSTFS_I(inode)->fd = fd; in hostfs_create()
589 HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; in hostfs_create()
799 int fd = HOSTFS_I(inode)->fd; in hostfs_setattr()