Whamcloud - gitweb
- small fix in mds_lock_mode_for_dir()
authoryury <yury>
Fri, 13 Aug 2004 16:10:43 +0000 (16:10 +0000)
committeryury <yury>
Fri, 13 Aug 2004 16:10:43 +0000 (16:10 +0000)
lustre/mds/handler.c

index 735489c..819acf5 100644 (file)
@@ -180,7 +180,7 @@ int mds_lock_mode_for_dir(struct obd_device *obd,
          *    type of access (lookup/modify/split) - LCK_EX -bzzz */
 
         split = mds_splitting_expected(obd, dentry);
-        if (split == MDS_NO_SPLITTABLE || MDS_NO_SPLIT_EXPECTED) {
+        if (split == MDS_NO_SPLITTABLE || split == MDS_NO_SPLIT_EXPECTED) {
                 /* this inode won't be splitted. so we need not to protect from
                  * just flush client's cache on modification */
                 ret_mode = 0;