diff options
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index d42eee1c5de3..8898eef8bca9 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c | |||
@@ -1042,12 +1042,12 @@ static int dir_lease_is_valid(struct inode *dir, struct dentry *dentry) | |||
1042 | /* | 1042 | /* |
1043 | * Check if cached dentry can be trusted. | 1043 | * Check if cached dentry can be trusted. |
1044 | */ | 1044 | */ |
1045 | static int ceph_d_revalidate(struct dentry *dentry, struct nameidata *nd) | 1045 | static int ceph_d_revalidate(struct dentry *dentry, unsigned int flags) |
1046 | { | 1046 | { |
1047 | int valid = 0; | 1047 | int valid = 0; |
1048 | struct inode *dir; | 1048 | struct inode *dir; |
1049 | 1049 | ||
1050 | if (nd && nd->flags & LOOKUP_RCU) | 1050 | if (flags & LOOKUP_RCU) |
1051 | return -ECHILD; | 1051 | return -ECHILD; |
1052 | 1052 | ||
1053 | dout("d_revalidate %p '%.*s' inode %p offset %lld\n", dentry, | 1053 | dout("d_revalidate %p '%.*s' inode %p offset %lld\n", dentry, |
@@ -1094,7 +1094,7 @@ static void ceph_d_release(struct dentry *dentry) | |||
1094 | } | 1094 | } |
1095 | 1095 | ||
1096 | static int ceph_snapdir_d_revalidate(struct dentry *dentry, | 1096 | static int ceph_snapdir_d_revalidate(struct dentry *dentry, |
1097 | struct nameidata *nd) | 1097 | unsigned int flags) |
1098 | { | 1098 | { |
1099 | /* | 1099 | /* |
1100 | * Eventually, we'll want to revalidate snapped metadata | 1100 | * Eventually, we'll want to revalidate snapped metadata |