Whamcloud - gitweb
Revert "LU-4933 osc: Automatically tune the max_dirty_mb"
[fs/lustre-release.git] / lustre / include / obd.h
index bda6723..565ae38 100644 (file)
@@ -1460,16 +1460,4 @@ static inline int cli_brw_size(struct obd_device *obd)
        return obd->u.cli.cl_max_pages_per_rpc << PAGE_CACHE_SHIFT;
 }
 
-static inline void client_adjust_max_dirty(struct client_obd *cli)
-{
-        /* initializing */
-       if (cli->cl_dirty_max <= 0)
-               cli->cl_dirty_max = OSC_MAX_DIRTY_DEFAULT * 1024 * 1024;
-       else
-               cli->cl_dirty_max = cli->cl_max_rpcs_in_flight *
-                       (cli->cl_max_pages_per_rpc << PAGE_CACHE_SHIFT);
-       if (cli->cl_dirty_max >> PAGE_CACHE_SHIFT > totalram_pages / 8)
-               cli->cl_dirty_max = totalram_pages << (PAGE_CACHE_SHIFT - 3);
-}
-
 #endif /* __OBD_H */