Lines Matching refs:fmode
204 int fmode, bool isdir) in ceph_init_file_info() argument
231 ceph_get_fmode(ci, fmode, 1); in ceph_init_file_info()
232 fi->fmode = fmode; in ceph_init_file_info()
245 static int ceph_init_file(struct inode *inode, struct file *file, int fmode) in ceph_init_file() argument
255 ret = ceph_init_file_info(inode, file, fmode, in ceph_init_file()
282 int ceph_renew_caps(struct inode *inode, int fmode) in ceph_renew_caps() argument
290 __ceph_touch_fmode(ci, mdsc, fmode); in ceph_renew_caps()
346 int flags, fmode, wanted; in ceph_open() local
360 fmode = ceph_flags_to_mode(flags); in ceph_open()
361 wanted = ceph_caps_for_mode(fmode); in ceph_open()
369 return ceph_init_file(inode, file, fmode); in ceph_open()
379 (((fmode & CEPH_FILE_MODE_WR) == 0) || ci->i_auth_cap)) { in ceph_open()
384 inode, fmode, ceph_cap_string(wanted), in ceph_open()
386 __ceph_touch_fmode(ci, mdsc, fmode); in ceph_open()
395 return ceph_init_file(inode, file, fmode); in ceph_open()
398 __ceph_touch_fmode(ci, mdsc, fmode); in ceph_open()
400 return ceph_init_file(inode, file, fmode); in ceph_open()
405 dout("open fmode %d wants %s\n", fmode, ceph_cap_string(wanted)); in ceph_open()
834 ceph_put_fmode(ci, dfi->file_info.fmode, 1); in ceph_release()
846 ceph_put_fmode(ci, fi->fmode, 1); in ceph_release()
1569 if (fi->fmode & CEPH_FILE_MODE_LAZY) in ceph_read_iter()
1781 if (fi->fmode & CEPH_FILE_MODE_LAZY) in ceph_write_iter()
2121 if (fi->fmode & CEPH_FILE_MODE_LAZY) in ceph_fallocate()