diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 03:16:55 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:55:07 -0500 |
commit | 632861f05a8e5878a267d173000880ceb608b56e (patch) | |
tree | 1b79f6fd729d7f5253c98afaad2d2776b30e59aa /drivers/staging | |
parent | 09208d150b5cda009b666238a7102cb45ecec2ee (diff) |
pohmelfs: propagate umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/pohmelfs/dir.c | 7 | ||||
-rw-r--r-- | drivers/staging/pohmelfs/netfs.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/staging/pohmelfs/dir.c b/drivers/staging/pohmelfs/dir.c index c33e959b6ef..2ee4491b713 100644 --- a/drivers/staging/pohmelfs/dir.c +++ b/drivers/staging/pohmelfs/dir.c | |||
@@ -590,13 +590,13 @@ out: | |||
590 | * during writeback for given inode. | 590 | * during writeback for given inode. |
591 | */ | 591 | */ |
592 | struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb, | 592 | struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb, |
593 | struct pohmelfs_inode *parent, struct qstr *str, u64 start, int mode) | 593 | struct pohmelfs_inode *parent, struct qstr *str, u64 start, umode_t mode) |
594 | { | 594 | { |
595 | struct pohmelfs_inode *npi; | 595 | struct pohmelfs_inode *npi; |
596 | int err = -ENOMEM; | 596 | int err = -ENOMEM; |
597 | struct netfs_inode_info info; | 597 | struct netfs_inode_info info; |
598 | 598 | ||
599 | dprintk("%s: name: '%s', mode: %o, start: %llu.\n", | 599 | dprintk("%s: name: '%s', mode: %ho, start: %llu.\n", |
600 | __func__, str->name, mode, start); | 600 | __func__, str->name, mode, start); |
601 | 601 | ||
602 | info.mode = mode; | 602 | info.mode = mode; |
@@ -630,7 +630,8 @@ err_out_unlock: | |||
630 | /* | 630 | /* |
631 | * Create local object and bind it to dentry. | 631 | * Create local object and bind it to dentry. |
632 | */ | 632 | */ |
633 | static int pohmelfs_create_entry(struct inode *dir, struct dentry *dentry, u64 start, int mode) | 633 | static int pohmelfs_create_entry(struct inode *dir, struct dentry *dentry, |
634 | u64 start, umode_t mode) | ||
634 | { | 635 | { |
635 | struct pohmelfs_sb *psb = POHMELFS_SB(dir->i_sb); | 636 | struct pohmelfs_sb *psb = POHMELFS_SB(dir->i_sb); |
636 | struct pohmelfs_inode *npi, *parent; | 637 | struct pohmelfs_inode *npi, *parent; |
diff --git a/drivers/staging/pohmelfs/netfs.h b/drivers/staging/pohmelfs/netfs.h index 985b6b755d5..f26894f2a57 100644 --- a/drivers/staging/pohmelfs/netfs.h +++ b/drivers/staging/pohmelfs/netfs.h | |||
@@ -776,7 +776,7 @@ struct pohmelfs_name *pohmelfs_search_hash(struct pohmelfs_inode *pi, u32 hash); | |||
776 | void pohmelfs_inode_del_inode(struct pohmelfs_sb *psb, struct pohmelfs_inode *pi); | 776 | void pohmelfs_inode_del_inode(struct pohmelfs_sb *psb, struct pohmelfs_inode *pi); |
777 | 777 | ||
778 | struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb, | 778 | struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb, |
779 | struct pohmelfs_inode *parent, struct qstr *str, u64 start, int mode); | 779 | struct pohmelfs_inode *parent, struct qstr *str, u64 start, umode_t mode); |
780 | 780 | ||
781 | int pohmelfs_write_create_inode(struct pohmelfs_inode *pi); | 781 | int pohmelfs_write_create_inode(struct pohmelfs_inode *pi); |
782 | 782 | ||