]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux 3.11: Convert from readdir to iterate file operation
authorMarc Dionne <marc.dionne@your-file-system.com>
Mon, 8 Jul 2013 14:53:00 +0000 (10:53 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 14 Aug 2013 14:39:52 +0000 (07:39 -0700)
commit0c5afaca547549e788d86962c7180d5de42488b5
tree0bbaacd1a83b0385a69948508181780b85e00f06
parent984ff6cb2b3100ae3dd567c537dc3e4ae065f3ae
Linux 3.11: Convert from readdir to iterate file operation

Convert the readdir function so that it can be used as the new
"iterate" file operation.  This new operation is passed a context
that contains a pointer to the filldir function and the offset.
The context is passed into the new dir_emit function that will
call the function specified by the context.

The new dir_emit function returns true on success, so we must be
careful about how we check for failure since this is different
behaviour from what filldir currently does.

Reviewed-on: http://gerrit.openafs.org/10051
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 902b8809f03533ffa7731919930bb5178f77df6c)

Change-Id: I12dc2517af66b66b2de6b2cb01d39e3a0cbc5fe2
Reviewed-on: http://gerrit.openafs.org/10118
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
acinclude.m4
src/afs/LINUX/osi_vnodeops.c