Skip to content

Commit cfcc005

Browse files
committed
afs: Remove afs_dynroot_d_revalidate() as it is redundant
Remove afs_dynroot_d_revalidate() as it is redundant as all it does is return 1 and the caller assumes that if the op is not given. Suggested-by: Alexander Viro <viro@zeniv.linux.org.uk> Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org cc: linux-fsdevel@vger.kernel.org
1 parent 17ba6f0 commit cfcc005

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

fs/afs/dynroot.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,16 +258,7 @@ const struct inode_operations afs_dynroot_inode_operations = {
258258
.lookup = afs_dynroot_lookup,
259259
};
260260

261-
/*
262-
* Dirs in the dynamic root don't need revalidation.
263-
*/
264-
static int afs_dynroot_d_revalidate(struct dentry *dentry, unsigned int flags)
265-
{
266-
return 1;
267-
}
268-
269261
const struct dentry_operations afs_dynroot_dentry_operations = {
270-
.d_revalidate = afs_dynroot_d_revalidate,
271262
.d_delete = always_delete_dentry,
272263
.d_release = afs_d_release,
273264
.d_automount = afs_d_automount,

0 commit comments

Comments
 (0)