]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfs/callback_proc.c
Merge tag 'for-v3.9' of git://git.infradead.org/battery-2.6
[karo-tx-linux.git] / fs / nfs / callback_proc.c
index f99faad78c72e0a558a60912fb2c5483808b8fdc..264d1aa935f2b3e52e3e08bd26ee99c30912c8f6 100644 (file)
@@ -14,6 +14,7 @@
 #include "delegation.h"
 #include "internal.h"
 #include "pnfs.h"
+#include "nfs4session.h"
 
 #ifdef NFS_DEBUG
 #define NFSDBG_FACILITY NFSDBG_CALLBACK
@@ -205,7 +206,7 @@ static u32 initiate_bulk_draining(struct nfs_client *clp,
 
                list_for_each_entry(lo, &server->layouts, plh_layouts) {
                        ino = igrab(lo->plh_inode);
-                       if (ino)
+                       if (!ino)
                                continue;
                        spin_lock(&ino->i_lock);
                        /* Is this layout in the process of being freed? */