Lines Matching refs:fmode
63 * if we fail, clean up by dropping fmode reference on the ceph_inode
65 static int ceph_init_file(struct inode *inode, struct file *file, int fmode)
77 ceph_put_fmode(ceph_inode(inode), fmode); /* clean up */
80 cf->fmode = fmode;
89 ceph_put_fmode(ceph_inode(inode), fmode); /* clean up */
99 ceph_put_fmode(ceph_inode(inode), fmode); /* clean up */
126 int flags, fmode, wanted;
140 fmode = ceph_flags_to_mode(flags);
141 wanted = ceph_caps_for_mode(fmode);
150 __ceph_get_fmode(ci, fmode);
152 return ceph_init_file(inode, file, fmode);
164 dout("open %p fmode %d want %s issued %s using existing\n",
165 inode, fmode, ceph_cap_string(wanted),
167 __ceph_get_fmode(ci, fmode);
176 return ceph_init_file(inode, file, fmode);
179 __ceph_get_fmode(ci, fmode);
181 return ceph_init_file(inode, file, fmode);
185 dout("open fmode %d wants %s\n", fmode, ceph_cap_string(wanted));
259 ceph_put_fmode(ci, cf->fmode);
757 if (fi->fmode & CEPH_FILE_MODE_LAZY)
832 if (fi->fmode & CEPH_FILE_MODE_LAZY)