Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312895
b: refs/heads/master
c: 3819219
h: refs/heads/master
i:
  312893: 06d9f0e
  312891: 3e7fc08
  312887: 9aed925
  312879: b8be360
  312863: 922541b
  312831: fe104cd
v: v3
  • Loading branch information
Miklos Szeredi authored and Al Viro committed Jul 14, 2012
1 parent a2cfb71 commit 5bbf1ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2c127197dfc0b2bae62a52e1e0d3e3ff493919e
refs/heads/master: 3819219b592159725069eb16a7a46f58e4ecef32
4 changes: 2 additions & 2 deletions trunk/fs/ceph/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry,
(nd->flags & LOOKUP_OPEN) &&
!(nd->intent.open.flags & O_CREAT)) {
int mode = nd->intent.open.create_mode & ~current->fs->umask;
return ceph_lookup_open(dir, dentry, nd, mode, 1);
return ceph_lookup_open(dir, dentry, nd, mode);
}

/* can we conclude ENOENT locally? */
Expand Down Expand Up @@ -710,7 +710,7 @@ static int ceph_create(struct inode *dir, struct dentry *dentry, umode_t mode,

if (nd) {
BUG_ON((nd->flags & LOOKUP_OPEN) == 0);
dentry = ceph_lookup_open(dir, dentry, nd, mode, 0);
dentry = ceph_lookup_open(dir, dentry, nd, mode);
/* hrm, what should i do here if we get aliased? */
if (IS_ERR(dentry))
return PTR_ERR(dentry);
Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ int ceph_open(struct inode *inode, struct file *file)
* path_lookup_create -> LOOKUP_OPEN|LOOKUP_CREATE
*/
struct dentry *ceph_lookup_open(struct inode *dir, struct dentry *dentry,
struct nameidata *nd, int mode,
int locked_dir)
struct nameidata *nd, int mode)
{
struct ceph_fs_client *fsc = ceph_sb_to_client(dir->i_sb);
struct ceph_mds_client *mdsc = fsc->mdsc;
Expand Down
3 changes: 1 addition & 2 deletions trunk/fs/ceph/super.h
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,7 @@ extern int ceph_copy_from_page_vector(struct page **pages,
extern struct page **ceph_alloc_page_vector(int num_pages, gfp_t flags);
extern int ceph_open(struct inode *inode, struct file *file);
extern struct dentry *ceph_lookup_open(struct inode *dir, struct dentry *dentry,
struct nameidata *nd, int mode,
int locked_dir);
struct nameidata *nd, int mode);
extern int ceph_release(struct inode *inode, struct file *filp);

/* dir.c */
Expand Down

0 comments on commit 5bbf1ab

Please sign in to comment.