]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/res_counter.c
be2net: Implement ethtool get_phys_id function.
[net-next-2.6.git] / kernel / res_counter.c
index e1338f074314d7e85fca035ac4ab55f20704b8cd..bcdabf37c40b58165d29a2e7dc33b41ef9a6d547 100644 (file)
@@ -19,6 +19,7 @@ void res_counter_init(struct res_counter *counter, struct res_counter *parent)
 {
        spin_lock_init(&counter->lock);
        counter->limit = RESOURCE_MAX;
+       counter->soft_limit = RESOURCE_MAX;
        counter->parent = parent;
 }
 
@@ -101,6 +102,8 @@ res_counter_member(struct res_counter *counter, int member)
                return &counter->limit;
        case RES_FAILCNT:
                return &counter->failcnt;
+       case RES_SOFT_LIMIT:
+               return &counter->soft_limit;
        };
 
        BUG();