Skip to content

Commit 74c6e38

Browse files
author
Miklos Szeredi
committed
ovl: make oip->index bool
ovl_get_inode() uses oip->index as a bool value, not as a pointer. Signed-off-by: Miklos Szeredi <[email protected]>
1 parent b778e1e commit 74c6e38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/overlayfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ struct inode *ovl_get_trap_inode(struct super_block *sb, struct dentry *dir)
908908
* Does overlay inode need to be hashed by lower inode?
909909
*/
910910
static bool ovl_hash_bylower(struct super_block *sb, struct dentry *upper,
911-
struct dentry *lower, struct dentry *index)
911+
struct dentry *lower, bool index)
912912
{
913913
struct ovl_fs *ofs = sb->s_fs_info;
914914

fs/overlayfs/overlayfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ struct ovl_inode_params {
424424
struct inode *newinode;
425425
struct dentry *upperdentry;
426426
struct ovl_path *lowerpath;
427-
struct dentry *index;
427+
bool index;
428428
unsigned int numlower;
429429
char *redirect;
430430
struct dentry *lowerdata;

0 commit comments

Comments
 (0)