]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/lustre/lustre/include/linux/lustre_patchless_compat.h
helper for reading ->d_count
[~andy/linux] / drivers / staging / lustre / lustre / include / linux / lustre_patchless_compat.h
index f0508084e8c554dcfecbf9d57712ed6bf18d2e35..6367f4cc7361282d2120e28dfe15e2e6785b42fd 100644 (file)
@@ -60,7 +60,7 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
        ll_delete_from_page_cache(page);
 }
 
-#  define d_refcount(d)                 ((d)->d_count)
+#  define d_refcount(d)                 d_count(d)
 
 #ifdef ATTR_OPEN
 # define ATTR_FROM_OPEN ATTR_OPEN