Merge tag 'nfs-for-4.15-1' of git://git.linux-nfs.org/projects/anna/linux-nfs
[linux-2.6-microblaze.git] / fs / nfs / flexfilelayout / flexfilelayout.h
index 679cb08..4117983 100644 (file)
@@ -14,6 +14,7 @@
 #define FF_FLAGS_NO_IO_THRU_MDS  2
 #define FF_FLAGS_NO_READ_IO      4
 
+#include <linux/refcount.h>
 #include "../pnfs.h"
 
 /* XXX: Let's filter out insanely large mirror count for now to avoid oom
@@ -82,7 +83,7 @@ struct nfs4_ff_layout_mirror {
        nfs4_stateid                    stateid;
        struct rpc_cred __rcu           *ro_cred;
        struct rpc_cred __rcu           *rw_cred;
-       atomic_t                        ref;
+       refcount_t                      ref;
        spinlock_t                      lock;
        unsigned long                   flags;
        struct nfs4_ff_layoutstat       read_stat;