]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ufs/util.c
[PATCH] ufs: ufs_trunc_indirect: infinite cycle
[mirror_ubuntu-artful-kernel.git] / fs / ufs / util.c
index 59acc8f073acf5c8c8a384e44960557e788ad2e5..72f91cc84bfe6a47f8db22f41b6abc520f16aa1d 100644 (file)
@@ -139,18 +139,6 @@ void ubh_wait_on_buffer (struct ufs_buffer_head * ubh)
                wait_on_buffer (ubh->bh[i]);
 }
 
-unsigned ubh_max_bcount (struct ufs_buffer_head * ubh)
-{
-       unsigned i;
-       unsigned max = 0;
-       if (!ubh)
-               return 0;
-       for ( i = 0; i < ubh->count; i++ ) 
-               if ( atomic_read(&ubh->bh[i]->b_count) > max )
-                       max = atomic_read(&ubh->bh[i]->b_count);
-       return max;
-}
-
 void ubh_bforget (struct ufs_buffer_head * ubh)
 {
        unsigned i;