[pnfs] [PATCH 5/9] layoutrecall: use cbl_recall_type in recall_layout_thread
Benny Halevy
bhalevy at panasas.com
Thu Aug 30 09:32:21 EDT 2007
use cbl_recall_type rather than args->inode to detrmine
if this is a recall for file vs. fsid or all.
args->inode must be non NULL in this case.
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfs/delegation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c
index 014f5d6..a94aced 100644
--- a/fs/nfs/delegation.c
+++ b/fs/nfs/delegation.c
@@ -379,7 +379,7 @@ static int recall_layout_thread(void *data)
//??? commit the files first ???
- if (args->inode != NULL) {
+ if (args->rl.cbl_recall_type == RECALL_FILE) {
pnfs_return_layout(args->inode, &args->rl.cbl_seg);
goto out;
}
--
1.5.2.5
More information about the pNFS
mailing list