commit a9072d0c114cf2fda200e2533c80e85b11e798be
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date:   Thu May 24 22:41:47 2007 -0400

    coding style: use branch_id function instead of accessing sb private
    data directly

diff --git a/fs/unionfs/fanout.h b/fs/unionfs/fanout.h
index 
5605feef2b5fe702a39cf71a36d088005660437a..7db29b759cef8d86e59191af45ef8a553f707473
 100644
--- a/fs/unionfs/fanout.h
+++ b/fs/unionfs/fanout.h
@@ -55,11 +55,11 @@ static inline void new_branch_id(struct 
        set_branch_id(sb, index, ++UNIONFS_SB(sb)->high_branch_id);
 }
 
-static inline int branch_id_to_idx(struct super_block *sb, int branch_id)
+static inline int branch_id_to_idx(struct super_block *sb, int id)
 {
        int i;
        for (i = 0; i < sbmax(sb); i++) {
-               if (UNIONFS_SB(sb)->data[i].branch_id == branch_id)
+               if (branch_id(sb, i) == id)
                        return i;
        }
        return -1;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to