file.c (4d09a938861ef16248334d57ae250e109b0004ae) file.c (8a5e929dd2e05ab4d3d89f58c5e8fca596af8f3a)
1#include <linux/ceph/ceph_debug.h>
2
3#include <linux/module.h>
4#include <linux/sched.h>
5#include <linux/slab.h>
6#include <linux/file.h>
7#include <linux/namei.h>
8#include <linux/writeback.h>

--- 212 unchanged lines hidden (view full) ---

221 int locked_dir)
222{
223 struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb);
224 struct ceph_mds_client *mdsc = fsc->mdsc;
225 struct file *file = nd->intent.open.file;
226 struct inode *parent_inode = get_dentry_parent_inode(file->f_dentry);
227 struct ceph_mds_request *req;
228 int err;
1#include <linux/ceph/ceph_debug.h>
2
3#include <linux/module.h>
4#include <linux/sched.h>
5#include <linux/slab.h>
6#include <linux/file.h>
7#include <linux/namei.h>
8#include <linux/writeback.h>

--- 212 unchanged lines hidden (view full) ---

221 int locked_dir)
222{
223 struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb);
224 struct ceph_mds_client *mdsc = fsc->mdsc;
225 struct file *file = nd->intent.open.file;
226 struct inode *parent_inode = get_dentry_parent_inode(file->f_dentry);
227 struct ceph_mds_request *req;
228 int err;
229 int flags = nd->intent.open.flags - 1; /* silly vfs! */
229 int flags = nd->intent.open.flags;
230
231 dout("ceph_lookup_open dentry %p '%.*s' flags %d mode 0%o\n",
232 dentry, dentry->d_name.len, dentry->d_name.name, flags, mode);
233
234 /* do the open */
235 req = prepare_open_request(dir->i_sb, flags, mode);
236 if (IS_ERR(req))
237 return ERR_CAST(req);

--- 591 unchanged lines hidden ---
230
231 dout("ceph_lookup_open dentry %p '%.*s' flags %d mode 0%o\n",
232 dentry, dentry->d_name.len, dentry->d_name.name, flags, mode);
233
234 /* do the open */
235 req = prepare_open_request(dir->i_sb, flags, mode);
236 if (IS_ERR(req))
237 return ERR_CAST(req);

--- 591 unchanged lines hidden ---